aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/ModuleVec.fir
diff options
context:
space:
mode:
authorjackbackrack2015-04-13 18:24:37 -0700
committerjackbackrack2015-04-13 18:24:37 -0700
commite6beb7b3bbb745a7c7fde616bb349df1bdb7b764 (patch)
tree392bc8ed6dc497aaa98329133bd135d729426e3d /test/chisel3/ModuleVec.fir
parentc140b1ffbcf7fb5b2bb05e93388b2c79f2ddf9f9 (diff)
new chisel3 tests
Diffstat (limited to 'test/chisel3/ModuleVec.fir')
-rw-r--r--test/chisel3/ModuleVec.fir25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/chisel3/ModuleVec.fir b/test/chisel3/ModuleVec.fir
new file mode 100644
index 00000000..1372d1f6
--- /dev/null
+++ b/test/chisel3/ModuleVec.fir
@@ -0,0 +1,25 @@
+circuit ModuleVec :
+ module PlusOne :
+ input in : UInt(32)
+ output out : UInt(32)
+
+ node T_34 : UInt(1) = UInt(1, 1)
+ node T_35 : UInt(32) = add(in, T_34)
+ out := T_35
+ module PlusOne_26 :
+ input in : UInt(32)
+ output out : UInt(32)
+
+ node T_36 : UInt(1) = UInt(1, 1)
+ node T_37 : UInt(32) = add(in, T_36)
+ out := T_37
+ module ModuleVec :
+ input ins : UInt(32)[2]
+ output outs : UInt(32)[2]
+
+ instance T_38 of PlusOne
+ instance T_39 of PlusOne_26
+ pluses.0.in := ins.0
+ outs.0 := pluses.0.out
+ pluses.1.in := ins.1
+ outs.1 := pluses.1.out \ No newline at end of file