Skip to content
/ a314 Public
forked from niklasekstrom/a314

A314, a trapdoor expansion that lets you use a Raspberry Pi as a co-processor to an Amiga 500

License

Notifications You must be signed in to change notification settings

arnljot/a314

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • PiAudio lets the RPi stream audio samples directly to the shared chip memory, from where Paula plays those samples. PiAudio is integrated with ALSA on the RPi so that any program that plays audio through ALSA can be used, i.e. "pi mpg123 -a amiga song.mp3" plays song.mp3 using the program mpg123 to the Amiga.

  • 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).

  • 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.

There is an #a314 IRC channel on EFNet where you can hopefully get answers to any questions related to A314.

About

A314, a trapdoor expansion that lets you use a Raspberry Pi as a co-processor to an Amiga 500

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 33.6%
  • Verilog 32.4%
  • Python 18.6%
  • C++ 11.9%
  • HTML 1.0%
  • Coq 0.9%
  • Other 1.6%