3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-28 03:28:49 +00:00

Add -nolatches check option.

This commit is contained in:
nella 2026-06-24 10:38:10 +02:00
parent b3b1394cf1
commit a3b8609c84
8 changed files with 28 additions and 40 deletions

View file

@ -548,12 +548,9 @@ struct SynthLatticePass : public ScriptPass
run("abc", " (only if -abc2)");
if (!asyncprld || help_mode) {
if (help_mode)
run("check -assert", "(skip if -asyncprld; only if -latches error, the default)");
else if (latches == "error") {
active_design->scratchpad_set_bool("check.latchonly", true);
run("check -assert");
active_design->scratchpad_unset("check.latchonly");
}
run("check -latchonly -assert", "(skip if -asyncprld; only if -latches error, the default)");
else if (latches == "error")
run("check -latchonly -assert");
run("techmap -map +/lattice/latches_map.v", "(skip if -asyncprld)");
}