Fix handling of "restrict" in Verific front-end
authorClifford Wolf <clifford@clifford.at>
Mon, 21 Oct 2019 10:39:28 +0000 (12:39 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 21 Oct 2019 10:39:28 +0000 (12:39 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/verific/verific.cc

index c5eef4b559c33317d905d77c25da11f722d273b5..9f9eeb764c2fc6574fbb7ace54aa06bac4c748fd 100644 (file)
@@ -1256,7 +1256,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se
                if (inst->Type() == PRIM_SVA_ASSERT || inst->Type() == PRIM_SVA_IMMEDIATE_ASSERT)
                        sva_asserts.insert(inst);
 
-               if (inst->Type() == PRIM_SVA_ASSUME || inst->Type() == PRIM_SVA_IMMEDIATE_ASSUME)
+               if (inst->Type() == PRIM_SVA_ASSUME || inst->Type() == PRIM_SVA_IMMEDIATE_ASSUME || inst->Type() == PRIM_SVA_RESTRICT)
                        sva_assumes.insert(inst);
 
                if (inst->Type() == PRIM_SVA_COVER || inst->Type() == PRIM_SVA_IMMEDIATE_COVER)