3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 20:21:25 +00:00

Add ice40 box files

This commit is contained in:
Eddie Hung 2019-04-16 16:39:30 -07:00
parent ae2653c50f
commit 7980118d74
6 changed files with 27 additions and 1 deletions

View file

@ -316,7 +316,14 @@ struct SynthIce40Pass : public ScriptPass
run("techmap -map +/gate2lut.v -D LUT_WIDTH=4", "(only if -noabc)");
}
if (!noabc) {
run(abc + " -dress -lut 4", "(skip if -noabc)");
if (abc == "abc9") {
run("read_verilog +/ice40/cells_box.v");
run("techmap -map +/techmap.v A:abc_box_id");
run(abc + " -dress -lut +/ice40/lut.lut -box +/ice40/cells.box", "(skip if -noabc)");
run("blackbox A:abc_box_id");
}
else
run(abc + " -lut 4", "(skip if -noabc)");
}
run("clean");
if (relut || help_mode) {