Fix duplicate scope identifiers decoding (#5584)

Signed-off-by: Bartłomiej Chmiel <[email protected]>
Co-authored-by: Ryszard Rozak <[email protected]>
This commit is contained in:
Bartłomiej Chmiel
2024-11-04 06:06:15 -08:00
committed by GitHub
co-authored by Ryszard Rozak
parent b3348a38d0
commit 4e71f359bf
3 changed files with 15 additions and 12 deletions
+10
View File
@@ -135,6 +135,16 @@ int _mon_check_iter() {
TEST_CHECK_CSTR(p, "<null>"); // Unsupported
}
TestVpiHandle vh_null_name = MY_VPI_HANDLE("___0_");
TEST_CHECK_NZ(vh_null_name);
p = vpi_get_str(vpiName, vh_null_name);
TEST_CHECK_CSTR(p, "___0_");
TestVpiHandle vh_hex_name = MY_VPI_HANDLE("___0F_");
TEST_CHECK_NZ(vh_hex_name);
p = vpi_get_str(vpiName, vh_hex_name);
TEST_CHECK_CSTR(p, "___0F_");
TestVpiHandle vh10 = vpi_iterate(vpiReg, vh2);
TEST_CHECK_NZ(vh10);
TEST_CHECK_EQ(vpi_get(vpiType, vh10), vpiIterator);
+4
View File
@@ -63,6 +63,10 @@ extern "C" int mon_check();
sub \mod.with_dot (.cyc(cyc));
// Check if scope names are not decoded twice
sub ___0F_ (.cyc(cyc));
sub ___0_ (.cyc(cyc));
initial begin
`ifdef VERILATOR