diff options
author | whitequark <whitequark@whitequark.org> | 2021-03-05 11:05:19 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2021-03-05 11:05:19 +0000 |
commit | a9a873a1d26c27aea8f584fc0a85a6585926c7da (patch) | |
tree | a1bafa7637002132d70dbbd9f188519e40d7ad3a | |
parent | 7d2097b00538fa366cc433b23c2c307db0e3a4be (diff) | |
download | yosys-a9a873a1d26c27aea8f584fc0a85a6585926c7da.tar.gz yosys-a9a873a1d26c27aea8f584fc0a85a6585926c7da.tar.bz2 yosys-a9a873a1d26c27aea8f584fc0a85a6585926c7da.zip |
cxxrtl: don't crash on empty designs.
-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(); |