From 273d3a73f2c5be4601413601ca70bc93b2bc4a05 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Mon, 12 Sep 2016 18:39:50 -0700 Subject: [PATCH] tilelink2: Unit Test passes! --- src/main/scala/junctions/unittests/UnitTest.scala | 2 +- src/main/scala/uncore/tilelink2/Fuzzer.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/junctions/unittests/UnitTest.scala b/src/main/scala/junctions/unittests/UnitTest.scala index b40be2af..723ac164 100644 --- a/src/main/scala/junctions/unittests/UnitTest.scala +++ b/src/main/scala/junctions/unittests/UnitTest.scala @@ -39,7 +39,7 @@ class UnitTestSuite(implicit p: Parameters) extends Module { state := Mux(test_idx === UInt(tests.size - 1), s_done, s_start) } - val timer = Module(new Timer(1000, tests.size)) + val timer = Module(new Timer(50000, tests.size)) timer.io.start.valid := Bool(false) timer.io.stop.valid := Bool(false) diff --git a/src/main/scala/uncore/tilelink2/Fuzzer.scala b/src/main/scala/uncore/tilelink2/Fuzzer.scala index 8cda783e..aaaef42c 100644 --- a/src/main/scala/uncore/tilelink2/Fuzzer.scala +++ b/src/main/scala/uncore/tilelink2/Fuzzer.scala @@ -81,7 +81,7 @@ class TLFuzzer(nOperations: Int, inFlight: Int = 32) extends LazyModule // Progress through operations val num_reqs = Reg(init = UInt(nOperations-1, log2Up(nOperations))) val num_resps = Reg(init = UInt(nOperations-1, log2Up(nOperations))) - io.finished := num_resps =/= UInt(0) + io.finished := num_resps === UInt(0) // Progress within each operation val a = out.a.bits