aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/ComplexAssign.fir
diff options
context:
space:
mode:
authorazidar2015-05-26 17:33:40 -0700
committerazidar2015-05-26 17:33:40 -0700
commitcf80ff9c83c2fedd42ec186a3e342520c89f91ab (patch)
treeebbf3455b91e8840d49057754585d567dacea384 /test/chisel3/ComplexAssign.fir
parenteb125225cb96875f31a9af0db187406782b75223 (diff)
Added <>. Added additional checks for primops. Added new chisel3 files.
Diffstat (limited to 'test/chisel3/ComplexAssign.fir')
-rw-r--r--test/chisel3/ComplexAssign.fir16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/chisel3/ComplexAssign.fir b/test/chisel3/ComplexAssign.fir
new file mode 100644
index 00000000..c1dc41cd
--- /dev/null
+++ b/test/chisel3/ComplexAssign.fir
@@ -0,0 +1,16 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+;CHECK: Done!
+
+circuit ComplexAssign :
+ module ComplexAssign :
+ input in : {re : UInt<10>, im : UInt<10>}
+ output out : {re : UInt<10>, im : UInt<10>}
+ input e : UInt<1>
+ when e :
+ wire T_18 : {re : UInt<10>, im : UInt<10>}
+ T_18 := in
+ out.re := T_18.re
+ out.im := T_18.im
+ else :
+ out.re := UInt<1>(0)
+ out.im := UInt<1>(0)