blob: dc3007f935afac1b907c2880f9cc19d564dfdb94 (
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
|
; RUN: firrtl -i %s -o %s.v -X verilog -p cTwd 2>&1 | tee %s.out | FileCheck %s
;CHECK: Infer Widths
circuit top :
module top :
input clk : Clock
input reset : UInt<1>
wire e : UInt<30>
e <= UInt(1)
reg y : UInt,clk,reset,y
y <= e
wire a : UInt<20>
a <= UInt(1)
wire b : UInt<10>
b <= UInt(1)
wire c : UInt
c <= UInt(1)
wire z : UInt
z <= mux(c,a,b)
; CHECK: Finished Infer Widths
; CHECK: Done!
|