blob: 68409931530d24c15b9f2dd0a330769dc29d790d (
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
27
28
29
30
31
32
33
|
; 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 clk : Clock
input reset : UInt<1>
wire p : UInt
wire q : UInt
wire a : UInt
wire b : UInt
wire x : UInt
wire y : UInt
wire z : UInt
wire w : UInt
reg r : UInt, clk with :
reset => (reset, w)
p <= UInt(1)
q <= UInt(1)
a <= UInt(1)
b <= UInt(1)
x <= UInt(1)
y <= UInt(1)
z <= UInt(1)
w <= UInt(1)
when p :
r <= a
when q :
r <= b
r <= z
; CHECK: r <= z
; CHECK: Finished Expand Whens
; CHECK: Done!
|