Cleanup
authorEddie Hung <eddie@fpgeh.com>
Thu, 19 Sep 2019 17:39:00 +0000 (10:39 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 19 Sep 2019 17:39:00 +0000 (10:39 -0700)
passes/pmgen/xilinx_dsp.pmg

index 08cb1f51b3ea6c3a71e8fc1f380b7618abd8fe14..31ab75f098425883ac38949db8b171ebba414e92 100644 (file)
@@ -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))