mirror of https://github.com/YosysHQ/yosys.git
Better error for unsupported SVA sequence
This commit is contained in:
parent
7affef7c17
commit
44705102b5
|
@ -1040,8 +1040,14 @@ struct VerificSvaImporter
|
||||||
|
|
||||||
[[noreturn]] void parser_error(Instance *inst)
|
[[noreturn]] void parser_error(Instance *inst)
|
||||||
{
|
{
|
||||||
parser_error(stringf("Verific SVA primitive %s (%s) is currently unsupported in this context",
|
std::string msg;
|
||||||
inst->View()->Owner()->Name(), inst->Name()), inst->Linefile());
|
if (inst->Type() == PRIM_SVA_MATCH_ITEM_TRIGGER || inst->Type() == PRIM_SVA_MATCH_ITEM_ASSIGN)
|
||||||
|
{
|
||||||
|
msg = "SVA sequences with local variable assignments are currently not supported.\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
parser_error(stringf("%sVerific SVA primitive %s (%s) is currently unsupported in this context",
|
||||||
|
msg.c_str(), inst->View()->Owner()->Name(), inst->Name()), inst->Linefile());
|
||||||
}
|
}
|
||||||
|
|
||||||
dict<Net*, bool, hash_ptr_ops> check_expression_cache;
|
dict<Net*, bool, hash_ptr_ops> check_expression_cache;
|
||||||
|
|
Loading…
Reference in New Issue