Repository navigation
S2: the Clock tree, Memory and Devices views, and the golden test - #11
Merged
Merged
Conversation
The first drawn views of stage S2, each the generator's model, written as the generator's own reports write it. - Clock tree draws the path from the oscillator to the buses: the PLL's input after M, the VCO after N, its Q output, the system clock after P (or the RP2350's two post-dividers), and each bus with its divider and its limit, with a bar for how close it runs. Boards without a PLL go straight from the source. The flash wait states, the regulator and the tick timer below. - Memory lists the chip's regions, the flash partitions as a strip in proportion, with their sectors or pages, and the linker's image layout. - Devices lists the devices in initialization order, with their class, compatible, level and dependencies, and the chosen device's binding fields. - The Board view writes each pin's mode as board.md does (af7 (usart2_tx), output); the golden test found a chip select shown by its signal. - Frequencies and sizes drop the group separator: 1500 MHz, 4032 KB. - --view <id> brings a view to the front, for progress pictures. - Every new text is in French and Simplified Chinese. tst_golden opens the RTOS's nucleo_f446re and pico2_w through the real core and finds every value of the four views equal to hw.json, board.md and build_report.md; CI checks the RTOS out at the pinned commit for it. Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
…its is a dash At the pinned RTOS revision the Pico 2 W's partitions give no erase units, and board.md writes '-'; the Memory view now writes a dash too. A Windows checkout has CRLF line ends, so the test reads the reports with them normalized. The verbose rerun of failed tests now has the RTOS too, so it reruns, not skips. Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
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.
The first drawn views of S2, and S2's golden test.
The views (tabs beside Board; every value is the generator's)
The golden test (
tst_golden, spec §8 S2): fornucleo_f446reandpico2_w, it opens the board through the real core and renders the Board, Clock tree, Memory and Devices views. Every value shown must equal the board'shw.jsonand the tables and lines of itsboard.mdandbuild_report.md. CI checks the RTOS out at the pinned commit for it. On its first run it caught a real difference: the Board view showed a chip-select pin by its signal name where the generator saysoutput. The view now writes pin modes exactly as the generator does.Also
--view <id>brings a view to the front.Still to come in S2: the Pin map (it needs each pin's position on its package, which
hw.jsondoesn't hold yet) and the RTOS view (it needssystem.yaml, the RTOS's phase E3).8 of 8 suites pass locally with the RTOS, and clang-format 18 is clean.