Skip to content

Commit

Permalink
systemverilog: add dedicated wildcard operator errors
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
  • Loading branch information
tgorochowik committed Apr 22, 2022
1 parent 55c26d7 commit 8683b30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions systemverilog-plugin/UhdmAst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,13 @@ void UhdmAst::process_operation()
case vpiAssignmentPatternOp:
process_assignment_pattern_op();
break;
case vpiWildEqOp:
case vpiWildNeqOp: {
const uhdm_handle *const handle = (const uhdm_handle *)obj_h;
const UHDM::BaseClass *const object = (const UHDM::BaseClass *)handle->object;
report_error("%s:%d: Wildcard operators are not supported yet\n", object->VpiFile().c_str(), object->VpiLineNo());
break;
}
default: {
current_node = make_ast_node(AST::AST_NONE);
visit_one_to_many({vpiOperand}, obj_h, [&](AST::AstNode *node) {
Expand Down

0 comments on commit 8683b30

Please sign in to comment.