mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-08 15:13:24 +00:00
Specify ice40 family to cells_sim.v using define
This commit is contained in:
parent
345a572449
commit
e4f89e01b5
1 changed files with 8 additions and 1 deletions
|
@ -238,7 +238,14 @@ struct SynthIce40Pass : public ScriptPass
|
||||||
{
|
{
|
||||||
if (check_label("begin"))
|
if (check_label("begin"))
|
||||||
{
|
{
|
||||||
run("read_verilog -icells -lib +/ice40/cells_sim.v");
|
std::string define;
|
||||||
|
if (device_opt == "lp")
|
||||||
|
define = "-D ICE40_LX";
|
||||||
|
else if (device_opt == "u")
|
||||||
|
define = "-D ICE40_U";
|
||||||
|
else
|
||||||
|
define = "-D ICE40_HX";
|
||||||
|
run("read_verilog -icells " + define + " -lib +/ice40/cells_sim.v");
|
||||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
|
||||||
run("proc");
|
run("proc");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue