aboutsummaryrefslogtreecommitdiff
path: root/test/features/InitAccessor.fir
blob: 5a81a62ee94b134e19314cae8f2eb68f2f22b077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s

;CHECK: Done!
circuit Top : 
   module Top :
      input in : UInt<1>
      wire b : UInt<1>[3]
      b[0] <= UInt(1)
      b[1] <= UInt(1)
      b[2] <= UInt(1)
      node c = UInt(1)
      when in : 
         b[c] <= UInt(1)