3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-05 19:00:26 +00:00

Added "fsm_expand -full"

This commit is contained in:
Clifford Wolf 2016-11-02 09:31:39 +01:00
parent 56e2bb88ae
commit 0c8e973d32
2 changed files with 35 additions and 17 deletions

View file

@ -59,6 +59,9 @@ struct FsmPass : public Pass {
log(" -expand, -norecode, -export, -nomap\n");
log(" enable or disable passes as indicated above\n");
log("\n");
log(" -fullexpand\n");
log(" call expand with -full option\n");
log("\n");
log(" -encoding type\n");
log(" -fm_set_fsm_file file\n");
log(" -encfile file\n");
@ -71,6 +74,7 @@ struct FsmPass : public Pass {
bool flag_norecode = false;
bool flag_nodetect = false;
bool flag_expand = false;
bool flag_fullexpand = false;
bool flag_export = false;
std::string fm_set_fsm_file_opt;
std::string encfile_opt;
@ -110,6 +114,10 @@ struct FsmPass : public Pass {
flag_expand = true;
continue;
}
if (arg == "-fullexpand") {
flag_fullexpand = true;
continue;
}
if (arg == "-export") {
flag_export = true;
continue;
@ -126,8 +134,8 @@ struct FsmPass : public Pass {
Pass::call(design, "opt_clean");
Pass::call(design, "fsm_opt");
if (flag_expand) {
Pass::call(design, "fsm_expand");
if (flag_expand || flag_fullexpand) {
Pass::call(design, flag_fullexpand ? "fsm_expand -full" : "fsm_expand");
Pass::call(design, "opt_clean");
Pass::call(design, "fsm_opt");
}