mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-11 00:23:26 +00:00
synth_{ice40,ecp5}: more sensible pass label naming.
This commit is contained in:
parent
463f710066
commit
ba099bfe9b
2 changed files with 9 additions and 5 deletions
|
@ -231,23 +231,27 @@ struct SynthEcp5Pass : public ScriptPass
|
||||||
run("synth -run coarse");
|
run("synth -run coarse");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nobram && check_label("bram", "(skip if -nobram)"))
|
if (!nobram && check_label("map_bram", "(skip if -nobram)"))
|
||||||
{
|
{
|
||||||
run("memory_bram -rules +/ecp5/bram.txt");
|
run("memory_bram -rules +/ecp5/bram.txt");
|
||||||
run("techmap -map +/ecp5/brams_map.v");
|
run("techmap -map +/ecp5/brams_map.v");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nodram && check_label("dram", "(skip if -nodram)"))
|
if (!nodram && check_label("map_dram", "(skip if -nodram)"))
|
||||||
{
|
{
|
||||||
run("memory_bram -rules +/ecp5/dram.txt");
|
run("memory_bram -rules +/ecp5/dram.txt");
|
||||||
run("techmap -map +/ecp5/drams_map.v");
|
run("techmap -map +/ecp5/drams_map.v");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_label("fine"))
|
if (check_label("map_ffram"))
|
||||||
{
|
{
|
||||||
run("opt -fast -mux_undef -undriven -fine");
|
run("opt -fast -mux_undef -undriven -fine");
|
||||||
run("memory_map");
|
run("memory_map");
|
||||||
run("opt -undriven -fine");
|
run("opt -undriven -fine");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (check_label("map_gates"))
|
||||||
|
{
|
||||||
if (noccu2)
|
if (noccu2)
|
||||||
run("techmap");
|
run("techmap");
|
||||||
else
|
else
|
||||||
|
|
|
@ -275,14 +275,14 @@ struct SynthIce40Pass : public ScriptPass
|
||||||
run("opt_clean");
|
run("opt_clean");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nobram && check_label("bram", "(skip if -nobram)"))
|
if (!nobram && check_label("map_bram", "(skip if -nobram)"))
|
||||||
{
|
{
|
||||||
run("memory_bram -rules +/ice40/brams.txt");
|
run("memory_bram -rules +/ice40/brams.txt");
|
||||||
run("techmap -map +/ice40/brams_map.v");
|
run("techmap -map +/ice40/brams_map.v");
|
||||||
run("ice40_braminit");
|
run("ice40_braminit");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_label("map"))
|
if (check_label("map_ffram"))
|
||||||
{
|
{
|
||||||
run("opt -fast -mux_undef -undriven -fine");
|
run("opt -fast -mux_undef -undriven -fine");
|
||||||
run("memory_map");
|
run("memory_map");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue