blob: eee62681c769c32b8d69b76ebe13eaff3eafe4c6 (
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.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
;CHECK: Remove Accesses
circuit top :
module top :
input value : UInt<32>
input in : {x : UInt<32>, y : UInt<32>}
wire m :{x : UInt<32>, y : UInt<32>}[2][2]
wire i : UInt
wire j : UInt
m[0][0] <= in
m[1][0] <= in
m[0][1] <= in
m[1][1] <= in
i <= UInt("h1")
j <= UInt("h1")
m[i][j].x <= value
;CHECK: Done!
|