blob: 8185dade92f8337613d25b9f66240e8843f66ce9 (
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
|
; RUN: firrtl -i %s -o %s.flo -x abcdefghijk -p c | tee %s.out | FileCheck %s
; CHECK: Expand Whens
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
wire w : 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 := Register(mux-uu(reset, mux-uu(q, y, mux-uu(p, x, w)), z), UInt(1))
; CHECK: Finished Expand Whens
|