mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-16 07:45:28 +00:00
ice40: Use dfflegalize.
This commit is contained in:
parent
01772dec8c
commit
1fc8c3a0d1
4 changed files with 24 additions and 208 deletions
|
@ -358,15 +358,14 @@ struct SynthIce40Pass : public ScriptPass
|
|||
run("dff2dffe -direct-match $_DFF_*");
|
||||
if (min_ce_use >= 0) {
|
||||
run("opt_merge");
|
||||
run(stringf("dff2dffe -unmap-mince %d", min_ce_use));
|
||||
run("simplemap t:$dff");
|
||||
}
|
||||
if ((abc9 && dff) || help_mode)
|
||||
run("zinit -all w:* t:$_DFF_?_ t:$_DFFE_??_ t:$_SDFF*", "(only if -abc9 and -dff");
|
||||
if (nodffe)
|
||||
run(stringf("dfflegalize -cell $_DFF_?_ 0 -cell $_DFF_?P?_ 0 -cell $_SDFF_?P?_ 0 -cell $_DLATCH_?_ x"));
|
||||
else
|
||||
run(stringf("dfflegalize -cell $_DFF_?_ 0 -cell $_DFFE_?P_ 0 -cell $_DFF_?P?_ 0 -cell $_DFFE_?P?P_ 0 -cell $_SDFF_?P?_ 0 -cell $_SDFFCE_?P?P_ 0 -cell $_DLATCH_?_ x -mince %d", min_ce_use));
|
||||
run("techmap -map +/ice40/ff_map.v");
|
||||
run("opt_expr -mux_undef");
|
||||
run("simplemap");
|
||||
run("ice40_ffinit");
|
||||
run("ice40_ffssr");
|
||||
run("ice40_opt -full");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue