Fix SYNTHESIS always being defined in Verilog frontend

This commit is contained in:
georgerennie 2020-12-01 01:37:19 +00:00
parent 2116c58581
commit c1f6ce8b33
2 changed files with 3 additions and 1 deletions

View File

@ -321,7 +321,6 @@ struct define_body_t
define_map_t::define_map_t()
{
add("YOSYS", "1");
add(formal_mode ? "FORMAL" : "SYNTHESIS", "1");
}
// We must define this destructor here (rather than relying on the default), because we need to

View File

@ -446,6 +446,9 @@ struct VerilogFrontend : public Frontend {
}
break;
}
defines_map.add(formal_mode ? "FORMAL" : "SYNTHESIS", "1");
extra_args(f, filename, args, argidx);
log_header(design, "Executing Verilog-2005 frontend: %s\n", filename.c_str());