summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/BundleWire.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/chiselTests/BundleWire.scala')
-rw-r--r--src/test/scala/chiselTests/BundleWire.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/chiselTests/BundleWire.scala b/src/test/scala/chiselTests/BundleWire.scala
index bef56a56..d2e42fa9 100644
--- a/src/test/scala/chiselTests/BundleWire.scala
+++ b/src/test/scala/chiselTests/BundleWire.scala
@@ -14,9 +14,9 @@ class Coord extends Bundle {
class BundleWire(n: Int) extends Module {
val io = new Bundle {
val in = (new Coord).asInput
- val outs = Vec(new Coord, n).asOutput
+ val outs = Vec(n, new Coord).asOutput
}
- val coords = Wire(Vec(new Coord, n))
+ val coords = Wire(Vec(n, new Coord))
for (i <- 0 until n) {
coords(i) := io.in
io.outs(i) := coords(i)