aboutsummaryrefslogtreecommitdiff
path: root/test/features/OptionalRegisterReset.fir
blob: 54a90b67fb60c2e545d14f01090ae19adbfc53b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
circuit Top : 
  module Top : 
    input clk : Clock
    input reset : UInt<1>
    input a : UInt<32>
    input p : UInt<1>
    output b : UInt<32>
    reg r1:UInt<32> clk with : 
      reset => (reset, a)
    when p :
      b <= r1
    else :
      b <= r1


;CHECK: Done!