[TB]: Extend testbench to improve debugging #53
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extend Testbench for better observability
This PR introduces some few adjustment to the Testbench to improve the observability when printing a word with UART.
Additionally, it also modify some parameters due to some issues encountered when testing the Chimrea PD design.
the goal of this PR, is to end up with a shared version of the VIP module.
JTAG SBUSY Problem
The reason why the
idle_cycles
have been increased to 4000, is to work around an issue with the task jtag_poll_bit0. This task uses the Debug Module function read_dmi_exp_backoff, which should not be used for read operations with side effects, as reading SBData0 is one such operation.For instance, if the clock signal is removed, something that can occur during FLL testing, the Debug Module may not complete the write operation before attempting to read SBData0. This results in the Debug Module appearing busy. Consequently, during the next iteration of the exponential backoff, the DMI resets without clearing the
sbusy
bit, which leaves the system in a perpetually unstable state.This problem should be documented and addressed properly in a dedicated issue.