mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-28 11:38:50 +00:00
Fixup level policy.
This commit is contained in:
parent
32a268d745
commit
b3b1394cf1
15 changed files with 55 additions and 55 deletions
|
|
@ -63,11 +63,11 @@ struct SynthEfinixPass : public ScriptPass
|
|||
log(" -nobram\n");
|
||||
log(" do not use EFX_RAM_5K cells in output netlist\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log("\n");
|
||||
log("\n");
|
||||
log("The following commands are executed by this synthesis command:\n");
|
||||
|
|
@ -139,8 +139,8 @@ struct SynthEfinixPass : public ScriptPass
|
|||
|
||||
if (!design->full_selection())
|
||||
log_cmd_error("This command only operates on fully selected designs!\n");
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
log_header(design, "Executing SYNTH_EFINIX pass.\n");
|
||||
log_push();
|
||||
|
|
@ -160,7 +160,7 @@ struct SynthEfinixPass : public ScriptPass
|
|||
|
||||
if (flatten && check_label("flatten", "(unless -noflatten)"))
|
||||
{
|
||||
run("proc -latches " + (latches == "auto" ? std::string("auto") : std::string("warn")));
|
||||
run("proc -latches " + (latches == "info" ? std::string("info") : std::string("warn")));
|
||||
run("check");
|
||||
run("flatten");
|
||||
run("tribuf -logic");
|
||||
|
|
|
|||
|
|
@ -116,11 +116,11 @@ struct SynthPass : public ScriptPass
|
|||
log(" read/write collision\" (same result as setting the no_rw_check\n");
|
||||
log(" attribute on all memories).\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log("\n");
|
||||
log("\n");
|
||||
log("The following commands are executed by this synthesis command:\n");
|
||||
|
|
@ -260,8 +260,8 @@ struct SynthPass : public ScriptPass
|
|||
|
||||
if (!design->full_selection())
|
||||
log_cmd_error("This command only operates on fully selected designs!\n");
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
log_header(design, "Executing SYNTH_FABULOUS pass.\n");
|
||||
log_push();
|
||||
|
|
@ -292,7 +292,7 @@ struct SynthPass : public ScriptPass
|
|||
run("hierarchy -check");
|
||||
} else
|
||||
run(stringf("hierarchy -check -top %s", top_module));
|
||||
run("proc -latches " + (latches == "auto" ? std::string("auto") : std::string("warn")));
|
||||
run("proc -latches " + (latches == "info" ? std::string("info") : std::string("warn")));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -117,11 +117,11 @@ struct SynthIce40Pass : public ScriptPass
|
|||
log(" read/write collision\" (same result as setting the no_rw_check\n");
|
||||
log(" attribute on all memories).\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log("\n");
|
||||
log("\n");
|
||||
log("The following commands are executed by this synthesis command:\n");
|
||||
|
|
@ -277,8 +277,8 @@ struct SynthIce40Pass : public ScriptPass
|
|||
log_cmd_error("This command only operates on fully selected designs!\n");
|
||||
if (device_opt != "hx" && device_opt != "lp" && device_opt !="u")
|
||||
log_cmd_error("Invalid or no device specified: '%s'\n", device_opt);
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
if (abc9 && retime)
|
||||
log_cmd_error("-retime option not currently compatible with -abc9!\n");
|
||||
|
|
@ -316,7 +316,7 @@ struct SynthIce40Pass : public ScriptPass
|
|||
{
|
||||
run("read_verilog " + define + " -lib -specify +/ice40/cells_sim.v");
|
||||
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt));
|
||||
run("proc -latches " + (latches == "auto" ? std::string("auto") : std::string("warn")));
|
||||
run("proc -latches " + (latches == "info" ? std::string("info") : std::string("warn")));
|
||||
}
|
||||
|
||||
if (check_label("flatten", "(unless -noflatten)"))
|
||||
|
|
|
|||
|
|
@ -156,11 +156,11 @@ struct SynthLatticePass : public ScriptPass
|
|||
log(" implement constant comparisons in soft logic, do not involve\n");
|
||||
log(" hard carry chains\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log(" (ignored with -asyncprld, which has a latch primitive)\n");
|
||||
log("\n");
|
||||
log("\n");
|
||||
|
|
@ -337,8 +337,8 @@ struct SynthLatticePass : public ScriptPass
|
|||
if (family.empty())
|
||||
log_cmd_error("Lattice family parameter must be set.\n");
|
||||
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
if (family == "ecp5") {
|
||||
postfix = "_ecp5";
|
||||
|
|
@ -416,7 +416,7 @@ struct SynthLatticePass : public ScriptPass
|
|||
|
||||
if (check_label("coarse"))
|
||||
{
|
||||
run("proc -latches " + ((asyncprld || latches == "auto") ? std::string("auto") : std::string("warn")));
|
||||
run("proc -latches " + ((asyncprld || latches == "info") ? std::string("info") : std::string("warn")));
|
||||
if (flatten || help_mode) {
|
||||
run("check");
|
||||
run("flatten");
|
||||
|
|
|
|||
|
|
@ -97,11 +97,11 @@ struct SynthNanoXplorePass : public ScriptPass
|
|||
log(" read/write collision\" (same result as setting the no_rw_check\n");
|
||||
log(" attribute on all memories).\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log("\n");
|
||||
log("\n");
|
||||
log("The following commands are executed by this synthesis command:\n");
|
||||
|
|
@ -217,8 +217,8 @@ struct SynthNanoXplorePass : public ScriptPass
|
|||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
if (family.empty()) {
|
||||
//log_warning("NanoXplore family not set, setting it to NG-ULTRA.\n");
|
||||
|
|
@ -263,7 +263,7 @@ struct SynthNanoXplorePass : public ScriptPass
|
|||
|
||||
if (check_label("coarse"))
|
||||
{
|
||||
run("proc -latches " + (latches == "auto" ? std::string("auto") : std::string("warn")));
|
||||
run("proc -latches " + (latches == "info" ? std::string("info") : std::string("warn")));
|
||||
if (flatten || help_mode) {
|
||||
run("check");
|
||||
run("flatten", "(skip if -noflatten)");
|
||||
|
|
|
|||
|
|
@ -72,11 +72,11 @@ struct SynthQuickLogicPass : public ScriptPass {
|
|||
log(" use old ABC flow, which has generally worse mapping results but is less\n");
|
||||
log(" likely to have bugs.\n");
|
||||
log("\n");
|
||||
log(" -latches <auto|warn|error>\n");
|
||||
log(" -latches <info|warn|error>\n");
|
||||
log(" select the behaviour for latches that cannot be mapped to a\n");
|
||||
log(" dedicated hardware primitive and are implemented using LUTs\n");
|
||||
log(" instead. 'error' (the default) aborts synthesis, 'warn' only\n");
|
||||
log(" prints a warning, and 'auto' permits them without complaint.\n");
|
||||
log(" prints a warning, and 'info' permits them with an info-level message.\n");
|
||||
log(" (only applies to the pp3 family)\n");
|
||||
log("\n");
|
||||
log("The following commands are executed by this synthesis command:\n");
|
||||
|
|
@ -190,8 +190,8 @@ struct SynthQuickLogicPass : public ScriptPass {
|
|||
if (family != "pp3" && family != "qlf_k6n10f")
|
||||
log_cmd_error("Invalid family specified: '%s'\n", family);
|
||||
|
||||
if (latches != "auto" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected auto, warn or error)\n", latches.c_str());
|
||||
if (latches != "info" && latches != "warn" && latches != "error")
|
||||
log_cmd_error("Invalid value '%s' for -latches (expected info, warn or error)\n", latches.c_str());
|
||||
|
||||
if (abc9 && design->scratchpad_get_int("abc9.D", 0) == 0) {
|
||||
log_warning("delay target has not been set via SDC or scratchpad; assuming 12 MHz clock.\n");
|
||||
|
|
@ -226,7 +226,7 @@ struct SynthQuickLogicPass : public ScriptPass {
|
|||
}
|
||||
|
||||
if (check_label("prepare")) {
|
||||
run("proc -latches " + ((family == "pp3" && latches != "auto") ? std::string("warn") : std::string("auto")));
|
||||
run("proc -latches " + ((family == "pp3" && latches != "info") ? std::string("warn") : std::string("info")));
|
||||
if (flatten) {
|
||||
run("check");
|
||||
run("flatten", "(unless -noflatten)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue