mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Makes sure to set initial_top when change, fixes #3462
This commit is contained in:
parent
060cbd3e9e
commit
4bc1e1d1f1
|
@ -1058,6 +1058,7 @@ struct HierarchyPass : public Pass {
|
||||||
if (tmp_top_mod != NULL) {
|
if (tmp_top_mod != NULL) {
|
||||||
if (tmp_top_mod != top_mod){
|
if (tmp_top_mod != top_mod){
|
||||||
top_mod = tmp_top_mod;
|
top_mod = tmp_top_mod;
|
||||||
|
top_mod->attributes[ID::initial_top] = RTLIL::Const(1);
|
||||||
did_something = true;
|
did_something = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue