From 7bb2eb3e7107bba39b3ef3e47c5d5dc80fa813e1 Mon Sep 17 00:00:00 2001 From: Stevo Bailey Date: Thu, 23 Mar 2017 15:39:44 -0700 Subject: [PATCH] [stevo]: submit bug --- src/test/scala/verilator/Verilator.scala | 3 ++- src/test/scala/verilator/doohickey.scala | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/scala/verilator/Verilator.scala b/src/test/scala/verilator/Verilator.scala index 1d750385..7de7d6d4 100644 --- a/src/test/scala/verilator/Verilator.scala +++ b/src/test/scala/verilator/Verilator.scala @@ -14,6 +14,7 @@ class VerilatorTest extends FlatSpec with Matchers { "--compile", "--genHarness", "--minimumCompatibility", "3.0.0") - chiselMain(args, () => new doohickey()) + chiselMain(args, () => new doohickey(4)) + chiselMain(args, () => new doohickey(8)) } } diff --git a/src/test/scala/verilator/doohickey.scala b/src/test/scala/verilator/doohickey.scala index 958b427e..c25cc99b 100644 --- a/src/test/scala/verilator/doohickey.scala +++ b/src/test/scala/verilator/doohickey.scala @@ -5,8 +5,10 @@ import chisel3._ /** * The practice of creating Seq's or Vec's of IO's is problematic */ -class doohickey() extends Module { - val io = IO(new Bundle {}) +class doohickey(veclength: Int) extends Module { + val io = IO(new Bundle { + val dummy = Input(Vec(veclength, UInt(4.W))) + }) //TODO: figure out if this idiom is the key point here or if some other example would suffice val bobs = Seq.fill(16) { Module(new thingamabob()).io