-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
There was a problem hiding this 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.
@podgori can you check the conflict and resolve the comments? |
I think I have addressed most of the requested changes, this TB is ready to be merged. |
There was a problem hiding this 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.
There was a problem hiding this 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.
dma_sg/tests/test_program_1d.sv
Outdated
`TH.`DEVICE_CLK.inst.IF.start_clock(); | ||
env.sys_reset(); |
There was a problem hiding this comment.
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
dma_sg/tests/test_program_2d.sv
Outdated
`TH.`DEVICE_CLK.inst.IF.start_clock(); | ||
env.sys_reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previously
`TH.`DEVICE_CLK.inst.IF.start_clock(); | ||
env.sys_reset(); |
There was a problem hiding this comment.
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>
Added a testbench for the Scatter-Gather feature which tests the following: