diff options
author | whitequark <whitequark@whitequark.org> | 2021-03-05 04:14:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 04:14:07 -0800 |
commit | b117f9bba8f88951ab60b650ae4b5d51395aeb69 (patch) | |
tree | a1bafa7637002132d70dbbd9f188519e40d7ad3a /backends/cxxrtl/cxxrtl_backend.cc | |
parent | 7d2097b00538fa366cc433b23c2c307db0e3a4be (diff) | |
parent | a9a873a1d26c27aea8f584fc0a85a6585926c7da (diff) | |
download | yosys-b117f9bba8f88951ab60b650ae4b5d51395aeb69.tar.gz yosys-b117f9bba8f88951ab60b650ae4b5d51395aeb69.tar.bz2 yosys-b117f9bba8f88951ab60b650ae4b5d51395aeb69.zip |
Merge pull request #2633 from whitequark/cxxrtl-no-top
cxxrtl: don't crash on empty designs
Diffstat (limited to 'backends/cxxrtl/cxxrtl_backend.cc')
-rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index 39046bd78..a312c1e21 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -2763,7 +2763,7 @@ struct CxxrtlWorker { // Recheck the design if it was modified. if (did_anything) check_design(design, has_top, has_sync_init, has_packed_mem); - log_assert(has_top && !has_sync_init && !has_packed_mem); + log_assert(!has_sync_init && !has_packed_mem); log_pop(); if (did_anything) log_spacer(); |