Veronica 65C816 Coprocessor Cartridge
- Year
- 2015
- Type
- Modern device
- Category
- Coprocessor cartridge (65C816 at about 14 MHz)
- Manufacturer
- Project Veronica (Zenon/DIAL, Marek Konopka, Simius)
- Tags
- modern, cartridge, 65816, coprocessor, accelerator, veronica, poland, altirra, veronica-basic
- Related
- Altirra BASIC, Altirra, Semaphore, Windows (BASIC Demo), Adam Is Me, Bomb Jack
Overview
Veronica is a cartridge that plugs a second, much faster computer into an Atari 8-bit. Inside is a WDC 65C816 running at about 14 MHz (eight times the Atari's clock) with 128 KB of its own RAM. Unlike CPU-replacement accelerators such as the Rapidus, Veronica leaves the Atari's 6502 in charge. The 65C816 is a coprocessor: the Atari loads code and data into a shared memory bank, swaps the bank over, lets the 65C816 crunch at full speed (it never waits for ANTIC's DMA), then swaps the results back. It was developed in Poland by Zenon/DIAL, Marek Konopka and Simius as "Project Veronica", discussed from 2010, and sold through a 2015 AtariAge pre-order.
Avery Lee (Altirra's author) documented the hardware with the team's permission and wrote Veronica BASIC, a version of Altirra BASIC whose interpreter runs on the 65C816. He reported it running about an order of magnitude faster than on the 6502. An Ahl's Benchmark run takes about 10 seconds with it.
Specifications
| Item | Value |
|---|---|
| Design | Project Veronica: Zenon/DIAL, Marek Konopka, Simius (Poland) |
| Availability | Pre-order 2015 (development from about 2010) |
| CPU | WDC 65C816, clocked at 8× the Atari clock (about 14.19-14.32 MHz depending on system) |
| RAM | 128 KB: 64 KB private to the 65C816, 64 KB shared (two swappable 32 KB banks) |
| Addressing | 65C816 uses only 16-bit addresses (bank byte ignored), so it effectively runs as a 65C802 |
| Host interface | One control register at $D5C0; 6502 windows at $8000-$9FFF and $A000-$BFFF |
| Coprocessor interface | Control register mirrored at $0200-$020F in the 65C816's space |
| Sync | One shared semaphore bit (inverted between the two sides) |
| Storage | None; boots with both windows off and the 65C816 held in reset |
| Versions | V1: three RAM chips, asynchronous clock; V2: one 128K RAM, synchronous 8× clock |
How it works
The design keeps the two processors from ever touching the same memory at once:
- The 64 KB shared memory is split into two 32 KB banks. At any moment the 6502 sees one and the 65C816 the other. Only the 6502 can trigger a swap.
- Each side picks which 16 KB half of its current bank it looks at. The 6502 sees its half through the two cartridge windows (
$8000and$A000, each 8 KB, switchable independently). The 65C816 always has its 16 KB window open at either$4000-$7FFFor$C000-$FFFF. - A single semaphore bit lets either side signal the other. It's inverted between the two sides: a 0 on the 6502 reads as 1 on the 65C816.
Booting. At power-up the host register reads $CC and the 65C816 is held in reset, with its window at $C000 showing the upper 16 KB. The 6502 copies bootstrap code into its $A000 window, swaps the banks, and releases reset. The 65C816 then starts from its reset vector at $FFFC in the code just uploaded. There's no interrupt line between the two CPUs, and the 65C816 can't touch the Atari's hardware (ANTIC, GTIA, POKEY, PIA) or main RAM. Everything goes through the shared window.
Version 1 caution. On V1 boards the bank swap isn't synchronised with the 65C816's clock, so software must keep the 65C816 away from the swap window while the 6502 swaps. V2 runs both synchronously and doesn't have this problem.
Using it today
- Software. Veronica is a programmer's device. Available software includes a disk of tests and demos and Veronica BASIC. Writing for it means splitting your program into a 6502 front end and a 65C816 compute engine.
- Emulation. Altirra emulates Veronica, including its 65C816, with debugger support for breakpoints and stepping on the coprocessor. That's the easiest way to develop for it.
- Clones. A behaviour-based Veronica core exists for the FPGA Ultimate Cart, using Robert Finch's FT816 CPU core. It isn't cycle-exact but runs most software reliably. Some users found Veronica BASIC ran on the clone but not on V1 hardware.
Compatibility
Plugs into the cartridge slot. It uses $D5C0 in the cartridge control area, so it can conflict with other devices that use the same address. Since it occupies the cartridge windows when enabled, it can't be used at the same time as a ROM cartridge in those areas.
Credits
- Altirra Hardware Reference Manual (Avery Lee), section 8.9 Veronica — Avery Lee (Altirra)
- Altirra release notes (Veronica emulation, 65C816 fixes, debugger support) — Avery Lee (Altirra)
- AtariAge threads: 'Possible futures for Basic XE/XL', 'Fastest floating point', 'Action! Source Code' (Veronica BASIC, memory model, benchmark) — AtariAge forum members
- Ultimate Cart Veronica core README (credits Zenon/DIAL, Marek Konopka, Simius) — 64kib.com
- AtariAge 'Project Veronica' and 'Veronica preorder' threads (via web search summary) — AtariAge forum members
