aboutsummaryrefslogtreecommitdiff
path: root/test/passes/split-exp/print-args.fir
blob: df21949dba34ae4738eaa8196b7edf1fdcb644a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))