aboutsummaryrefslogtreecommitdiff
path: root/test/features/Stop.fir
blob: bef64f0fab911ab57bbca1c2fa2d9d810b49d7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s

;CHECK: Expand Whens

circuit Top : 
  module Top : 
    input p : UInt<1>
    input q : UInt<1>
    input clk : Clock
    when p :
       stop(clk,UInt(1),0)
    when q :
       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, UInt<1>("h1"), 3)   
;CHECK: Done!