mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
Add proc_rom pass.
This commit is contained in:
parent
c862b1dbfb
commit
990c9b8e11
5 changed files with 283 additions and 1 deletions
|
@ -40,6 +40,7 @@ struct ProcPass : public Pass {
|
|||
log(" proc_prune\n");
|
||||
log(" proc_init\n");
|
||||
log(" proc_arst\n");
|
||||
log(" proc_rom\n");
|
||||
log(" proc_mux\n");
|
||||
log(" proc_dlatch\n");
|
||||
log(" proc_dff\n");
|
||||
|
@ -55,6 +56,9 @@ struct ProcPass : public Pass {
|
|||
log(" -nomux\n");
|
||||
log(" Will omit the proc_mux pass.\n");
|
||||
log("\n");
|
||||
log(" -norom\n");
|
||||
log(" Will omit the proc_rom pass.\n");
|
||||
log("\n");
|
||||
log(" -global_arst [!]<netname>\n");
|
||||
log(" This option is passed through to proc_arst.\n");
|
||||
log("\n");
|
||||
|
@ -72,6 +76,7 @@ struct ProcPass : public Pass {
|
|||
bool ifxmode = false;
|
||||
bool nomux = false;
|
||||
bool noopt = false;
|
||||
bool norom = false;
|
||||
|
||||
log_header(design, "Executing PROC pass (convert processes to netlists).\n");
|
||||
log_push();
|
||||
|
@ -95,6 +100,10 @@ struct ProcPass : public Pass {
|
|||
noopt = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-norom") {
|
||||
norom = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
@ -108,6 +117,8 @@ struct ProcPass : public Pass {
|
|||
Pass::call(design, "proc_arst");
|
||||
else
|
||||
Pass::call(design, "proc_arst -global_arst " + global_arst);
|
||||
if (!norom)
|
||||
Pass::call(design, "proc_rom");
|
||||
if (!nomux)
|
||||
Pass::call(design, ifxmode ? "proc_mux -ifx" : "proc_mux");
|
||||
Pass::call(design, "proc_dlatch");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue