blob: 7379024b6e970f636fe6a0e7d50ac9843cb012dd (
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
|
; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
; CHECK: Done!
circuit ModuleVec :
module PlusOne :
input in : UInt<32>
output out : UInt<32>
node T_33 = UInt<1>(1)
node T_34 = add(in, T_33)
out := T_34
module PlusOne_25 :
input in : UInt<32>
output out : UInt<32>
node T_35 = UInt<1>(1)
node T_36 = add(in, T_35)
out := T_36
module ModuleVec :
output ins : UInt<32>[2]
output outs : UInt<32>[2]
inst T_37 of PlusOne
inst T_38 of PlusOne_25
wire pluses : {flip in : UInt<32>, out : UInt<32>}[2]
pluses[0] := T_37
pluses[1] := T_38
pluses.s.in := ins.s
outs[0] := pluses.s.out
pluses.s.in := ins[1]
outs[1] := pluses[1].out
|