Skip to content

Commit

Permalink
Configure RC model to split on all RCB boundaries during RX completio…
Browse files Browse the repository at this point in the history
…n buffer tests

Signed-off-by: Alex Forencich <alex@alexforencich.com>
  • Loading branch information
alexforencich committed Jun 24, 2023
1 parent fe7d8e2 commit 75126f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ async def run_test(dut):

tb.log.info("Test RX completion buffer (CPLH, 8)")

tb.rc.split_on_all_rcb = True

size = 8
stride = size
for count in range(32, 256+1, 8):
Expand All @@ -599,6 +601,8 @@ async def run_test(dut):
for count in range(8, 256+1, 8):
await dma_cpl_buf_test(tb, dev, mem_base+128-8, region_len-1, size, stride, count, 2000)

tb.rc.split_on_all_rcb = False

tb.log.info("Test RX completion buffer (CPLD)")

size = 512
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@ async def run_test(dut):

tb.log.info("Test RX completion buffer (CPLH, 8)")

tb.rc.split_on_all_rcb = True

size = 8
stride = size
for count in range(32, 256+1, 8):
Expand All @@ -547,6 +549,8 @@ async def run_test(dut):
for count in range(8, 256+1, 8):
await dma_cpl_buf_test(tb, dev, mem_base+128-8, region_len-1, size, stride, count, 2000)

tb.rc.split_on_all_rcb = False

tb.log.info("Test RX completion buffer (CPLD)")

size = 512
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ async def run_test(dut):

tb.log.info("Test RX completion buffer (CPLH, 8)")

tb.rc.split_on_all_rcb = True

size = 8
stride = size
for count in range(32, 256+1, 8):
Expand All @@ -640,6 +642,8 @@ async def run_test(dut):
for count in range(8, 256+1, 8):
await dma_cpl_buf_test(tb, dev, mem_base+128-8, region_len-1, size, stride, count, 2000)

tb.rc.split_on_all_rcb = False

tb.log.info("Test RX completion buffer (CPLD)")

size = 512
Expand Down

0 comments on commit 75126f1

Please sign in to comment.