diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2019-03-16 08:51:13 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2019-03-16 08:51:13 -0700 |
commit | fadeadb8c87670b1cfe8f92ac9c5ac3beadcb312 (patch) | |
tree | 018ecc1e4ba09f21fe8bd9644cb23b399a5b8218 /techlibs | |
parent | 29a8d4745eb4ecd2947694d02f51c9333bf3ac21 (diff) | |
download | yosys-fadeadb8c87670b1cfe8f92ac9c5ac3beadcb312.tar.gz yosys-fadeadb8c87670b1cfe8f92ac9c5ac3beadcb312.tar.bz2 yosys-fadeadb8c87670b1cfe8f92ac9c5ac3beadcb312.zip |
Only accept <128 for variable length, only if $shiftx exclusive
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/xilinx/cells_map.v | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/techlibs/xilinx/cells_map.v b/techlibs/xilinx/cells_map.v index a35b0742b..1d538e262 100644 --- a/techlibs/xilinx/cells_map.v +++ b/techlibs/xilinx/cells_map.v @@ -121,11 +121,7 @@ module \$__SHREG_ (input C, input D, input [31:0] L, input E, output Q); else begin // No way to create variable length shift registers >128 bits as Q31 // cannot be output to the fabric... - wire [DEPTH-1:-1] c; - genvar i; - for (i = 0; i < DEPTH; i=i+1) - \$__SHREG_ #(.DEPTH(1), .INIT(INIT_R[i]), .CLKPOL(CLKPOL), .ENPOL(ENPOL)) fpga_srl (.C(C), .D(c[i-1]), .L(0), .E(E), .Q(c[i])); - assign { c[-1], Q } = { D, c[L] }; + wire _TECHMAP_FAIL_ = 1; end end endgenerate |