mirror of https://github.com/YosysHQ/yosys.git
Execute techmap and arith_map simultaneously
This commit is contained in:
parent
36120fcc30
commit
0ad50332d9
|
@ -229,11 +229,6 @@ struct SynthXilinxPass : public ScriptPass
|
||||||
run("dff2dffe");
|
run("dff2dffe");
|
||||||
run("opt -full");
|
run("opt -full");
|
||||||
|
|
||||||
if (!vpr || help_mode)
|
|
||||||
run("techmap -map +/xilinx/arith_map.v");
|
|
||||||
else
|
|
||||||
run("techmap -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
|
|
||||||
|
|
||||||
if (!nosrl || help_mode) {
|
if (!nosrl || help_mode) {
|
||||||
// shregmap operates on bit-level flops, not word-level,
|
// shregmap operates on bit-level flops, not word-level,
|
||||||
// so break those down here
|
// so break those down here
|
||||||
|
@ -242,7 +237,12 @@ struct SynthXilinxPass : public ScriptPass
|
||||||
run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')");
|
run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')");
|
||||||
}
|
}
|
||||||
|
|
||||||
run("techmap");
|
if (!vpr || help_mode)
|
||||||
|
run("techmap -map +/techmap.v -map +/xilinx/arith_map.v");
|
||||||
|
else
|
||||||
|
run("techmap -map +/techmap.v +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
|
||||||
|
|
||||||
|
|
||||||
run("opt -fast");
|
run("opt -fast");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue