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

circuit BTB :
  module BTB : 
    output out : {x : UInt<1>, flip y : UInt<1>}

    wire w : {x : UInt<1>, flip y : UInt<1>}
    w.x <= UInt(1)
    w.y <= UInt(1)
    out.x <= UInt(1)
    w <- out