SoC

From WSdev Wiki
Revision as of 18:42, 30 August 2023 by Asie (talk | contribs) (→‎System Control 2 ($60, color): document bit 3)
Jump to navigationJump to search

The WonderSwan SoC is a single-chip solution powering the entirety of the system's hardware - containing the CPU, most peripheral logic, as well as the internal RAM.

There exist three variants of the SoC:

  • ASWAN, used in the WonderSwan,
  • SPHINX, used in the WonderSwan Color,
  • SPHINX2, used in the SwanCrystal.

A fourth variant, CAIRO, was planned[1]. It was designed as an ASWAN with a doubled clock speed and a built-in ADPCM decoder, but was never licensed for a commercial product.

I/O ports

System Control ($A0)

7  bit  0
---- ----
t??? swcl
|    ||||
|    |||+- Boot ROM lockout: 0 = off, 1 = on
|    ||+-- Color model: 0 = no, 1 = yes
|    |+--- Cartridge ROM width: 0 = 8-bit, 1 = 16-bit
|    +---- Cartridge ROM wait state: 0 = +0 cycles, 1 = +2
+--------- MBC authentication successful?

System Control 2 ($60, color)

7  bit  0
---- ----
c4C. i?s?
|||  | |
|||  | +-- Cartridge SRAM wait state: 0 = +0 cycles, 1 = +1
|||  +---- Cartridge I/O wait state: 0 = +0 cycles, 1 = +1
||+------- 1 = 4bpp "chunky"; requires all previous
|+-------- 1 = 4bpp; requires all previous
+--------- 0 = mono, 1 = color; also controls access
           to WSC-specific features (extra RAM, DMA, etc.)

System Control 3 ($62, color)

7  bit  0
---- ----
S... ...p
|       |
|       +- 1 = Power off system
+--------- 0 = WonderSwan Color (SPHINX)
           1 = SwanCrystal (SPHINX2)

Notes