mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Add "techmap -wb", use in formal flows
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
b7445ef387
commit
f3ad8d680a
3 changed files with 13 additions and 6 deletions
|
@ -385,7 +385,7 @@ struct TechmapWorker
|
|||
{
|
||||
std::string mapmsg_prefix = in_recursion ? "Recursively mapping" : "Mapping";
|
||||
|
||||
if (!design->selected(module) || module->get_blackbox_attribute())
|
||||
if (!design->selected(module) || module->get_blackbox_attribute(ignore_wb))
|
||||
return false;
|
||||
|
||||
bool log_continue = false;
|
||||
|
@ -927,6 +927,9 @@ struct TechmapPass : public Pass {
|
|||
log(" -autoproc\n");
|
||||
log(" Automatically call \"proc\" on implementations that contain processes.\n");
|
||||
log("\n");
|
||||
log(" -wb\n");
|
||||
log(" Ignore the 'whitebox' attribute on cell implementations.\n");
|
||||
log("\n");
|
||||
log(" -assert\n");
|
||||
log(" this option will cause techmap to exit with an error if it can't map\n");
|
||||
log(" a selected cell. only cell types that end on an underscore are accepted\n");
|
||||
|
@ -1070,6 +1073,10 @@ struct TechmapPass : public Pass {
|
|||
worker.autoproc_mode = true;
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-wb") {
|
||||
worker.ignore_wb = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue