mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-29 20:18:53 +00:00
Emit errors before dfflegalize.
This commit is contained in:
parent
b2d688dbf9
commit
32a268d745
10 changed files with 81 additions and 28 deletions
|
|
@ -292,7 +292,7 @@ struct SynthPass : public ScriptPass
|
|||
run("hierarchy -check");
|
||||
} else
|
||||
run(stringf("hierarchy -check -top %s", top_module));
|
||||
run("proc -latches " + (latches == "error" ? std::string("auto") : latches));
|
||||
run("proc -latches " + (latches == "auto" ? std::string("auto") : std::string("warn")));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -373,9 +373,12 @@ struct SynthPass : public ScriptPass
|
|||
run("dfflegalize -cell $_DFF_P_ 0 -cell $_DLATCH_?_ x", "without -complex-dff");
|
||||
}
|
||||
if (help_mode)
|
||||
run("select -assert-none t:$_DLATCH_* t:$_DLATCHSR_*", "(only if -latches error, the default)");
|
||||
else if (latches == "error")
|
||||
run("select -assert-none t:$_DLATCH_* t:$_DLATCHSR_*");
|
||||
run("check -assert", "(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("techmap -map +/fabulous/latches_map.v");
|
||||
run("techmap -map +/fabulous/ff_map.v");
|
||||
if (help_mode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue