3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-06 07:15:48 +00:00

cutpoint: Add $scopeinfo cell

Also adds "blackbox" as a valid TYPE.
This commit is contained in:
Krystine Sherwin 2025-01-17 11:46:07 +13:00
parent 4eb2d06676
commit 8e9c96518c
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -93,6 +93,8 @@ struct CutpointPass : public Pass {
if (module->get_blackbox_attribute()) {
module->set_bool_attribute(ID::blackbox, false);
module->set_bool_attribute(ID::whitebox, false);
auto scopeinfo = module->addCell(NEW_ID, ID($scopeinfo));
scopeinfo->setParam(ID::TYPE, RTLIL::Const("blackbox"));
}
continue;
}