From dcd40f7de09820427bd3a6f6fb512d27d237a369 Mon Sep 17 00:00:00 2001 From: Taichi Ishitani Date: Wed, 15 May 2024 21:19:26 +0900 Subject: [PATCH] support Metrics DSim simulator (#14, rggen/rggen-sample-testbench#11) (refs: https://github.com/rggen/rggen-sample-testbench/issues/11#issuecomment-2111575301) --- rggen_backdoor_pkg.sv | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rggen_backdoor_pkg.sv b/rggen_backdoor_pkg.sv index dce0576..feca6a5 100644 --- a/rggen_backdoor_pkg.sv +++ b/rggen_backdoor_pkg.sv @@ -41,7 +41,13 @@ package rggen_backdoor_pkg; protected function string normalize_hdl_path(string path); string normalized_path; for (int i = 0;i < path.len();++i) begin - if ((path[i] != "\\") && (path[i] != " ")) begin + if (path[i] == "(") begin + normalized_path = {normalized_path, "["}; + end + else if (path[i] == ")") begin + normalized_path = {normalized_path, "]"}; + end + else if ((path[i] != "\\") && (path[i] != " ")) begin normalized_path = {normalized_path, path[i]}; end end