summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/testers
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/chisel3/testers')
-rw-r--r--src/main/scala/chisel3/testers/BasicTester.scala9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/scala/chisel3/testers/BasicTester.scala b/src/main/scala/chisel3/testers/BasicTester.scala
index 6d1a4913..4cd03863 100644
--- a/src/main/scala/chisel3/testers/BasicTester.scala
+++ b/src/main/scala/chisel3/testers/BasicTester.scala
@@ -11,9 +11,14 @@ import internal.firrtl._
import internal.sourceinfo.SourceInfo
//import chisel3.core.ExplicitCompileOptions.NotStrict
-class BasicTester extends Module() {
+class TesterIO extends Bundle {
// The testbench has no IOs, rather it should communicate using printf, assert, and stop.
- val io = IO(new Bundle())
+ // This is here (instead of just `new Bundle()`, since that has an implicit compileOptions
+ // constructor argument which is misapplied by clonetype
+}
+
+class BasicTester extends Module() {
+ val io = IO(new TesterIO)
def popCount(n: Long): Int = n.toBinaryString.count(_=='1')