diff --git a/passes/pmgen/xilinx_dsp.pmg b/passes/pmgen/xilinx_dsp.pmg index 08cb1f51b..31ab75f09 100644 --- a/passes/pmgen/xilinx_dsp.pmg +++ b/passes/pmgen/xilinx_dsp.pmg @@ -398,10 +398,8 @@ endmatch code argQ argD { - if (clock != SigBit()) { - if (port(ff, \CLK) != clock) - reject; - } + if (clock != SigBit() && port(ff, \CLK) != clock) + reject; SigSpec Q = port(ff, \Q); if (ffoffset + GetSize(argQ) > GetSize(Q)) @@ -580,10 +578,8 @@ endmatch code argQ if (ff) { - if (clock != SigBit()) { - if (port(ff, \CLK) != clock) - reject; - } + if (clock != SigBit() && port(ff, \CLK) != clock) + reject; SigSpec D = port(ff, \D); if (ffoffset + GetSize(argD) > GetSize(D))