longer run time for fibonacci test

This commit is contained in:
PurplePower
2024-11-20 18:15:40 +08:00
parent 283eb09fd3
commit 18c1327051
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ class FibonacciTest extends AnyFlatSpec with ChiselScalatestTester {
it should "calculate recursively fibonacci(10)" in {
test(new TestTopModule("fibonacci.asmbin")).withAnnotations(TestAnnotations.annos) { c =>
c.io.interrupt.poke(0.U)
for (i <- 1 to 50) {
for (i <- 1 to 100) {
c.clock.step(1000)
c.io.mem_debug_read_address.poke((i * 4).U) // Avoid timeout
}

View File

@@ -117,7 +117,7 @@ class FibonacciTest extends AnyFlatSpec with ChiselScalatestTester {
it should "calculate recursively fibonacci(10)" in {
test(new TestTopModule("fibonacci.asmbin")).withAnnotations(TestAnnotations.annos) { c =>
c.io.interrupt.poke(0.U)
for (i <- 1 to 50) {
for (i <- 1 to 100) {
c.clock.step(1000)
c.io.mem_debug_read_address.poke((i * 4).U) // Avoid timeout
}