aboutsummaryrefslogtreecommitdiff
path: root/test/features/BulkConnect.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/BulkConnect.fir')
-rw-r--r--test/features/BulkConnect.fir28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/features/BulkConnect.fir b/test/features/BulkConnect.fir
new file mode 100644
index 00000000..f78ba45b
--- /dev/null
+++ b/test/features/BulkConnect.fir
@@ -0,0 +1,28 @@
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+;CHECK: Lower To Ground
+circuit Top :
+ module Top :
+ wire a : { w : UInt<42>, x : UInt<10>, flip y : UInt<42>, z : SInt<42>}
+ wire b : { w : UInt<42>, x : UInt<20>, y : UInt<42>, z : UInt<42>}
+ a <> b
+ ; CHECK: a$w := b$w
+ ; CHECK: a$x := b$x
+ ; CHECK-NOT: a$y := b$y
+ ; CHECK-NOT: b$y := a$y
+ ; CHECK-NOT: a$z := b$z
+
+
+ wire c : { x : { y : UInt<1>, z : UInt<1>}}[4]
+ wire d : { x : { y : UInt<1>}}[2]
+ c <> d
+ ; CHECK: c$0$x$y := d$0$x$y
+ ; CHECK: c$1$x$y := d$1$x$y
+ ; CHECK-NOT: c$2$x$y := d$2$x$y
+ ; CHECK-NOT: c$3$x$y := d$3$x$y
+ ; CHECK-NOT: c$0$x$z := d$0$x$z
+ ; CHECK-NOT: c$1$x$z := d$1$x$z
+ ; CHECK-NOT: c$2$x$z := d$2$x$z
+ ; CHECK-NOT: c$3$x$z := d$3$x$z
+
+;CHECK: Finished Lower To Ground
+;CHECK: Done!