aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/intel_alm/synth_intel_alm.cc
diff options
context:
space:
mode:
authorMarcelina Koƛcielnicka <mwk@0x04.net>2020-07-01 03:31:34 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2020-07-04 22:56:16 +0200
commit3ca2de0f772b3f08f2169f6b93518c8a94ffb23a (patch)
tree83927b42ec22568a9fb364a0f3b00ff6651721af /techlibs/intel_alm/synth_intel_alm.cc
parentc6765443fdb57938418fb2b80bf56cda0e7d229b (diff)
downloadyosys-3ca2de0f772b3f08f2169f6b93518c8a94ffb23a.tar.gz
yosys-3ca2de0f772b3f08f2169f6b93518c8a94ffb23a.tar.bz2
yosys-3ca2de0f772b3f08f2169f6b93518c8a94ffb23a.zip
synth_intel_alm: Use dfflegalize.
Diffstat (limited to 'techlibs/intel_alm/synth_intel_alm.cc')
-rw-r--r--techlibs/intel_alm/synth_intel_alm.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/techlibs/intel_alm/synth_intel_alm.cc b/techlibs/intel_alm/synth_intel_alm.cc
index 4bc943cb2..417027462 100644
--- a/techlibs/intel_alm/synth_intel_alm.cc
+++ b/techlibs/intel_alm/synth_intel_alm.cc
@@ -208,11 +208,10 @@ struct SynthIntelALMPass : public ScriptPass {
}
if (check_label("map_ffs")) {
+ run("techmap");
run("dff2dffe");
- // As mentioned in common/dff_sim.v, Intel flops power up to zero,
- // so use `zinit` to add inverters where needed.
- run("zinit");
- run("techmap -map +/techmap.v -map +/intel_alm/common/dff_map.v");
+ run("dfflegalize -cell $_DFFE_PN0P_ 0 -cell $_SDFFCE_PP0P_ 0");
+ run("techmap -map +/intel_alm/common/dff_map.v");
run("opt -full -undriven -mux_undef");
run("clean -purge");
}