aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2019-03-16 08:51:13 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2019-03-16 08:51:13 -0700
commitfadeadb8c87670b1cfe8f92ac9c5ac3beadcb312 (patch)
tree018ecc1e4ba09f21fe8bd9644cb23b399a5b8218 /techlibs
parent29a8d4745eb4ecd2947694d02f51c9333bf3ac21 (diff)
downloadyosys-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.v6
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