Repository navigation
[top,dv] Log the console UART from the base vseq - #830
Open
martin-velay wants to merge 1 commit into
Open
martin-velay wants to merge 1 commit into
martin-velay wants to merge 1 commit into
Conversation
Tests whose SW reports a mismatch with uprintf, such as rom_ctrl_smoke, ran top_chip_dv_uart_base_vseq only to get that message into the simulation log. The UART TX logging now lives in top_chip_dv_base_vseq behind the do_uart_tx_log knob. Those tests set it with +do_uart_tx_log=1. The base new() reads the plusarg, so a vseq that needs a given value sets it in its own new(). uart_tx_rx sets it because its echo reads the bytes SW sends, and axi_driver_smoke clears it because no SW runs there to enter the test. The post_body() flush of a last line without a newline is dropped. body() returns as soon as it forks the collector, so the flush ran before the first byte arrived and never printed anything. Signed-off-by: Martin Velay <mvelay@lowrisc.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Tests whose SW reports a mismatch with
uprintfrantop_chip_dv_uart_base_vseqonly to get that message into the simulation log, which was confusing in the #820 review. This moves the UART TX logging intotop_chip_dv_base_vseqbehind ado_uart_tx_logknob, read from+do_uart_tx_login the basenew().uart_smokeandrom_ctrl_smoke, vanilla and CHERI, runtop_chip_dv_base_vseqwith+do_uart_tx_log=1.uart_tx_rxextendstop_chip_dv_base_vseqand sets the knob in itsnew(), because its echo reads the bytes SW sends.axi_driver_smokeclears it, because no SW runs there to enter the test.top_chip_dv_uart_base_vseqis removed.post_body()flush of a last line without a newline is dropped.body()returns as soon as it forks the collector, so the flush ran before the first byte arrived and never printed anything.+do_uart_tx_log=1also works from--run-optson other SW tests whose vseq callssuper.body().Xcelium, two seeds each:
uart_smoke,uart_tx_rxandrom_ctrl_smoke(vanilla and CHERI),gpio_smokeandaxi_driver_smokepass. Arom_ctrl_smokerun with a forced mismatch shows the SW message underUART_TRACE.