mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
Verilog front-end: define `BLACKBOX in -lib mode
This commit is contained in:
parent
49ef830464
commit
7ff802e199
|
@ -108,7 +108,7 @@ struct VerilogFrontend : public Frontend {
|
||||||
log(" do not run the pre-processor\n");
|
log(" do not run the pre-processor\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -lib\n");
|
log(" -lib\n");
|
||||||
log(" only create empty blackbox modules\n");
|
log(" only create empty blackbox modules. This implies -DBLACKBOX.\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -noopt\n");
|
log(" -noopt\n");
|
||||||
log(" don't perform basic optimizations (such as const folding) in the\n");
|
log(" don't perform basic optimizations (such as const folding) in the\n");
|
||||||
|
@ -227,6 +227,7 @@ struct VerilogFrontend : public Frontend {
|
||||||
}
|
}
|
||||||
if (arg == "-lib") {
|
if (arg == "-lib") {
|
||||||
flag_lib = true;
|
flag_lib = true;
|
||||||
|
defines_map["BLACKBOX"] = string();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (arg == "-noopt") {
|
if (arg == "-noopt") {
|
||||||
|
|
Loading…
Reference in a new issue