aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/Outer.fir
diff options
context:
space:
mode:
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