SoC

From WSdev Wiki
Revision as of 21:42, 29 August 2023 by Asie (talk | contribs) (un-swap cartridge bus speed)
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 bus width: 0 = 8-bit, 1 = 16-bit
|    +---- Cartridge bus speed: 0 = 1 cycle, 1 = 3 cycles
+--------- MBC authentication successful?

System Control 2 ($60, color)

7  bit  0
---- ----
c4C. ?.??
|||
||+------- 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