mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
techmap abc_unmap.v before xilinx_srl -fixed
This commit is contained in:
parent
19bfb41958
commit
0add5965c7
1 changed files with 5 additions and 6 deletions
|
@ -538,6 +538,7 @@ struct SynthXilinxPass : public ScriptPass
|
||||||
else
|
else
|
||||||
abc9_opts += " -lut +/xilinx/abc9_xc7.lut";
|
abc9_opts += " -lut +/xilinx/abc9_xc7.lut";
|
||||||
run("abc9" + abc9_opts);
|
run("abc9" + abc9_opts);
|
||||||
|
run("techmap -map +/xilinx/abc9_unmap.v");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (nowidelut)
|
if (nowidelut)
|
||||||
|
@ -553,12 +554,10 @@ struct SynthXilinxPass : public ScriptPass
|
||||||
run("xilinx_srl -fixed -minlen 3", "(skip if '-nosrl')");
|
run("xilinx_srl -fixed -minlen 3", "(skip if '-nosrl')");
|
||||||
std::string techmap_args = "-map +/xilinx/lut_map.v -map +/xilinx/cells_map.v";
|
std::string techmap_args = "-map +/xilinx/lut_map.v -map +/xilinx/cells_map.v";
|
||||||
if (help_mode)
|
if (help_mode)
|
||||||
techmap_args += " [-map " + ff_map_file + "]";
|
techmap_args += stringf("[-map %s]", ff_map_file.c_str());
|
||||||
else if (abc9)
|
else if (!abc9)
|
||||||
techmap_args += " -map +/xilinx/abc9_unmap.v";
|
techmap_args += stringf(" -map %s", ff_map_file.c_str());
|
||||||
else
|
run("techmap " + techmap_args, "(option without '-abc9')");
|
||||||
techmap_args += " -map " + ff_map_file;
|
|
||||||
run("techmap " + techmap_args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_label("finalize")) {
|
if (check_label("finalize")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue