From 00a40f89956df39c9169021762353d130aaa0292 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 29 Jan 2016 00:46:29 -0800 Subject: Update parser tests to match 0.2.0 spec, Scala FIRRTL passes these tests --- test/parser/bundle.fir | 53 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'test/parser/bundle.fir') diff --git a/test/parser/bundle.fir b/test/parser/bundle.fir index e0db4a7f..dae02d2a 100644 --- a/test/parser/bundle.fir +++ b/test/parser/bundle.fir @@ -1,43 +1,44 @@ ; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s + circuit top : module top : wire z : { x : UInt, flip y: SInt} - z.x := UInt(1) - z.y := SInt(1) + 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) + 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)] + node 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: 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: 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")] +; CHECK: node c = a[UInt("h3")] -- cgit v1.2.3