From d9f33f58c94382dfbd22e87e2f85600b9807328f Mon Sep 17 00:00:00 2001 From: azidar Date: Fri, 11 Dec 2015 12:24:46 -0800 Subject: WIP getting through tests --- test/passes/infer-types/bundle.fir | 23 +++++++++++++---------- test/passes/infer-types/gcd.fir | 11 ++++------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'test/passes') diff --git a/test/passes/infer-types/bundle.fir b/test/passes/infer-types/bundle.fir index 400aecde..12cc58b1 100644 --- a/test/passes/infer-types/bundle.fir +++ b/test/passes/infer-types/bundle.fir @@ -1,14 +1,13 @@ ; RUN: firrtl -i %s -o %s.v -X verilog -p ct 2>&1 | tee %s.out | FileCheck %s -;CHECK: Infer Types circuit top : module top : wire z : { x : UInt, flip y: SInt} z.x <= UInt(1) z.y <= SInt(1) - node x = z.x ;CHECK: node x = z@.x@ - node y = z.y ;CHECK: node y = z@.y@ - wire a : UInt<3>[10] ;CHECK: wire a : UInt<3>[10]@@[10]@> + 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) @@ -19,11 +18,15 @@ circuit top : a[7] <= UInt(1) a[8] <= UInt(1) a[9] <= UInt(1) - node b = a[2] ;CHECK: node b = a@[10]@>[2]@ - read accessor c = a[UInt(3)] ;CHECK: read accessor c = a@[10]@>[UInt("h3")@] -; CHECK: Finished Infer Types + node b = a[2] + node c = a[UInt(3)] + +;CHECK: Infer Types +;CHECK: node x = z@.x@ +;CHECK: node y = z@.y@ +;CHECK: wire a : UInt<3>[10]@@> +;CHECK: node b = a@>[2]@ +;CHECK: node c = a@>[UInt("h3")@] +;CHECK: Finished Infer Types -; CHECK: Resolve Genders -; CHECK: read accessor c = a@[10]@>[UInt("h3")@] -; CHECK: Finished Resolve Genders diff --git a/test/passes/infer-types/gcd.fir b/test/passes/infer-types/gcd.fir index 68ec4174..938cb345 100644 --- a/test/passes/infer-types/gcd.fir +++ b/test/passes/infer-types/gcd.fir @@ -15,16 +15,13 @@ circuit top : input clk : Clock input reset : UInt<1> output z : UInt<16> - output v : UInt<1> - reg x : UInt,clk,reset - reg y : UInt,clk,reset -; CHECK: reg x : UInt, clk@, reset@@ - onreset x <= UInt(0) - onreset y <= UInt(42) + reg x : UInt,clk,reset,UInt(0) + reg y : UInt,clk,reset,UInt(42) + ; CHECK: reg x : UInt, clk@, reset@, UInt("h0")@@ when gt(x, y) : ;CHECK: when gt(x@, y@)@ : inst s of subtracter - ;CHECK: inst s of subtracter@ + ;CHECK: inst s of subtracter : {flip x : UInt, flip y : UInt, z : UInt} s.x <= x s.y <= y x <= s.z -- cgit v1.2.3