Remove unnecessary check for A_SIGNED != B_SIGNED; be more explicit
authorEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 00:26:47 +0000 (17:26 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 00:26:47 +0000 (17:26 -0700)
techlibs/common/mul2dsp.v

index 3ca69b7b1ab2817a72d9a589f6959c57658270bb..9932e288f49f9df8367c1a3db6fd9e6ae1429c7b 100644 (file)
@@ -77,10 +77,8 @@ module _80_mul (A, B, Y);
        else if (Y_WIDTH < `DSP_Y_MINWIDTH)\r
                wire _TECHMAP_FAIL_ = 1;\r
 `endif\r
-       else if (_TECHMAP_CELLTYPE_ == "$mul" && A_SIGNED != B_SIGNED)\r
-               wire _TECHMAP_FAIL_ = 1;\r
 `ifdef DSP_SIGNEDONLY\r
-       else if (_TECHMAP_CELLTYPE_ == "$mul" && !A_SIGNED)\r
+       else if (_TECHMAP_CELLTYPE_ == "$mul" && !A_SIGNED && !B_SIGNED)\r
                \$mul #(\r
                        .A_SIGNED(1),\r
                        .B_SIGNED(1),\r