blob: 28cbc53dc6c0e03f82704f7011bc90bf59a1cfbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
; RUN: firrtl -i %s -o %s.flo -x abcdefghij -p c | tee %s.out | FileCheck %s
; CHECK: Done!
circuit top :
module A :
wire p : UInt
wire q : UInt
reg r : UInt
wire a : UInt
wire b : UInt
wire x : UInt
wire y : UInt
wire z : UInt
on-reset r := w
when p
on-reset r := x
r := a
when q
on-reset r := y
r := b
r := z
; CHECK: r := z
; CHECK: when reset
; CHECK: r := q?b:(p?a:w)
|