unit tests: all should accept timeout override
This commit is contained in:
parent
4acc302158
commit
f6f40b1442
@ -34,7 +34,7 @@ class AHBFuzzNative(aFlow: Boolean)(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AHBNativeTest(aFlow: Boolean)(implicit p: Parameters) extends UnitTest(500000) {
|
class AHBNativeTest(aFlow: Boolean, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new AHBFuzzNative(aFlow)).module)
|
val dut = Module(LazyModule(new AHBFuzzNative(aFlow)).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ class AHBFuzzBridge(aFlow: Boolean)(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AHBBridgeTest(aFlow: Boolean)(implicit p: Parameters) extends UnitTest(500000) {
|
class AHBBridgeTest(aFlow: Boolean, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new AHBFuzzBridge(aFlow)).module)
|
val dut = Module(LazyModule(new AHBFuzzBridge(aFlow)).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class APBFuzzBridge(aFlow: Boolean)(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class APBBridgeTest(aFlow: Boolean)(implicit p: Parameters) extends UnitTest(500000) {
|
class APBBridgeTest(aFlow: Boolean, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new APBFuzzBridge(aFlow)).module)
|
val dut = Module(LazyModule(new APBFuzzBridge(aFlow)).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class AXI4LiteFuzzRAM()(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AXI4LiteFuzzRAMTest()(implicit p: Parameters) extends UnitTest(500000) {
|
class AXI4LiteFuzzRAMTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new AXI4LiteFuzzRAM).module)
|
val dut = Module(LazyModule(new AXI4LiteFuzzRAM).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ class AXI4FullFuzzRAM()(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AXI4FullFuzzRAMTest(implicit p: Parameters) extends UnitTest(500000) {
|
class AXI4FullFuzzRAMTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new AXI4FullFuzzRAM).module)
|
val dut = Module(LazyModule(new AXI4FullFuzzRAM).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ class AXI4FuzzBridge()(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class AXI4BridgeTest()(implicit p: Parameters) extends UnitTest(500000) {
|
class AXI4BridgeTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new AXI4FuzzBridge).module)
|
val dut = Module(LazyModule(new AXI4FuzzBridge).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ class ROMSlave(contents: Seq[Byte])(implicit val p: Parameters) extends Module
|
|||||||
data = rdata)
|
data = rdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
class ROMSlaveTest(implicit p: Parameters) extends UnitTest {
|
class ROMSlaveTest(timeout: Int = 4096)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val romdata = Seq(
|
val romdata = Seq(
|
||||||
BigInt("01234567deadbeef", 16),
|
BigInt("01234567deadbeef", 16),
|
||||||
BigInt("ab32fee8d00dfeed", 16))
|
BigInt("ab32fee8d00dfeed", 16))
|
||||||
|
@ -94,7 +94,7 @@ object TLArbiter
|
|||||||
/** Synthesizeable unit tests */
|
/** Synthesizeable unit tests */
|
||||||
import unittest._
|
import unittest._
|
||||||
|
|
||||||
class TestRobin()(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TestRobin(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val sources = Wire(Vec(6, DecoupledIO(UInt(width=3))))
|
val sources = Wire(Vec(6, DecoupledIO(UInt(width=3))))
|
||||||
val sink = Wire(DecoupledIO(UInt(width=3)))
|
val sink = Wire(DecoupledIO(UInt(width=3)))
|
||||||
val count = RegInit(UInt(0, width=8))
|
val count = RegInit(UInt(0, width=8))
|
||||||
|
@ -168,6 +168,6 @@ class TLRAMAsyncCrossing(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMAsyncCrossingTest(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMAsyncCrossingTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMAsyncCrossing).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMAsyncCrossing).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -306,6 +306,6 @@ class TLRAMAtomicAutomata()(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMAtomicAutomataTest(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMAtomicAutomataTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMAtomicAutomata).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMAtomicAutomata).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -309,6 +309,6 @@ class TLRAMFragmenter(ramBeatBytes: Int, maxSize: Int)(implicit p: Parameters) e
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMFragmenterTest(ramBeatBytes: Int, maxSize: Int)(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMFragmenterTest(ramBeatBytes: Int, maxSize: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMFragmenter(ramBeatBytes,maxSize)).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMFragmenter(ramBeatBytes,maxSize)).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ class TLFuzzRAM()(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLFuzzRAMTest()(implicit p: Parameters) extends UnitTest(500000) {
|
class TLFuzzRAMTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
val dut = Module(LazyModule(new TLFuzzRAM).module)
|
val dut = Module(LazyModule(new TLFuzzRAM).module)
|
||||||
io.finished := dut.io.finished
|
io.finished := dut.io.finished
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,6 @@ class TLRAMHintHandler()(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMHintHandlerTest()(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMHintHandlerTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMHintHandler).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMHintHandler).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ case class TLInternalInputNode(portParams: Seq[TLClientPortParameters]) extends
|
|||||||
/** Synthesizeable unit tests */
|
/** Synthesizeable unit tests */
|
||||||
import unittest._
|
import unittest._
|
||||||
|
|
||||||
class TLInputNodeTest()(implicit p: Parameters) extends UnitTest(500000) {
|
class TLInputNodeTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
class Acceptor extends LazyModule {
|
class Acceptor extends LazyModule {
|
||||||
val node = TLInputNode()
|
val node = TLInputNode()
|
||||||
val tlram = LazyModule(new TLRAM(AddressSet(0x54321000, 0xfff)))
|
val tlram = LazyModule(new TLRAM(AddressSet(0x54321000, 0xfff)))
|
||||||
|
@ -222,6 +222,6 @@ class TLRAMRationalCrossing(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMRationalCrossingTest(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMRationalCrossingTest(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMRationalCrossing).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMRationalCrossing).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,7 @@ class FuzzRRTest0()(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRR0Test()(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRR0Test(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new FuzzRRTest0).module).io.finished
|
io.finished := Module(LazyModule(new FuzzRRTest0).module).io.finished
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ class FuzzRRTest1()(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRR1Test()(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRR1Test(timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new FuzzRRTest1).module).io.finished
|
io.finished := Module(LazyModule(new FuzzRRTest1).module).io.finished
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,6 +104,6 @@ class TLRAMSimple(ramBeatBytes: Int)(implicit p: Parameters) extends LazyModule
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMSimpleTest(ramBeatBytes: Int)(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMSimpleTest(ramBeatBytes: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMSimple(ramBeatBytes)).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMSimple(ramBeatBytes)).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -78,6 +78,6 @@ class TLRAMZeroDelay(ramBeatBytes: Int)(implicit p: Parameters) extends LazyModu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMZeroDelayTest(ramBeatBytes: Int)(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMZeroDelayTest(ramBeatBytes: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMZeroDelay(ramBeatBytes)).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMZeroDelay(ramBeatBytes)).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -197,6 +197,6 @@ class TLRAMWidthWidget(first: Int, second: Int)(implicit p: Parameters) extends
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMWidthWidgetTest(little: Int, big: Int)(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMWidthWidgetTest(little: Int, big: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMWidthWidget(little,big)).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMWidthWidget(little,big)).module).io.finished
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ class TLRAMXbar(nManagers: Int)(implicit p: Parameters) extends LazyModule {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLRAMXbarTest(nManagers: Int)(implicit p: Parameters) extends UnitTest(timeout = 500000) {
|
class TLRAMXbarTest(nManagers: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLRAMXbar(nManagers)).module).io.finished
|
io.finished := Module(LazyModule(new TLRAMXbar(nManagers)).module).io.finished
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,6 +253,6 @@ class TLMulticlientXbar(nManagers: Int, nClients: Int)(implicit p: Parameters) e
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TLMulticlientXbarTest(nManagers: Int, nClients: Int)(implicit p: Parameters) extends UnitTest(timeout = 5000000) {
|
class TLMulticlientXbarTest(nManagers: Int, nClients: Int, timeout: Int = 500000)(implicit p: Parameters) extends UnitTest(timeout) {
|
||||||
io.finished := Module(LazyModule(new TLMulticlientXbar(nManagers, nClients)).module).io.finished
|
io.finished := Module(LazyModule(new TLMulticlientXbar(nManagers, nClients)).module).io.finished
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user