Skip to content

Commit b02792d

Browse files
authored
Merge pull request #260 from thirtythreeforty/sva-error
Emit error when encountering assert/assume properties
2 parents 7ac20f1 + cb5d661 commit b02792d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

uhdm-plugin/UhdmAst.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ void UhdmAst::process_module()
14901490
}
14911491
});
14921492
visit_one_to_many({vpiModule, vpiInterface, vpiTaskFunc, vpiParameter, vpiParamAssign, vpiPort, vpiNet, vpiArrayNet, vpiGenScopeArray,
1493-
vpiContAssign, vpiProcess, vpiClockingBlock},
1493+
vpiContAssign, vpiProcess, vpiClockingBlock, vpiAssertion},
14941494
obj_h, [&](AST::AstNode *node) {
14951495
if (node) {
14961496
if (node->type == AST::AST_ASSIGN && node->children.size() < 2)
@@ -3897,6 +3897,10 @@ AST::AstNode *UhdmAst::process_object(vpiHandle obj_handle)
38973897
if (!shared.no_assert)
38983898
process_immediate_assert();
38993899
break;
3900+
case vpiAssert:
3901+
if (!shared.no_assert)
3902+
process_unsupported_stmt(object);
3903+
break;
39003904
case vpiHierPath:
39013905
process_hier_path();
39023906
break;
@@ -3935,6 +3939,9 @@ AST::AstNode *UhdmAst::process_object(vpiHandle obj_handle)
39353939
case vpiImmediateAssume:
39363940
process_immediate_assume();
39373941
break;
3942+
case vpiAssume:
3943+
process_unsupported_stmt(object);
3944+
break;
39383945
case vpiWhile:
39393946
process_while();
39403947
break;

0 commit comments

Comments
 (0)