Open xobs opened 5 years ago
Do you have some visually pleasing example of memory map diagram that you like?
Here's a memory map from the EFM32HG by SiLabs, which is a bit on the advanced side but nicely shows how you'd expand on memory register regions. This is my favourite of the bunch, because of how it visually explains where the "expanded" regions are:
Various 8051 chips also have handy memory maps, and because they're so small they actually specify bitfields within the memory maps:
Here's one of the Nintendo 64, which mostly illustrates how you'd have variable-height regions:
Here's one describing the NES, which is nice because it has two side-by-side memory maps that are independent:
Example with some paper tear effect.
I spent a lot of time with the i.MX233 which has a bank of otp fuses. Here's the memory map from the reference manual:
Here's the full memory map, which just has the peripherals listed as "Peripheral Space":
Necessary modification I see:
@nopeslide good ideas. I would need some sketches of the ideas you have.
@drom I sketched just the index and sub-bitfield idea
From the nRF52833 document:
Where, apropos of nothing, I found this SPI timing diagram:
Discovered in the reference manual of an RZ/T1 -- this has four separate memory spaces, and so there are four columns.
Issue moved from https://github.com/wavedrom/wavedrom/issues/257
Memory maps are conceptually similar to bitfields, except they're rotated on their sides. Memory maps may also be non-uniform in size, though that may be a future enhancement.
It may be possible to reuse the compact view (https://github.com/drom/bitfield/pull/23) to create memory maps, by setting the number of lanes to the number of memory sections (e.g.
16
), and the width to1
.