Skip to content
Projet 816wiki
Contents

The project: goals and phases

A real 65816, FPGAs for everything that used to be dedicated chips, and a rule of caution: only make a board once the previous one has been validated.

What the project aims to produce

Project 816 is a neo-retro 16-bit microcomputer: retro in its processor, a real WDC W65C816S, neo in everything around it. The project is to produce and maintain:

  • the electronic schematics (KiCad) of the boards;
  • the Verilog code of the two FPGAs;
  • the firmware of the Pico 2 W;
  • the tools and the documentation.

The specification (docs/SPEC.md in the repository) is the source of truth. Any change to the pinout, the memory map, the expansion port or the architecture is first proposed and written there, and only then applied to the schematics, the code or the firmware.

The main choices

ChoiceWhat it implies
Everything at 3.3 Vno level shifters on the board; 5 V is used only for USB and to power the modules
No ROMall the memory is made of 16 MB of PSRAM; the boot program is written into it before the processor starts
The cheapest16 MB of PSRAM for about $8, at the cost of speed: about 6 MHz on average (estimate, to be measured)
FPGAsbus control, sound and video are described in Verilog, so they can be changed without redoing the board
A register windowthe video and the Pico each expose only 32 registers; the processor accesses video memory indirectly, as with the Commander X16’s VERA
The Mini-ITX formata 170 × 170 mm board that fits in a standard PC case

Start-up

At start-up, the processor is held in reset and off the bus (pins RESB and BE low). Meanwhile, the 9K configures itself and writes into PSRAM the boot code supplied by the Pico. Then the 9K releases RESB and BE, and the processor starts on that code. The 65816’s vectors (the addresses where it starts and where it goes on an interrupt) are part of what is loaded.

Three phases

The three phases of Project 816Phase 1: a 100 × 100 mm, 2-layer validation board with the processor, the PSRAM and the 9K. Phase 2: the 170 × 170 mm, 4-layer Mini-ITX board with the whole machine. Phase 3: software. The project is at the phase 1 specification. No board is ordered until the previous phase has been validated on real hardware.Phase 1validation board≈ 100 × 100 mm, 2 layersCPU, PSRAM, 9KPhase 2Mini-ITX board170 × 170 mm, 4 layersthe whole machinePhase 3softwaremonitor, BASIC or system,toolswe are here: the specificationNo board is ordered until the previous phase has been validated on real hardware.
Each phase must be validated on real hardware before the next one begins.
  1. Phase 1, the validation board. A 2-layer printed circuit board, about 100 × 100 mm, with the processor, the PSRAM and the soldered system-controller FPGA (assembled by JLCPCB), and headers to connect the rest. It must validate three things: bank latching, memory access timings and the controller Verilog.
  2. Phase 2, the Mini-ITX board. A 4-layer board, 170 × 170 mm, that integrates the whole machine. See The Mini-ITX board.
  3. Phase 3, the software. A monitor, a BASIC or an operating system, and tools.

The budget

The specification estimates the complete machine at between €250 and 450, including the printed circuit board, case and power supply. The component breakdown is in The Mini-ITX board.

Sources in the repository : docs/SPEC.md.