Skip to content

Random backpressure on ready/valid #56

Answered by alexforencich
davekeeshan asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, all of the internal streams can be paused independently. Currently, you can either set the "pause" parameter however you like during simulation, or you can attach generators that will be advanced every clock cycle.

See (for AXI): https://github.com/alexforencich/cocotbext-axi/blob/master/tests/axi/test_axi.py#L56-L70

See (for AXI stream): https://github.com/alexforencich/cocotbext-axi/blob/master/tests/axis/test_axis.py#L54-L60

Now, in most of the tests I have done I usually test with a 1/4 duty cycle for pausing, but something random might be a better idea. I think some other cocotb components might use generators in a slightly different way, where the generator yields tuples of (on…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tns-waymont
Comment options

Answer selected by davekeeshan
Comment options

You must be logged in to vote
1 reply
@alexforencich
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants