Skip to content

Commit

Permalink
[CompileGuard] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsetaluri committed Sep 6, 2023
1 parent d1b53d6 commit bbbf8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/gold/test_compile_guard_basic_vcc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"namespaces":{
"global":{
"modules":{
"CompileGuardCircuit_0":{
"COND_compile_guard":{
"type":["Record",[
["port_0",["Named","coreir.clkIn"]],
["port_1","BitIn"]
Expand Down Expand Up @@ -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"]
]
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_compile_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bbbf8ff

Please sign in to comment.