diff options
| author | azidar | 2015-10-27 09:57:03 -0700 |
|---|---|---|
| committer | azidar | 2015-10-27 09:57:03 -0700 |
| commit | 852b241e274edd888499b520d320945794a26e24 (patch) | |
| tree | fc4c4dac344ab3995c685bde10c6255d5ab273cc /test/parser/bundle.fir | |
| parent | 4312fed3f51e1756bbc104639689098de7df0cfe (diff) | |
| parent | f258c8394ebe7136e0eee7e1e342b5b593d1cc5d (diff) | |
Merge branch 'master' of github.com:ucb-bar/firrtl
Conflicts:
Makefile
Diffstat (limited to 'test/parser/bundle.fir')
| -rw-r--r-- | test/parser/bundle.fir | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/parser/bundle.fir b/test/parser/bundle.fir new file mode 100644 index 00000000..c9600d10 --- /dev/null +++ b/test/parser/bundle.fir @@ -0,0 +1,43 @@ +; RUN: firrtl -i %s -o %s.out -X HighFIRRTL && cat %s.out | FileCheck %s +circuit top : + module top : + wire z : { x : UInt, flip y: SInt} + z.x := UInt(1) + z.y := SInt(1) + node x = z.x + node y = z.y + wire a : UInt<3>[10] + a[0] := UInt(1) + a[1] := UInt(1) + a[2] := UInt(1) + a[3] := UInt(1) + a[4] := UInt(1) + a[5] := UInt(1) + a[6] := UInt(1) + a[7] := UInt(1) + a[8] := UInt(1) + a[9] := UInt(1) + node b = a[2] + read accessor c = a[UInt(3)] + +; CHECK: circuit top : +; CHECK: module top : +; CHECK: wire z : { x : UInt, flip y : SInt} +; CHECK: z.x := UInt("h1") +; CHECK: z.y := SInt("h1") +; CHECK: node x = z.x +; CHECK: node y = z.y +; CHECK: wire a : UInt<3>[10] +; CHECK: a[0] := UInt("h1") +; CHECK: a[1] := UInt("h1") +; CHECK: a[2] := UInt("h1") +; CHECK: a[3] := UInt("h1") +; CHECK: a[4] := UInt("h1") +; CHECK: a[5] := UInt("h1") +; CHECK: a[6] := UInt("h1") +; CHECK: a[7] := UInt("h1") +; CHECK: a[8] := UInt("h1") +; CHECK: a[9] := UInt("h1") +; CHECK: node b = a[2] +; CHECK: read accessor c = a[UInt("h3")] + |
