vram: one more arbiter test for port conflicts
This commit is contained in:
parent
5e22d03e15
commit
60348fefd2
|
@ -78,7 +78,7 @@ endfunction
|
||||||
module mkTB();
|
module mkTB();
|
||||||
MemoryArbiter#(Addr) dut <- mkMemoryArbiter();
|
MemoryArbiter#(Addr) dut <- mkMemoryArbiter();
|
||||||
|
|
||||||
Vector#(26, TestCase) tests = vec(
|
Vector#(29, TestCase) tests = vec(
|
||||||
testCase("All idle",
|
testCase("All idle",
|
||||||
idle, idle, idle,
|
idle, idle, idle,
|
||||||
idle, idle, idle,
|
idle, idle, idle,
|
||||||
|
@ -164,6 +164,7 @@ module mkTB();
|
||||||
idle, read(2), read(3),
|
idle, read(2), read(3),
|
||||||
-1, 2),
|
-1, 2),
|
||||||
|
|
||||||
|
// Inter-port conflicts
|
||||||
testCase("Read/read, no conflict",
|
testCase("Read/read, no conflict",
|
||||||
rwRead(0), idle, idle,
|
rwRead(0), idle, idle,
|
||||||
read(0), idle, idle,
|
read(0), idle, idle,
|
||||||
|
@ -187,7 +188,19 @@ module mkTB();
|
||||||
testCase("Tile1 write conflict with debugger",
|
testCase("Tile1 write conflict with debugger",
|
||||||
idle, rwWrite(0), idle,
|
idle, rwWrite(0), idle,
|
||||||
read(0), idle, idle,
|
read(0), idle, idle,
|
||||||
1, -1)
|
1, -1),
|
||||||
|
testCase("Sprite read", // to reset round robin
|
||||||
|
idle, idle, idle,
|
||||||
|
idle, idle, read(1),
|
||||||
|
-1, 2),
|
||||||
|
testCase("CPU write conflict, other port feasible",
|
||||||
|
rwWrite(0), idle, idle,
|
||||||
|
read(0), read(1), idle,
|
||||||
|
0, 1),
|
||||||
|
testCase("CPU write conflict, conflict resolved",
|
||||||
|
idle, idle, idle,
|
||||||
|
read(0), idle, idle,
|
||||||
|
-1, 0)
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue