mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 05:08:56 +00:00
abc9: add some log_{push,pop}() as per @nakengelhardt
This commit is contained in:
parent
03ce2c72bb
commit
d4e188299b
2 changed files with 19 additions and 5 deletions
|
@ -235,8 +235,11 @@ struct Abc9Pass : public ScriptPass
|
|||
extra_args(args, argidx, design);
|
||||
|
||||
log_header(design, "Executing ABC9 pass.\n");
|
||||
log_push();
|
||||
|
||||
run_script(design, run_from, run_to);
|
||||
|
||||
log_pop();
|
||||
}
|
||||
|
||||
void script() YS_OVERRIDE
|
||||
|
@ -276,6 +279,7 @@ struct Abc9Pass : public ScriptPass
|
|||
}
|
||||
log_assert(!mod->attributes.count(ID(abc9_box_id)));
|
||||
|
||||
log_push();
|
||||
active_design->selection().select(mod);
|
||||
|
||||
if (!active_design->selected_whole_module(mod))
|
||||
|
@ -310,6 +314,7 @@ struct Abc9Pass : public ScriptPass
|
|||
}
|
||||
|
||||
active_design->selection().selected_modules.clear();
|
||||
log_pop();
|
||||
}
|
||||
|
||||
active_design->selection_stack.pop_back();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue