3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-30 04:15:52 +00:00

Macro defines don't pass or succeed the same way

This commit is contained in:
Akash Levy 2024-05-13 15:53:54 -07:00
parent 0f1f6506b4
commit 667c3375e8

View file

@ -3437,17 +3437,11 @@ struct VerificPass : public Pass {
log("AUTO-DISCOVER: registered -v file %s\n", file_name); log("AUTO-DISCOVER: registered -v file %s\n", file_name);
} }
FOREACH_MAP_ITEM(veri_file::AllMacroDefs(), mi, &key, &value) { FOREACH_MAP_ITEM(veri_file::AllMacroDefs(), mi, &key, &value) {
if (!hdl_file_sort::DefineMacro(key, value, veri_file::MacroArgs(key))) { hdl_file_sort::DefineMacro(key, value, veri_file::MacroArgs(key));
verific_error_msg.clear();
log_cmd_error("Could not define macro %s with value %s.\n", key, value);
}
log("AUTO-DISCOVER: registered definition of macro %s with value %s\n", key, value); log("AUTO-DISCOVER: registered definition of macro %s with value %s\n", key, value);
} }
FOREACH_MAP_ITEM(veri_file::AllCmdLineMacros(), mi, &key, &value) { FOREACH_MAP_ITEM(veri_file::AllCmdLineMacros(), mi, &key, &value) {
if (!hdl_file_sort::DefineCmdLineMacro(key, value)) { hdl_file_sort::DefineCmdLineMacro(key, value);
verific_error_msg.clear();
log_cmd_error("Could not define command line macro %s with value %s.\n", key, value);
}
log("AUTO-DISCOVER: registered definition of command line macro %s with value %s\n", key, value); log("AUTO-DISCOVER: registered definition of command line macro %s with value %s\n", key, value);
} }
// FOREACH_SET_ITEM(veri_file::GetAllLOptions(), si, key) { // FOREACH_SET_ITEM(veri_file::GetAllLOptions(), si, key) {