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

; CHECK: Inline Indexers
circuit top :
   module top :
      wire outs : UInt<32>[2][1]
      outs[0][0] <= UInt(1)
      outs[0][1] <= UInt(1)

      write accessor out = outs[UInt(0)]
      out[0] <= UInt(1)

; CHECK: Done!