aboutsummaryrefslogtreecommitdiff
path: root/test/errors/high-form/InvalidLOC.fir
blob: 5270577b96ae96dfe8635c6940f9859365c3d77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.
; CHECK: Invalid connect to an expression that is not a reference or a WritePort.

circuit Top :
  module Top :
    wire x : UInt
    add(x,x) := UInt(1)
    Pad(x,?) := UInt(1)
    Register(x,x) := UInt(1)
    ReadPort(x,x,x) := UInt(1)
    UInt(1) := UInt(1)
    SInt(1) := UInt(1)