aboutsummaryrefslogtreecommitdiff
path: root/test/passes/initialize-regs/bundle-init.fir
blob: 7e9af8dfcb5b74808cce7bd9fd8559ebd90dd3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: firrtl -i %s -o %s.flo -x abcdefghij -p c | tee %s.out | FileCheck %s
; CHECK: Done!
circuit top :
   module A :
      reg r : { x : UInt, flip y : UInt}
      wire a : UInt
      wire b : UInt
      wire w : { x : UInt, flip y : UInt}

      r.x := a
      r.y := b
      on-reset r := w
      
; CHECK: reg r : { x, flip y}
; CHECK: r.x := a
; CHECK: r.y := b
; CHECK: when reset :
; CHECK:    r.x := w.x
; CHECK:    w.y := r.y