diff --git a/tests/gold/test_compile_guard_basic_vcc.json b/tests/gold/test_compile_guard_basic_vcc.json index 7021b5f16..2caf4f96d 100644 --- a/tests/gold/test_compile_guard_basic_vcc.json +++ b/tests/gold/test_compile_guard_basic_vcc.json @@ -2,7 +2,7 @@ "namespaces":{ "global":{ "modules":{ - "CompileGuardCircuit_0":{ + "COND_compile_guard":{ "type":["Record",[ ["port_0",["Named","coreir.clkIn"]], ["port_1","BitIn"] @@ -52,14 +52,14 @@ ["CLK",["Named","coreir.clkIn"]] ]], "instances":{ - "CompileGuardCircuit_0":{ - "modref":"global.CompileGuardCircuit_0", + "COND_compile_guard":{ + "modref":"global.COND_compile_guard", "metadata":{"compile_guard":{"condition_str":"COND","type":"defined"}} } }, "connections":[ - ["self.CLK","CompileGuardCircuit_0.port_0"], - ["self.I","CompileGuardCircuit_0.port_1"], + ["self.CLK","COND_compile_guard.port_0"], + ["self.I","COND_compile_guard.port_1"], ["self.O","self.I"] ] } diff --git a/tests/test_compile_guard.py b/tests/test_compile_guard.py index 7906d00da..6ef79612f 100644 --- a/tests/test_compile_guard.py +++ b/tests/test_compile_guard.py @@ -215,7 +215,7 @@ def test_vcc(): class _Top(m.Circuit): io = m.IO(I=m.In(m.Bit), O=m.Out(m.Bit)) + m.ClockIO() - with m.compile_guard("COND"): + with m.compile_guard("COND", defn_name="COND_compile_guard"): out = m.Register(m.Bit)()(io.I ^ 1) io.O @= io.I