Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMA Scatter-Gather Testbench #54

Merged
merged 1 commit into from
Aug 26, 2024
Merged

DMA Scatter-Gather Testbench #54

merged 1 commit into from
Aug 26, 2024

Conversation

podgori
Copy link
Contributor

@podgori podgori commented Oct 31, 2023

Added a testbench for the Scatter-Gather feature which tests the following:

  • 1D (simple) SG transfers
  • 2D SG transfers
  • Multiple queued SG transfers

Copy link
Contributor

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, I only miss a test method to write the descriptor to make the tbs more concise, explaining what the test does and the expected result, and perhaps more interesting tests scenarios, like non contiguous sg transfers, if applicable.

dma_sg/Makefile Outdated Show resolved Hide resolved
dma_sg/Makefile Outdated Show resolved Hide resolved
dma_sg/system_bd.tcl Outdated Show resolved Hide resolved
dma_sg/system_bd.tcl Show resolved Hide resolved
dma_sg/tests/test_program_1d.sv Outdated Show resolved Hide resolved
dma_sg/tests/test_program_1d.sv Outdated Show resolved Hide resolved
dma_sg/tests/test_program_1d.sv Outdated Show resolved Hide resolved
dma_sg/tests/test_program_1d.sv Outdated Show resolved Hide resolved
dma_sg/tests/test_program_tr_queue.sv Outdated Show resolved Hide resolved
dma_sg/tests/test_program_tr_queue.sv Show resolved Hide resolved
@gastmaier
Copy link
Contributor

@podgori can you check the conflict and resolve the comments?
Feel free to disregard any comment that you don't think is applicable, let's just merge this.

dma_sg/system_project.tcl Outdated Show resolved Hide resolved
@podgori
Copy link
Contributor Author

podgori commented Aug 23, 2024

I think I have addressed most of the requested changes, this TB is ready to be merged.

Copy link
Contributor

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run all tbs on my end successfully.
Thank you for updating the tb.

Copy link
Contributor

@IstvanZsSzekely IstvanZsSzekely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the clock and reset call position in the stimulus, all is good, test programs pass the run.

Comment on lines 77 to 78
`TH.`DEVICE_CLK.inst.IF.start_clock();
env.sys_reset();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting the clocks and resetting the system should be done before probing (accessing) the DMA cores

Comment on lines 77 to 78
`TH.`DEVICE_CLK.inst.IF.start_clock();
env.sys_reset();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previously

Comment on lines 77 to 78
`TH.`DEVICE_CLK.inst.IF.start_clock();
env.sys_reset();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as previously

Signed-off-by: Ionut Podgoreanu <ionut.podgoreanu@analog.com>
@podgori podgori merged commit ccace94 into main Aug 26, 2024
@podgori podgori deleted the dma_test_sg branch August 26, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants