mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Create a default selection stack in RTLIL::Design::Design()
This commit is contained in:
parent
c38283dbd0
commit
da360771a1
|
@ -228,6 +228,7 @@ void RTLIL::Selection::optimize(RTLIL::Design *design)
|
||||||
RTLIL::Design::Design()
|
RTLIL::Design::Design()
|
||||||
{
|
{
|
||||||
refcount_modules_ = 0;
|
refcount_modules_ = 0;
|
||||||
|
selection_stack.push_back(RTLIL::Selection());
|
||||||
}
|
}
|
||||||
|
|
||||||
RTLIL::Design::~Design()
|
RTLIL::Design::~Design()
|
||||||
|
|
|
@ -74,9 +74,7 @@ int SIZE(RTLIL::Wire *wire)
|
||||||
void yosys_setup()
|
void yosys_setup()
|
||||||
{
|
{
|
||||||
Pass::init_register();
|
Pass::init_register();
|
||||||
|
|
||||||
yosys_design = new RTLIL::Design;
|
yosys_design = new RTLIL::Design;
|
||||||
yosys_design->selection_stack.push_back(RTLIL::Selection());
|
|
||||||
log_push();
|
log_push();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue