aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40/abc9_model.v
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-27 09:54:04 -0800
committerGitHub <noreply@github.com>2020-01-27 09:54:04 -0800
commitaf8281d2f5e3945a8bb93dd7c7400aafb29af3b8 (patch)
tree36afb76914bb8c2e4e03b1002aa696fd9d16768b /techlibs/ice40/abc9_model.v
parent07a12ebd4ff12c8016809eacad4551246fa4b316 (diff)
parentb1787615514f84c83c27d08011427e90c9bd0f4a (diff)
downloadyosys-af8281d2f5e3945a8bb93dd7c7400aafb29af3b8.tar.gz
yosys-af8281d2f5e3945a8bb93dd7c7400aafb29af3b8.tar.bz2
yosys-af8281d2f5e3945a8bb93dd7c7400aafb29af3b8.zip
Merge pull request #1656 from YosysHQ/eddie/ice40_abc9_warnings
ice40: reduce ABC9 internal fanout warnings with a param for CI->I3
Diffstat (limited to 'techlibs/ice40/abc9_model.v')
-rw-r--r--techlibs/ice40/abc9_model.v4
1 files changed, 3 insertions, 1 deletions
diff --git a/techlibs/ice40/abc9_model.v b/techlibs/ice40/abc9_model.v
index 26cf6cc22..a5e5f4372 100644
--- a/techlibs/ice40/abc9_model.v
+++ b/techlibs/ice40/abc9_model.v
@@ -9,6 +9,8 @@ module \$__ICE40_CARRY_WRAPPER (
input I0, I3
);
parameter LUT = 0;
+ parameter I3_IS_CI = 0;
+ wire I3_OR_CI = I3_IS_CI ? CI : I3;
SB_CARRY carry (
.I0(A),
.I1(B),
@@ -21,7 +23,7 @@ module \$__ICE40_CARRY_WRAPPER (
.I0(I0),
.I1(A),
.I2(B),
- .I3(I3),
+ .I3(I3_OR_CI),
.O(O)
);
endmodule