Merge pull request #2633 from whitequark/cxxrtl-no-top

cxxrtl: don't crash on empty designs
This commit is contained in:
whitequark 2021-03-05 04:14:07 -08:00 committed by GitHub
commit b117f9bba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();