diff options
| author | azidar | 2015-12-10 19:32:43 -0800 |
|---|---|---|
| committer | azidar | 2016-01-16 14:28:17 -0800 |
| commit | 5dfed8b731764834e4d16197d4f8c31f16daff75 (patch) | |
| tree | ad407f410e590700e4bf38312cf2acbd0d59f9ed /test/features/NestedAccess.fir | |
| parent | 0246ab2479724fb0118bb7a25577c71e2a038223 (diff) | |
Finished supporting nested accesses. Required some nuianced thinking. Pass all feature tests. Deleted CondRead because it tested a problem we don't have any more
Diffstat (limited to 'test/features/NestedAccess.fir')
| -rw-r--r-- | test/features/NestedAccess.fir | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/features/NestedAccess.fir b/test/features/NestedAccess.fir new file mode 100644 index 00000000..bd3c436d --- /dev/null +++ b/test/features/NestedAccess.fir @@ -0,0 +1,31 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p cw 2>&1 | tee %s.out | FileCheck %s +;CHECK: Expand Connects +circuit Top : + module Top : + input i : UInt<1> + input j : UInt<1> + wire a : { x : UInt<42> flip y : UInt<42>[2]}[2][3] + wire b : { x : UInt<42> flip y : UInt<42>[2]} + a[0][0].x <= UInt(0) + a[0][0].y[0] <= UInt(0) + a[0][0].y[1] <= UInt(0) + a[0][1].x <= UInt(0) + a[0][1].y[0] <= UInt(0) + a[0][1].y[1] <= UInt(0) + a[1][0].x <= UInt(0) + a[1][0].y[0] <= UInt(0) + a[1][0].y[1] <= UInt(0) + a[1][1].x <= UInt(0) + a[1][1].y[0] <= UInt(0) + a[1][1].y[1] <= UInt(0) + a[2][0].x <= UInt(0) + a[2][0].y[0] <= UInt(0) + a[2][0].y[1] <= UInt(0) + a[2][1].x <= UInt(0) + a[2][1].y[0] <= UInt(0) + a[2][1].y[1] <= UInt(0) + b.x <= UInt(0) + a[i][j] <= b +;CHECK: Finished Expand Connects +;CHECK: Done! + |
