mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Read back CAR and MC registers, and measure the EMC at its modelled clock
Most CAR registers the model does not handle, and every MC register but two, read 0 even after a write. Payloads saw a CLK_SOURCE divider, a PLL misc word or an audio clock source they had just programmed come back as 0. - CAR: the fallthrough returns what was written. The SET/CLR alias registers are write strobes and keep reading 0. No CAR poll in bdk or hwtest waits for hardware to clear a bit it wrote, so read-back cannot turn a poll into a hang. - MC: configuration registers read back (no MC register is polled). - The PTO counter measures the EMC at the clock CAR and the PLLs give it, so it follows Minerva to 1600 MHz. At the 204 MHz boot clock it keeps the measured 203.991 / 204.001 MHz. hwtest now reports the AUD_MCLK source, PLLA misc word and a clock source divider it programs. Its verdict is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
2 files changed
+44
-5
No files matched your search
@@ -195,6 +195,10 @@ frequency-switching module, depend on:
|
||||
locks once enabled, like the other PLLs.
|
||||
- **Status.** `EMC_EMC_STATUS` otherwise reports timing updates done, the
|
||||
DRAM active and the state machines idle.
|
||||
- **Measured clock.** bdk's PTO counter measures the EMC at the modelled
|
||||
clock (the measured 204 MHz figure at the boot clock).
|
||||
- **Not modelled.** The DLL's delay code (`DLL_OUT`) reads 0: the TRM gives
|
||||
no tap delay to derive it from.
|
||||
|
||||
With the stock `bootloader/` folder, hekate's IPL trains 204, 800 and
|
||||
1600 MHz, and Nyx then switches between 800 and 1600 MHz on every GUI loop,
|
||||
@@ -481,6 +485,10 @@ needed. The 64 KB TX log trim happens in-place during the write hook.
|
||||
|
||||
### Other peripherals (mostly stubs)
|
||||
|
||||
- **CAR and MC.** Registers without behaviour of their own read back what
|
||||
was written - the `CLK_SOURCE_*` dividers, PLL MISC words, the MC's
|
||||
arbitration and address-map configuration - instead of 0. The CAR's
|
||||
SET/CLR alias registers are write strobes and read 0.
|
||||
- **PINMUX (`APB_MISC` pad config) and PWM controller (`0x7000A000`).**
|
||||
No active behaviour, but reads return whatever the payload last wrote
|
||||
via the global `mmio_regs` cache. Hwtest's "Display backlight & PWM"
|
||||
|
||||
Reference in new issue
Block a user