mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 17:15:33 +00:00
blackbox: Include whiteboxed modules
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
937392ad33
commit
dd6d34f461
4 changed files with 19 additions and 4 deletions
|
@ -46,10 +46,11 @@ struct BlackboxPass : public Pass {
|
|||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
for (auto module : design->selected_whole_modules_warn())
|
||||
for (auto module : design->selected_whole_modules_warn(true))
|
||||
{
|
||||
module->makeblackbox();
|
||||
module->set_bool_attribute(ID::blackbox);
|
||||
module->set_bool_attribute(ID::whitebox, false);
|
||||
}
|
||||
}
|
||||
} BlackboxPass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue