Skip to content

Commit

Permalink
whitebox attr support
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindargelas committed Oct 4, 2024
1 parent 5892012 commit f999c10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frontends/systemverilog/uhdm_ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2407,6 +2407,8 @@ void UhdmAst::process_module()
std::string name = vpi_get_str(vpiName, h);
if (name == "blackbox")
current_node->attributes[ID::blackbox] = AST::AstNode::mkconst_int(1, false, 32);
else if (name == "whitebox")
current_node->attributes[ID::whitebox] = AST::AstNode::mkconst_int(1, false, 32);
});

// Primitives will have the same names (like "and"), so we need to make sure we don't replace them
Expand Down

0 comments on commit f999c10

Please sign in to comment.