aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/ModuleWire.fir
blob: fefe42bd88c55490ee019daed7b85d6e09dbbe57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
;CHECK: Done!

circuit ModuleWire : 
  module Inc : 
    input in : UInt<32>
    output out : UInt<32>
    
    node T_12 = add-wrap(in, UInt<1>(1))
    out := T_12
  module ModuleWire : 
    input in : UInt<32>
    output out : UInt<32>
    
    inst T_13 of Inc
    T_13.in := in
    out := T_13.out