Skip to content
A314, a trapdoor expansion that lets you use a Raspberry Pi as a co-processor to an Amiga 500
Branch: master
Clone or download

README.md

A314

What is it?

The A314 is an expansion board for the Amiga 500 that goes in the trapdoor expansion slot. A Raspberry Pi (RPi) is attached to the A314, and the A500 and the RPi can communicate through a shared memory.

PCB A314 with RPi attached

We have constructed a communication protocol through which associated processes on each platform (Amiga and RPi) can allocate logical channels, carried over one physical SPI channel. The protocol is handled by a driver on each side (a314.device on the Amiga and a314d on the RPi). The drivers are responsible for alerting receiving processes of incoming data via an interrupt.

What can you do with it today?

We have implemented a few services that run on the RPi and on the A500:

  • a314fs is a file system that is mounted in AmigaDOS as a device, PI0:
    The volume in PI0: is called PiDisk:, and is mapped to a directory in the RPi.

  • pi is a command that lets you invoke executables on the RPi from the AmigaDOS CLI. For example, if your current working directory is on PiDisk: and you run "pi vc hello.c -o hello", then the vc program (the VBCC cross-compiler) is executed on the RPi with the given arguments. It will cross-compile “hello.c” into the Amiga executable file “hello”. The resulting binary is immediately accessible through the a314fs.
    You may also launch Interactive applications using the pi command, such as "pi mc -a" which will run Midnight Commander. Running pi without any arguments is equivalent to "pi bash" and will present you with a bash prompt from the RPi.

Pi command Cross-compiling in RemoteWB
  • RemoteWB works by moving the Workbench bitplanes over to the chip memory on the A314. This requires that the A500 has at least a 8372 Agnus. During drawing of each frame on the Amiga, the RPi reads those bitplanes, encodes them into a GIF image, and transmits that image to a web browser through a web socket. The web browser in turn, returns key presses and mouse movements back to the Amiga through the same web socket. In effect, this becomes a web browser based remote control application, comparable to VNC but with near zero performance impact on the Amiga CPU!

  • VideoPlayer is a simple program that displays a sequence of images on the A500 by letting the RPi write bitplanes directly to the shared memory (this again requires that the A314 memory is chip memory, and not "ranger" memory).

What could it potentially be used for in the future?

Here are some services that we have considered but not gotten around to implement:

  • Networking either through a bsdsocket.library implementation that forwards socket operations to the RPi and executes those operations there (high degree of offloading), or a Sana II driver used with a full network stack (lesser, but still offloading).

  • An mp3 player that lets the RPi stream audio samples directly to the shared chip memory, from where Paula would play those samples.

  • Your ideas?

Do you want to get involved?

If this sounds interesting, you'll probably want an A314 of your own to play with. We have released all the information needed to make a board, freely available in this GitHub repository.

In the Hardware directory there are schematics and Gerber files that can be used to produce a PCB.

The Verilog source code used to generate a programming object file (.pof) for the Intel MAX 10 FPGA is available in the HDL directory. You'll need a USB-Blaster download cable (or a clone) to connect to the JTAG connector on the A314 board. You can compile the design using the Quartus Prime Lite Edition.

The source code for the software that runs on the Amiga and on the RPi is available in the Software directory.

If you have an idea about something cool to make using the A314, but you don't have the means to build a PCB on your own, then we have a small number of pre-built boards that we plan to hand out, given the idea sounds interesting enough. Send a message to Eriond on EAB and describe what you would like to make, and perhaps you can get one.

You can’t perform that action at this time.