aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-whens/partial-init.fir
blob: f752eccd97949992149d73e6e127ff5a82ea0728 (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 flo -p c | tee %s.out | FileCheck %s

; CHECK: Expand Whens
circuit top :
   module top :
      input clk : Clock
      input reset : UInt<1>
      reg r : UInt<1>[10],clk,reset
      r[0] := UInt(1)
      r[1] := UInt(1)
      r[2] := UInt(1)
      r[3] := UInt(1)
      r[4] := UInt(1)
      r[5] := UInt(1)
      r[6] := UInt(1)
      r[7] := UInt(1)
      r[8] := UInt(1)
      r[9] := UInt(1)
      onreset r[3] := UInt(0)

; CHECK: Finished Expand Whens