aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/ComplexAssign.fir
blob: 14cb063c53c8a0e8f125a829d1777e2af6b01c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
;RUN: firrtl %s abcefghipjklmno c | tee %s.out | FileCheck %s
;CHECK: To Flo
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_19 : {re : UInt(10), im : UInt(10)}
      T_19 := in
      out.re := T_19.re
      out.im := T_19.im
     else : 
      node T_20 = UInt(0, 1)
      out.re := T_20
      node T_21 = UInt(0, 1)
      out.im := T_21
;CHECK: Finished To Flo