diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-08-29 10:12:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 10:12:34 +0200 |
commit | a8506c1c760b476a661e0e2484388648f3a55664 (patch) | |
tree | ccfbb147e8e193d96bb93276f95d57fd82e35f96 /passes/hierarchy/hierarchy.cc | |
parent | 883831bd24d5a8b2ebc88d9dadae23116694ec03 (diff) | |
parent | 5b5fe76966b44ebc35e0087072c1df2c2bba044b (diff) | |
download | yosys-a8506c1c760b476a661e0e2484388648f3a55664.tar.gz yosys-a8506c1c760b476a661e0e2484388648f3a55664.tar.bz2 yosys-a8506c1c760b476a661e0e2484388648f3a55664.zip |
Merge pull request #3463 from YosysHQ/micko/hierarchy_fix
Makes sure to set initial_top when top change, fixes #3462
Diffstat (limited to 'passes/hierarchy/hierarchy.cc')
-rw-r--r-- | passes/hierarchy/hierarchy.cc | 1 |
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; } } |