File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3519,10 +3519,15 @@ struct SlangFrontend : Frontend {
3519
3519
}
3520
3520
3521
3521
if (!settings.no_proc .value_or (false )) {
3522
- RTLIL::Selection emitted_modules = RTLIL::Selection::EmptySelection (design);
3522
+ // Hack to get an empty selection in a way compatible with both pre and post Yosys v0.52
3523
+ // Front of the selection stack should be a "full selection" at any time, and we can
3524
+ // amend it.
3525
+ RTLIL::Selection emitted_modules = design->selection_stack .front ();
3526
+ emitted_modules.full_selection = false ;
3523
3527
for (auto name : emitted_module_names)
3524
3528
emitted_modules.selected_modules .insert (name);
3525
- design->push_selection (emitted_modules);
3529
+
3530
+ design->selection_stack .push_back (emitted_modules);
3526
3531
3527
3532
log_push ();
3528
3533
call (design, " undriven" );
@@ -3537,7 +3542,7 @@ struct SlangFrontend : Frontend {
3537
3542
call (design, " opt_expr -keepdc" );
3538
3543
log_pop ();
3539
3544
3540
- design->pop_selection ();
3545
+ design->selection_stack . pop_back ();
3541
3546
}
3542
3547
}
3543
3548
} SlangFrontend;
You can’t perform that action at this time.
0 commit comments