aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2022-08-26 17:12:56 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2022-08-26 17:12:56 +0200
commit4bc1e1d1f1d3f27b3e437591255a38ab647f0453 (patch)
tree90acff9d251259252e5c11cc6c882fc5d22c469f /passes
parent060cbd3e9e4b3fcf2c625c33b277d80fd875c5bc (diff)
downloadyosys-4bc1e1d1f1d3f27b3e437591255a38ab647f0453.tar.gz
yosys-4bc1e1d1f1d3f27b3e437591255a38ab647f0453.tar.bz2
yosys-4bc1e1d1f1d3f27b3e437591255a38ab647f0453.zip
Makes sure to set initial_top when change, fixes #3462
Diffstat (limited to 'passes')
-rw-r--r--passes/hierarchy/hierarchy.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc
index d27fddf1c..eea6abb04 100644
--- a/passes/hierarchy/hierarchy.cc
+++ b/passes/hierarchy/hierarchy.cc
@@ -1058,6 +1058,7 @@ struct HierarchyPass : public Pass {
if (tmp_top_mod != NULL) {
if (tmp_top_mod != top_mod){
top_mod = tmp_top_mod;
+ top_mod->attributes[ID::initial_top] = RTLIL::Const(1);
did_something = true;
}
}