aboutsummaryrefslogtreecommitdiff
path: root/test/errors/gender/InstancePorts.fir
blob: 3f5ae8c763c5463bafbfb69f4963af2e58d013aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
; CHECK-NOT: Expression queue.in is used as a sink but can only be used as a source.
; CHECK: Done!

circuit BTB :
  module Queue :
    input in : UInt<1>
    output out : UInt<1>
    out <= in
  module BTB : 
    input time : UInt<1>
    output out : UInt<1>
    
    inst queue of Queue
    queue.in <= time
    out <= queue.in