mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-09 12:50:33 +00:00
ice40_wrapcarry to really preserve attributes via -unwrap option
This commit is contained in:
parent
946d5854c0
commit
e05372778a
4 changed files with 61 additions and 39 deletions
|
@ -61,22 +61,3 @@ module \$lut (A, Y);
|
|||
endgenerate
|
||||
endmodule
|
||||
`endif
|
||||
|
||||
`ifndef NO_ADDER
|
||||
module \$__ICE40_CARRY_WRAPPER (output CO, O, input A, B, CI, I0, I3);
|
||||
parameter LUT = 0;
|
||||
SB_CARRY _TECHMAP_REPLACE_ (
|
||||
.I0(A),
|
||||
.I1(B),
|
||||
.CI(CI),
|
||||
.CO(CO)
|
||||
);
|
||||
\$lut #(
|
||||
.WIDTH(4),
|
||||
.LUT(LUT)
|
||||
) lut (
|
||||
.A({I0,A,B,I3}),
|
||||
.Y(O)
|
||||
);
|
||||
endmodule
|
||||
`endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue