From 666a193706308a6fbd6c8b4bd06cbc69ae4200a6 Mon Sep 17 00:00:00 2001 From: azidar Date: Mon, 8 Feb 2016 14:36:08 -0800 Subject: Bug fixes, close to getting correct rocket-firrtl.fir through --- test/parser/node.fir | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/parser/node.fir (limited to 'test/parser/node.fir') diff --git a/test/parser/node.fir b/test/parser/node.fir new file mode 100644 index 00000000..193aed88 --- /dev/null +++ b/test/parser/node.fir @@ -0,0 +1,16 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s +; CHECK: Done! +circuit GCD : + module GCD : + input x : UInt<128> + input p : UInt<1> + input q : UInt<1> + input clk : Clock + reg addr : UInt, clk with : + reset => (UInt<1>("h0"), addr) + when p : + node T_1234 = bits(x, 63, 24) + addr <= T_1234 + when q : + node T_1380 = tail(x, 1) + addr <= T_1380 -- cgit v1.2.3