summaryrefslogtreecommitdiff
path: root/src/test/scala/cookbook/CookbookSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/cookbook/CookbookSpec.scala')
-rw-r--r--src/test/scala/cookbook/CookbookSpec.scala5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/scala/cookbook/CookbookSpec.scala b/src/test/scala/cookbook/CookbookSpec.scala
index 6ecea446..554a415f 100644
--- a/src/test/scala/cookbook/CookbookSpec.scala
+++ b/src/test/scala/cookbook/CookbookSpec.scala
@@ -15,10 +15,7 @@ import chiselTests.ChiselFlatSpec
abstract class CookbookTester(length: Int) extends BasicTester {
require(length >= 0, "Simulation length must be non-negative!")
- // No IO allowed, cookbook tests must be self-contained
- override final val io = new Bundle { }
-
- val (cycle, done) = Counter(true.B, length)
+ val (cycle, done) = Counter(true.B, length + 1) // + 1 cycle because done is actually wrap
when (done) { stop() }
}