3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-15 23:35:28 +00:00

improved ice40 dff cell mapping

This commit is contained in:
Clifford Wolf 2015-04-16 11:30:56 +02:00
parent f80d020f17
commit 0d344a23d3
3 changed files with 46 additions and 7 deletions

View file

@ -69,6 +69,12 @@ struct SynthIce40Pass : public Pass {
log(" techmap\n");
log(" opt -fast\n");
log("\n");
log(" map_ffs:\n");
log(" dff2dffe -direct-match $_DFF_*\n");
log(" techmap -map +/ice40/cells_map.v\n");
log(" simplemap\n");
log(" clean\n");
log("\n");
log(" map_luts:\n");
log(" abc -lut 4\n");
log(" clean\n");
@ -135,6 +141,14 @@ struct SynthIce40Pass : public Pass {
Pass::call(design, "opt -fast");
}
if (check_label(active, run_from, run_to, "map_ffs"))
{
Pass::call(design, "dff2dffe -direct-match $_DFF_*");
Pass::call(design, "techmap -map +/ice40/cells_map.v");
Pass::call(design, "simplemap");
Pass::call(design, "clean");
}
if (check_label(active, run_from, run_to, "map_luts"))
{
Pass::call(design, "abc -lut 4");