mul2dsp.v slice names
authorEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 05:58:55 +0000 (22:58 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 05:58:55 +0000 (22:58 -0700)
techlibs/common/mul2dsp.v

index 9932e288f49f9df8367c1a3db6fd9e6ae1429c7b..60b180ac040b4f0752e107abab9a5d395f00d8df 100644 (file)
@@ -129,14 +129,14 @@ module _80_mul (A, B, Y);
                                wire [Y_WIDTH-1:0] partial_sum [n:0];\r
                        end\r
 \r
-                       for (i = 0; i < n; i=i+1) begin:slice\r
+                       for (i = 0; i < n; i=i+1) begin:sliceA\r
                                \$__mul #(\r
                                        .A_SIGNED(sign_headroom),\r
                                        .B_SIGNED(B_SIGNED),\r
                                        .A_WIDTH(`DSP_A_MAXWIDTH_PARTIAL),\r
                                        .B_WIDTH(B_WIDTH),\r
                                        .Y_WIDTH(partial_Y_WIDTH)\r
-                               ) mul_slice (\r
+                               ) mul (\r
                                        .A({{sign_headroom{1'b0}}, A[i*(`DSP_A_MAXWIDTH_PARTIAL-sign_headroom) +: `DSP_A_MAXWIDTH_PARTIAL-sign_headroom]}),\r
                                        .B(B),\r
                                        .Y(partial[i])\r
@@ -165,7 +165,7 @@ module _80_mul (A, B, Y);
                                .A_WIDTH(last_A_WIDTH),\r
                                .B_WIDTH(B_WIDTH),\r
                                .Y_WIDTH(last_Y_WIDTH)\r
-                       ) mul_slice_last (\r
+                       ) sliceA.last (\r
                                .A(A[A_WIDTH-1 -: last_A_WIDTH]),\r
                                .B(B),\r
                                .Y(last_partial)\r
@@ -194,7 +194,7 @@ module _80_mul (A, B, Y);
                                wire [Y_WIDTH-1:0] partial_sum [n:0];\r
                        end\r
 \r
-                       for (i = 0; i < n; i=i+1) begin:slice\r
+                       for (i = 0; i < n; i=i+1) begin:sliceB\r
                                \$__mul #(\r
                                        .A_SIGNED(A_SIGNED),\r
                                        .B_SIGNED(sign_headroom),\r
@@ -230,7 +230,7 @@ module _80_mul (A, B, Y);
                                .A_WIDTH(A_WIDTH),\r
                                .B_WIDTH(last_B_WIDTH),\r
                                .Y_WIDTH(last_Y_WIDTH)\r
-                       ) mul_last (\r
+                       ) mul_sliceB_last (\r
                                .A(A),\r
                                .B(B[B_WIDTH-1 -: last_B_WIDTH]),\r
                                .Y(last_partial)\r