mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Split out logic for reprocessing an AstModule
This will enable other features to use same core logic for replacing an existing AstModule with a newly elaborated version.
This commit is contained in:
parent
ee230f2bb9
commit
bd16d01c0e
5 changed files with 61 additions and 28 deletions
|
@ -554,7 +554,7 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
|
|||
|
||||
// If any interface instances or interface ports were found in the module, we need to rederive it completely:
|
||||
if ((if_expander.interfaces_in_module.size() > 0 || has_interface_ports) && !module->get_bool_attribute(ID::interfaces_replaced_in_module)) {
|
||||
module->reprocess_module(design, if_expander.interfaces_in_module);
|
||||
module->expand_interfaces(design, if_expander.interfaces_in_module);
|
||||
return did_something;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue