aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-whens/scoped-reg.fir
blob: 20c9138653c62920746f8f3371f207dda1ca32ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: firrtl -i %s -o %s.flo -x abcdefghijk -p c | tee %s.out | FileCheck %s
; CHECK: Expand Whens
circuit top :
   module A :
      wire p : UInt
      when p :
         reg r : UInt
         on-reset r := UInt(10)
         r := UInt(20)
; CHECK: r := Register(mux-uu(reset, UInt(10), UInt(20)), mux-uu(reset, UInt(1), p))
; CHECK: Finished Expand Whens