From bb5f68948c6d75d1f02c614f3e0ae4ef9bc6e689 Mon Sep 17 00:00:00 2001 From: azidar Date: Tue, 9 Feb 2016 14:48:12 -0800 Subject: Added remaining check passes. Ready for open sourcing --- test/features/Stop.fir | 4 ++-- test/parser/dshl.fir | 14 ++++++++++++++ test/parser/mux.fir | 14 ++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 test/parser/dshl.fir create mode 100644 test/parser/mux.fir (limited to 'test') diff --git a/test/features/Stop.fir b/test/features/Stop.fir index bef64f0f..888da3d7 100644 --- a/test/features/Stop.fir +++ b/test/features/Stop.fir @@ -13,8 +13,8 @@ circuit Top : stop(clk,UInt(1),1) stop(clk,UInt(1),3) -;CHECK: stop(clk, and(p, UInt<1>("h1")), 0) -;CHECK: stop(clk, and(q, UInt<1>("h1")), 1) +;CHECK: stop(clk, p, 0) +;CHECK: stop(clk, q, 1) ;CHECK: stop(clk, UInt<1>("h1"), 3) ;CHECK: Done! diff --git a/test/parser/dshl.fir b/test/parser/dshl.fir new file mode 100644 index 00000000..99a6ec7d --- /dev/null +++ b/test/parser/dshl.fir @@ -0,0 +1,14 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s +circuit GCD : + module GCD : + input a : UInt<63> + input b : UInt<63> + input sign : UInt<1> + output d : UInt + ;wire T_205 : UInt + node T_203 = UInt<6>("h3f") + node normCount = not(T_203) + node absIn = mux(sign, a, b) + node T_205 = dshl(absIn, normCount) + d <= T_205 + diff --git a/test/parser/mux.fir b/test/parser/mux.fir new file mode 100644 index 00000000..4705aa75 --- /dev/null +++ b/test/parser/mux.fir @@ -0,0 +1,14 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s +circuit GCD : + module GCD : + input e : UInt<1> + input f : UInt<1> + input g : UInt<1> + output o : UInt<1> + node y = f + node z = f + node x = mux(UInt<1>(0),y,z) + o <= x + + + -- cgit v1.2.3