aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/Outer.fir
diff options
context:
space:
mode:
authorjackbackrack2015-04-20 15:21:30 -0700
committerjackbackrack2015-04-20 15:21:30 -0700
commit6204b6d44aef2f47a8009ad06dfd4e09ce7ce950 (patch)
tree8795de870f20086b0615f7c402c234b79e6a71a0 /test/chisel3/Outer.fir
parent5298af3dffcd0985922a2a8317fa6a67e192a9c0 (diff)
parent7617e33993abf9f6be357e0261755a4736c2e085 (diff)
merge
Diffstat (limited to 'test/chisel3/Outer.fir')
-rw-r--r--test/chisel3/Outer.fir18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/chisel3/Outer.fir b/test/chisel3/Outer.fir
index 0b808cb5..227c5dae 100644
--- a/test/chisel3/Outer.fir
+++ b/test/chisel3/Outer.fir
@@ -1,17 +1,19 @@
+; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
+; CHECK: Done!
circuit Outer :
module Inner :
input in : UInt(8)
output out : UInt(8)
- node T_15 : UInt(1) = UInt(1, 1)
- node T_16 : UInt(8) = add(in, T_15)
- out := T_16
+ node T_14 = UInt(1, 1)
+ node T_15 = add(in, T_14)
+ out := T_15
module Outer :
input in : UInt(8)
output out : UInt(8)
- instance T_17 of Inner
- T_17.in := in
- node T_18 : UInt(2) = UInt(2, 2)
- node T_19 : UInt(8) = times(T_17.out, T_18)
- out := T_19
+ inst T_16 of Inner
+ T_16.in := in
+ node T_17 = UInt(2, 2)
+ node T_18 = mul(T_16.out, T_17)
+ out := T_18