mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 10:03:36 +02:00
Add support for SVA throughout via Verific
This commit is contained in:
@@ -433,10 +433,14 @@ struct VerificSvaImporter
|
||||
return;
|
||||
}
|
||||
|
||||
if (inst->Type() == PRIM_SVA_UNTIL || inst->Type() == PRIM_SVA_S_UNTIL ||
|
||||
if (inst->Type() == PRIM_SVA_THROUGHOUT || inst->Type() == PRIM_SVA_UNTIL || inst->Type() == PRIM_SVA_S_UNTIL ||
|
||||
inst->Type() == PRIM_SVA_UNTIL_WITH || inst->Type() == PRIM_SVA_S_UNTIL_WITH)
|
||||
{
|
||||
bool flag_with = inst->Type() == PRIM_SVA_UNTIL_WITH || inst->Type() == PRIM_SVA_S_UNTIL_WITH;
|
||||
bool flag_with = inst->Type() == PRIM_SVA_THROUGHOUT || inst->Type() == PRIM_SVA_UNTIL_WITH || inst->Type() == PRIM_SVA_S_UNTIL_WITH;
|
||||
|
||||
if (get_ast_input1(inst) != nullptr)
|
||||
log_error("Currently only simple expression properties are supported as first operand to SVA_UNTIL.\n");
|
||||
|
||||
SigBit expr = importer->net_map_at(inst->GetInput1());
|
||||
|
||||
if (flag_with)
|
||||
|
||||
@@ -5,7 +5,7 @@ module top (
|
||||
default clocking @(posedge clk); endclocking
|
||||
|
||||
assert property (
|
||||
a |=> b until_with (c ##1 d)
|
||||
a |=> b throughout (c ##1 d)
|
||||
);
|
||||
|
||||
`ifndef FAIL
|
||||
Reference in New Issue
Block a user