aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-connect-indexed
diff options
context:
space:
mode:
authorazidar2015-09-29 15:49:52 -0700
committerazidar2015-09-29 15:49:52 -0700
commit2a9bd217e6d8e519bc78f66e44502d77fa9cdc1d (patch)
tree8c74300cbf7eaf289fc0121c1fdd3efb0b378b07 /test/passes/expand-connect-indexed
parentd380b8cfd11d2fe1231774f7b9492aff959bb279 (diff)
Added DecToIndexer/DecFromIndexer. Fixed most use cases of incorrect catching of initialization of accessors. Missing use case of accessing an accessor. Still need to update tests to pass
Diffstat (limited to 'test/passes/expand-connect-indexed')
-rw-r--r--test/passes/expand-connect-indexed/bundle-vecs.fir35
-rw-r--r--test/passes/expand-connect-indexed/init-vecs.fir16
2 files changed, 0 insertions, 51 deletions
diff --git a/test/passes/expand-connect-indexed/bundle-vecs.fir b/test/passes/expand-connect-indexed/bundle-vecs.fir
deleted file mode 100644
index c41794e3..00000000
--- a/test/passes/expand-connect-indexed/bundle-vecs.fir
+++ /dev/null
@@ -1,35 +0,0 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
-
-; CHECK: Expand Indexed Connects
-circuit top :
- module top :
- wire i : UInt
- i := UInt(1)
- wire j : UInt
- j := UInt(1)
-
- wire a : { x : UInt<32>, flip y : UInt<32> }[2]
- a[0].x := UInt(1)
- a[0].y := UInt(1)
- a[1].x := UInt(1)
- a[1].y := UInt(1)
- ; CHECK: wire a{{[_$]+}}0{{[_$]+}}x : UInt<32>
- ; CHECK: wire a{{[_$]+}}0{{[_$]+}}y : UInt<32>
- ; CHECK: wire a{{[_$]+}}1{{[_$]+}}x : UInt<32>
- ; CHECK: wire a{{[_$]+}}1{{[_$]+}}y : UInt<32>
-
-
- infer accessor b = a[i]
- ; CHECK: wire b{{[_$]+}}x : UInt<32>
- ; CHECK: wire b{{[_$]+}}y : UInt<32>
- ; CHECK: b{{[_$]+}}x := a{{[_$]+}}0{{[_$]+}}x
- ; CHECK: node i_1 = i
- ; CHECK: when eqv(i_1, UInt("h1")) : b{{[_$]+}}x := a{{[_$]+}}1{{[_$]+}}x
- ; CHECK: node i_2 = i
- ; CHECK: when eqv(i_2, UInt("h0")) : a{{[_$]+}}0{{[_$]+}}y := b{{[_$]+}}y
- ; CHECK: when eqv(i_2, UInt("h1")) : a{{[_$]+}}1{{[_$]+}}y := b{{[_$]+}}y
- j := b.x
- b.y := UInt(1)
-
-; CHECK: Finished Expand Indexed Connects
-
diff --git a/test/passes/expand-connect-indexed/init-vecs.fir b/test/passes/expand-connect-indexed/init-vecs.fir
deleted file mode 100644
index 7d64a117..00000000
--- a/test/passes/expand-connect-indexed/init-vecs.fir
+++ /dev/null
@@ -1,16 +0,0 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
-; XFAIL: *
-
-; CHECK: Expand Indexed Connects
-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!
-
-