aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-accessors/accessor-mem.fir
diff options
context:
space:
mode:
authorazidar2015-05-13 17:08:29 -0700
committerazidar2015-05-13 17:08:29 -0700
commit521a4277bfc1d764dc9ee771c604200525e871cb (patch)
tree53cba82f8e209b3ca98dc367726928e96331fca8 /test/passes/expand-accessors/accessor-mem.fir
parent2cf26ba655e59937f5a52aa50db2d97538d1fdde (diff)
Added source indicators from FIRRTL files. Pass in -p i to get them printed. Should show up with check passes
Diffstat (limited to 'test/passes/expand-accessors/accessor-mem.fir')
-rw-r--r--test/passes/expand-accessors/accessor-mem.fir14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/passes/expand-accessors/accessor-mem.fir b/test/passes/expand-accessors/accessor-mem.fir
index 984b6acd..b87f954f 100644
--- a/test/passes/expand-accessors/accessor-mem.fir
+++ b/test/passes/expand-accessors/accessor-mem.fir
@@ -1,19 +1,19 @@
-; RUN: firrtl -i %s -o %s.flo -x abcdefg -p c | tee %s.out | FileCheck %s
+; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
;CHECK: Expand Accessors
circuit top :
module top :
- mem m : UInt<32>[10][10][10]
- wire i : UInt
+ mem m : UInt<32>[2][2][2]
+ wire i : UInt<4>
accessor a = m[i] ;CHECK: accessor a = m[i]
- accessor b = a[i] ;CHECK: b := (a[0] a[1] a[2] a[3] a[4] a[5] a[6] a[7] a[8] a[9])[i]
- accessor c = b[i] ;CHECK: c := (b[0] b[1] b[2] b[3] b[4] b[5] b[6] b[7] b[8] b[9])[i]
+ accessor b = a[i] ;CHECK: b := (a[0] a[1])[i]
+ accessor c = b[i] ;CHECK: c := (b[0] b[1])[i]
wire j : UInt
j := c
accessor x = m[i] ;CHECK: accessor x = m[i]
- accessor y = x[i] ;CHECK: (x[0] x[1] x[2] x[3] x[4] x[5] x[6] x[7] x[8] x[9])[i] := y
- accessor z = y[i] ;CHECK: (y[0] y[1] y[2] y[3] y[4] y[5] y[6] y[7] y[8] y[9])[i] := z
+ accessor y = x[i] ;CHECK: (x[0] x[1])[i] := y
+ accessor z = y[i] ;CHECK: (y[0] y[1])[i] := z
z := j
; CHECK: Finished Expand Accessors