aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-connect-indexed
diff options
context:
space:
mode:
authorazidar2015-08-20 15:35:43 -0700
committerazidar2015-08-20 15:35:43 -0700
commit5694a8808bd724b820caca2f5f1176b8c1e3f40d (patch)
tree92817e13e0639c9a4c4b9341c147242e7d3d2040 /test/passes/expand-connect-indexed
parent169164c3ad828ccae89c43d4bdbb531f3a2e6237 (diff)
Added tests, cleaned up repo
Diffstat (limited to 'test/passes/expand-connect-indexed')
-rw-r--r--test/passes/expand-connect-indexed/init-vecs.fir16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/passes/expand-connect-indexed/init-vecs.fir b/test/passes/expand-connect-indexed/init-vecs.fir
new file mode 100644
index 00000000..7d64a117
--- /dev/null
+++ b/test/passes/expand-connect-indexed/init-vecs.fir
@@ -0,0 +1,16 @@
+; 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!
+
+