Skip to content

Commit

Permalink
Add missing gold file
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Aug 27, 2018
1 parent f88e872 commit 2abe819
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/test_circuit/gold/test_simple_def_class.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{"top":"global.Main",
"namespaces":{
"global":{
"modules":{
"And2":{
"type":["Record",[
["I0","BitIn"],
["I1","BitIn"],
["O","Bit"]
]]
},
"main":{
"type":["Record",[
["I",["Array",2,"BitIn"]],
["O","Bit"]
]],
"instances":{
"inst0":{
"modref":"global.And2",
"metadata":{"filename":"tests/test_circuit/test_define.py","lineno":"16"}
}
},
"connections":[
["self.I.0","inst0.I0"],
["self.I.1","inst0.I1"],
["self.O","inst0.O"]
]
}
}
}
}
}
12 changes: 12 additions & 0 deletions tests/test_circuit/gold/test_simple_def_class.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Defined at tests/test_circuit/test_define.py:29
module Main (input [1:0] I, output O);
wire inst0_O;
// Instanced at tests/test_circuit/test_define.py:34
// Argument I0(I[0]) wired at tests/test_circuit/test_define.py:35
// Argument I1(I[1]) wired at tests/test_circuit/test_define.py:36
// Argument O(inst0_O) wired at tests/test_circuit/test_define.py:37
And2 inst0 (.I0(I[0]), .I1(I[1]), .O(inst0_O));
// Wired at tests/test_circuit/test_define.py:37
assign O = inst0_O;
endmodule

0 comments on commit 2abe819

Please sign in to comment.