blob: ab6f4915841c9f60cc257bbb56a235157d0b10cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
circuit top :
module top :
input clk : Clock
input reset : UInt<1>
wire p : UInt
p := UInt(1)
reg r : UInt,clk,reset
when p :
on-reset r := UInt(10)
r := UInt(20)
; CHECK: Expand Whens
; CHECK: circuit top :
; CHECK: module top :
; CHECK: wire p : UInt
; CHECK: reg r : UInt
; CHECK: p := UInt(1)
; CHECK: when p : r := mux(reset, UInt(10), UInt(20))
; CHECK: Finished Expand Whens
|