From 5901c57caab635c0d5c1a7ac6502ea7872f44001 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 24 Feb 2016 20:36:47 -0800 Subject: Fixed printf bugs in scala and stanza versions. Required special casing prints in SplitExp, and emitting expressions instead of their toString counterparts --- test/passes/split-exp/print-args.fir | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/passes/split-exp/print-args.fir (limited to 'test/passes/split-exp') diff --git a/test/passes/split-exp/print-args.fir b/test/passes/split-exp/print-args.fir new file mode 100644 index 00000000..df21949d --- /dev/null +++ b/test/passes/split-exp/print-args.fir @@ -0,0 +1,14 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s + +; CHECK: Split Expressions +; CHECK: node GEN_0 = and(a, b) +; CHECK: printf(clk, UInt<1>("h1"), "%d\n", GEN_0) + +circuit Bug : + module Bug : + input clk : Clock + input a : UInt<1> + input b : UInt<1> + + printf(clk, UInt<1>(1), "%d\n", and(a, b)) + -- cgit v1.2.3