Skip to content

Commit

Permalink
support Metrics DSim simulator (#14, rggen/rggen-sample-testbench#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani authored May 15, 2024
1 parent 1377cba commit dcd40f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rggen_backdoor_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcd40f7

Please sign in to comment.