aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40/synth_ice40.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-12-09 17:38:48 -0800
committerGitHub <noreply@github.com>2019-12-09 17:38:48 -0800
commit7e5602ad17b20f14e56fc4c64198ca2d576917df (patch)
tree5127cc0a4159e23f2e8fcdabcea4b792062ea09f /techlibs/ice40/synth_ice40.cc
parentecb0c68f0751b3bd97f8da94e7bd2258987d58e1 (diff)
parentfb203d2a2c02c3df1a2c6a92ec196e579495c8d4 (diff)
downloadyosys-7e5602ad17b20f14e56fc4c64198ca2d576917df.tar.gz
yosys-7e5602ad17b20f14e56fc4c64198ca2d576917df.tar.bz2
yosys-7e5602ad17b20f14e56fc4c64198ca2d576917df.zip
Merge pull request #1545 from YosysHQ/eddie/ice40_wrapcarry_attr
Preserve SB_CARRY name and attributes when using $__ICE40_CARRY_WRAPPER
Diffstat (limited to 'techlibs/ice40/synth_ice40.cc')
-rw-r--r--techlibs/ice40/synth_ice40.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc
index 901194b06..ed7a16c08 100644
--- a/techlibs/ice40/synth_ice40.cc
+++ b/techlibs/ice40/synth_ice40.cc
@@ -363,6 +363,7 @@ struct SynthIce40Pass : public ScriptPass
else
run(abc + " -dress -lut 4", "(skip if -noabc)");
}
+ run("ice40_wrapcarry -unwrap");
run("techmap -D NO_LUT -map +/ice40/cells_map.v");
run("clean");
run("opt_lut -dlogic SB_CARRY:I0=2:I1=1:CI=0");