aboutsummaryrefslogtreecommitdiff
path: root/test/passes/remove-accesses/simple3.fir
blob: 6305e0c91720ef41c94bdb0c366b99db722a06b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s

;CHECK: Remove Accesses
circuit top :
   module top :
      input in : UInt<32>
      input i : UInt<1>
      wire m : UInt<32>[2]
      m[0] <= UInt("h1")
      m[1] <= UInt("h1")
      wire a : UInt<32>
      m[i] <= a
      a <= in

;CHECK: wire GEN_0 : UInt<32>
;CHECK: when eq(UInt("h0"), i) : m[0] <= GEN_0
;CHECK: when eq(UInt("h1"), i) : m[1] <= GEN_0
;CHECK: GEN_0 <= a

;CHECK: Finished Remove Accesses



;CHECK: Done!