Remove unnecessary delays from testbenches

This commit is contained in:
Alex Forencich 2021-02-24 13:50:45 -08:00
parent 40a191a06d
commit 6fb2eb6b4e
3 changed files with 0 additions and 9 deletions

View File

@ -144,9 +144,6 @@ async def run_test_write(dut, data_in=None, idle_inserter=None, backpressure_ins
assert int(status.tag) == cur_tag
assert int(status.id) == cur_tag
for k in range(10):
await RisingEdge(dut.clk)
tb.log.debug("%s", tb.dma_ram.hexdump_str((ram_addr & ~0xf)-16, (((ram_addr & 0xf)+length-1) & ~0xf)+48))
if len(test_data) <= len(test_data2):

View File

@ -263,9 +263,6 @@ async def run_test_read(dut, idle_inserter=None, backpressure_inserter=None):
assert int(status.tag) == cur_tag
for k in range(10):
await RisingEdge(dut.clk)
tb.log.debug("%s", tb.dma_ram.hexdump_str((ram_addr & ~0xf)-16, (((ram_addr & 0xf)+length-1) & ~0xf)+48, prefix="RAM "))
assert tb.dma_ram.read(ram_addr-8, len(test_data)+16) == b'\xaa'*8+test_data+b'\xaa'*8

View File

@ -203,9 +203,6 @@ async def run_test_read(dut, idle_inserter=None, backpressure_inserter=None):
assert int(status.tag) == cur_tag
for k in range(10):
await RisingEdge(dut.clk)
tb.log.debug("%s", tb.dma_ram.hexdump_str((ram_addr & ~0xf)-16, (((ram_addr & 0xf)+length-1) & ~0xf)+48, prefix="RAM "))
assert tb.dma_ram.read(ram_addr-8, len(test_data)+16) == b'\xaa'*8+test_data+b'\xaa'*8