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

;CHECK: Lower To Ground

circuit Top : 
  module Top : 
    input p : UInt<1>
    input q : UInt<1>
    input clk : Clock
    when p :
       stop(clk,0)
    when q :
       stop(clk,1)
    stop(clk,3)

;CHECK: when p : stop(clk, 0)
;CHECK: when q : stop(clk, 1)
;CHECK: stop(clk, 3)   

;CHECK: Done!