From f999c10140c45a40cbb82f2fac8f00a94830539f Mon Sep 17 00:00:00 2001 From: alaindargelas Date: Fri, 4 Oct 2024 08:48:27 -0700 Subject: [PATCH] whitebox attr support --- src/frontends/systemverilog/uhdm_ast.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/systemverilog/uhdm_ast.cc b/src/frontends/systemverilog/uhdm_ast.cc index a255e4fce..708395685 100644 --- a/src/frontends/systemverilog/uhdm_ast.cc +++ b/src/frontends/systemverilog/uhdm_ast.cc @@ -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