Fix INIT for variable length SRs that have been bumped up one
authorEddie Hung <eddieh@ece.ubc.ca>
Tue, 19 Mar 2019 21:54:43 +0000 (14:54 -0700)
committerEddie Hung <eddieh@ece.ubc.ca>
Tue, 19 Mar 2019 21:54:43 +0000 (14:54 -0700)
techlibs/xilinx/cells_map.v

index 1d538e2622ad0c04d692795e9a6dfb233bad0a85..94a48dbc2bf03fa872f94d41312c80a1cd4756ff 100644 (file)
@@ -106,7 +106,7 @@ module \$__SHREG_ (input C, input D, input [31:0] L, input E, output Q);
       else begin
         // For variable length, bump up to the next length
         // because we can't access Q31
-        \$__SHREG_ #(.DEPTH(DEPTH+1), .INIT(INIT), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) _TECHMAP_REPLACE_ (.C(C), .D(D), .L(L), .E(E), .Q(Q));
+        \$__SHREG_ #(.DEPTH(DEPTH+1), .INIT({INIT,1'b0}), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) _TECHMAP_REPLACE_ (.C(C), .D(D), .L(L), .E(E), .Q(Q));
       end
     end 
     else begin