From 6d12c83d362c709f72e64eea2121b2cffc12ee8d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 21 Feb 2018 13:09:47 +0100 Subject: Add support for SVA throughout via Verific --- frontends/verific/verificsva.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'frontends/verific') diff --git a/frontends/verific/verificsva.cc b/frontends/verific/verificsva.cc index c32095927..c3b2a2f5e 100644 --- a/frontends/verific/verificsva.cc +++ b/frontends/verific/verificsva.cc @@ -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) -- cgit v1.2.3