{
static bool set_verific_global_flags = true;
- if (check_noverific_env())
+ if (check_noverific_env()) {
+ help();
log_cmd_error("This version of Yosys is built without Verific support.\n");
+ }
log_header(design, "Executing VERIFIC (loading SystemVerilog and VHDL designs using Verific).\n");
else
{
if (argidx == GetSize(args))
- log_cmd_error("No top module specified.\n");
+ cmd_error(arg, argidx, "No top module specified.\n");
Array veri_modules, vhdl_units;
for (; argidx < GetSize(args); argidx++)
goto check_error;
}
- log_cmd_error("Missing or unsupported mode parameter.\n");
+ cmd_error(args, argidx, "Missing or unsupported mode parameter.\n");
check_error:
if (!verific_error_msg.empty())
}
#else /* YOSYS_ENABLE_VERIFIC */
void execute(std::vector<std::string>, RTLIL::Design *) YS_OVERRIDE {
+ help();
log_cmd_error("This version of Yosys is built without Verific support.\n");
}
#endif
static bool use_verific = verific_available;
if (args.size() < 2 || args[1][0] != '-')
- log_cmd_error("Missing mode parameter.\n");
+ cmd_error(args, 1, "Missing mode parameter.\n");
if (args[1] == "-verific" || args[1] == "-noverific") {
if (args.size() != 2)
- log_cmd_error("Additional arguments to -verific/-noverific.\n");
+ cmd_error(args, 1, "Additional arguments to -verific/-noverific.\n");
if (args[1] == "-verific") {
if (!verific_available)
- log_cmd_error("This version of Yosys is built without Verific support.\n");
+ cmd_error(args, 1, "This version of Yosys is built without Verific support.\n");
use_verific = true;
} else {
use_verific = false;
}
if (args.size() < 3)
- log_cmd_error("Missing file name parameter.\n");
+ cmd_error(args, 3, "Missing file name parameter.\n");
if (args[1] == "-vlog95" || args[1] == "-vlog2k") {
if (use_verific) {
args[0] = "verific";
Pass::call(design, args);
} else {
- log_cmd_error("This version of Yosys is built without Verific support.\n");
+ cmd_error(args, 1, "This version of Yosys is built without Verific support.\n");
}
return;
}
return;
}
- log_cmd_error("Missing or unsupported mode parameter.\n");
+ cmd_error(args, 1, "Missing or unsupported mode parameter.\n");
}
} ReadPass;