blob: 2fb54717e71ab3b65e5b1753f716c39648017326 (
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
34
|
; 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>
poison x : UInt<1>
wire init : UInt<1>[10]
init[0] <= x
init[1] <= x
init[2] <= x
init[3] <= UInt(3)
init[4] <= x
init[5] <= x
init[6] <= x
init[7] <= x
init[8] <= x
init[9] <= x
reg r : UInt<1>[10],clk with :
reset => (reset,init)
r[0] <= UInt(1)
r[1] <= UInt(1)
r[2] <= UInt(1)
r[3] <= UInt(1)
r[4] <= UInt(1)
r[5] <= UInt(1)
r[6] <= UInt(1)
r[7] <= UInt(1)
r[8] <= UInt(1)
r[9] <= UInt(1)
; CHECK: Finished Expand Whens
; CHECK: Done!
|