aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/ModuleVec.fir
diff options
context:
space:
mode:
authorjackbackrack2015-05-20 03:52:53 -0700
committerjackbackrack2015-05-20 03:52:53 -0700
commit994fc58aa9a65eb4a5e287e121ee2e77d91db403 (patch)
tree5a75bfd8f4bd0040e577e20c928d2ee5bc56924b /test/passes/jacktest/ModuleVec.fir
parentf98ef93a1562357412fd1fce4b1f453f8a33572a (diff)
parent92e7da031a14df41ee0cab13a4a63b472fbdb5e1 (diff)
merge
Diffstat (limited to 'test/passes/jacktest/ModuleVec.fir')
-rw-r--r--test/passes/jacktest/ModuleVec.fir28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/passes/jacktest/ModuleVec.fir b/test/passes/jacktest/ModuleVec.fir
new file mode 100644
index 00000000..04c119a1
--- /dev/null
+++ b/test/passes/jacktest/ModuleVec.fir
@@ -0,0 +1,28 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+;CHECK: Done!
+circuit ModuleVec :
+ module PlusOne :
+ input in : UInt<32>
+ output out : UInt<32>
+
+ node T_33 = add-wrap(in, UInt<1>(1))
+ out := T_33
+ module PlusOne_25 :
+ input in : UInt<32>
+ output out : UInt<32>
+
+ node T_34 = add-wrap(in, UInt<1>(1))
+ out := T_34
+ module ModuleVec :
+ input ins : UInt<32>[2]
+ output outs : UInt<32>[2]
+
+ inst T_35 of PlusOne
+ inst T_36 of PlusOne_25
+ wire pluses : {flip in : UInt<32>, out : UInt<32>}[2]
+ pluses[0] := T_35
+ pluses[1] := T_36
+ pluses[0].in := ins[0]
+ outs[0] := pluses[0].out
+ pluses[1].in := ins[1]
+ outs[1] := pluses[1].out