aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/Outer.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/Outer.fir
parentc140b1ffbcf7fb5b2bb05e93388b2c79f2ddf9f9 (diff)
new chisel3 tests
Diffstat (limited to 'test/chisel3/Outer.fir')
-rw-r--r--test/chisel3/Outer.fir17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/chisel3/Outer.fir b/test/chisel3/Outer.fir
new file mode 100644
index 00000000..e3a67a6e
--- /dev/null
+++ b/test/chisel3/Outer.fir
@@ -0,0 +1,17 @@
+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
+ 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 \ No newline at end of file