aboutsummaryrefslogtreecommitdiff
path: root/test/errors/gender/InstancePorts.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/errors/gender/InstancePorts.fir')
-rw-r--r--test/errors/gender/InstancePorts.fir17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/errors/gender/InstancePorts.fir b/test/errors/gender/InstancePorts.fir
new file mode 100644
index 00000000..d8d1355c
--- /dev/null
+++ b/test/errors/gender/InstancePorts.fir
@@ -0,0 +1,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 in : UInt<1>
+ output out : UInt<1>
+
+ inst queue of Queue
+ queue.in := in
+ out := queue.in
+