Skip to the content
2 layersFPGA, the printed circuit board in 3D

This is an experimental project to connect Raspberry Pi with the help of cheap Cyclone IV FPGA board to 8-bit ISA bus to act as multiple different devices.

Copper layers
2
Thickness
1.6 mm
Parts
3
Nets
363
Pads
402
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 6 (file 20211014)
Created
17 Jul 2022
Updated
11 Nov 2023

Overview

FPGA is an open-source printed circuit board by eigenco, from the eigenco/frankenpi repository on GitHub. It is a 2-layer board with 3 parts on 363 nets.

It is built around the ICE40HX8K-CT256 and IS61WV102416FBLL-10TLI. Its parts include 2 ICs and 1 connector. It belongs with the fPGA and programmable logic boards and the FPGA and CPLD boards of this library.

Main components

2

README

README.md

frankenpi

This is an experimental project to connect Raspberry Pi with the help of cheap Cyclone IV FPGA board to 8-bit ISA bus to act as multiple different devices.

What is currently implemented (to some degree), i.e. PC can access through ISA

  • Mass storage access from a file on the Raspberry Pi (written sectors are flushed every 2 seconds by default)
  • Adlib output to optical SPDIF
  • Sound Blaster 8-bit mono with DMA and IRQ (basic functions only), output to optical SPDIF
  • Gravis Ultrasound (basic wavetable only), output to optical SPDIF
  • Roland MT-32 (UART only), output to optical SPDIF
  • USB mouse plugged into the Raspberry Pi will appear as a kind of serial mouse in DOS, custom ctmouse driver is provided (start with /v)
  • Boot from custom TVGA9000i VGABIOS, i.e. no other devices are required to be present in the ISA bus besides FrakenPi and VGA-adapter

Youtube links:

https://www.youtube.com/watch?v=1ej76w8sHxY

https://www.youtube.com/watch?v=CkwgHHmKaSI

TESTED and working:

  • Wolfenstein 3D (SB & Adlib)
  • Second Reality (GUS)
  • Scream Tracker 3.21 (SB1 and GUS)
  • Skyroads (SB & Adlib)
  • Keen 4 (Adlib)
  • Monkey Island (Adlib/MT32/Mouse)
  • Space Quest 3 (Adlib/Mouse)
  • Space Quest 4 (Adlib/MT32/Mouse)
  • Lotus 3 (Adlib)
  • Lemmings (Adlib/Mouse)
  • Eye of the Beholder I & II (Adlib/Mouse)
  • Indiana Jones and the Fate of Atlantis (Adlib/MT32/Mouse)

Planned

  • General MIDI
  • MPU-401 support
  • Sound Blaster AWE32 wavetable support
  • Standard ATA at ports 1f0h-1f7h
  • Compatibility improvements
  • Boot ROM in the FPGA so hacked VGABIOS isn't required
  • VGA output

Used resources

  • Harddisk: ports 170h-171h
  • SoundBlaster: ports 22ah-22eh corresponding ot base address of 220h, IRQ 7 and DMA 1
  • MT32: 330h-331h
  • Gravis Ultrasound: ports 341h-347h corresponding to base address of 240h
  • Adlib: ports 388h-389h (standard)
  • Mouse: port 3f8h and IRQ 4 (COM1)
  • Bootcode for custom int 13h resides in hacked VGABIOS at the end of C0000-C7FFF memory region

Further explanation

  • Outgoing port operations are transferred from the FPGA to the Raspberry Pi GPIO using dedicated unidirectional 8-bit data bus
  • Incoming data from the Raspberry Pi GPIO (PCM, harddisk, mouse) is transferred using dedicated unidirectional 8-bit data bus
  • Raspberry Pi: CPU0 handles hdd flushing and mouse, CPU1 handles GPIO transfers, CPU2 handles Adlib, Gravis Ultrasound and MT32 (software selected)
  • Raspberry Pi operates with CPU1-CPU3 in isolated mode, all CPUs run at constant 1 GHz and sched_rt_runtime_us is -1
  • Raspberry Pi generates sound data 64 samples at a time (16-bit stereo corresponds to 256 bytes it must transfer every 1.45ms or so)
  • SPDIF is running in 24-bit 44100 Hz Stereo
  • Hardcoded harddisk type is CHS 256/16/63, i.e. approx. 126MiB

Plan for the next PCB

  • ICE40HX8K-CT256 (FPGA) seems to be available at Mouser
  • IS61WV102416FBLL-10TLI (2 MByte SRAM) seem to be available at Mouser
  • Created KiCAD project (PCB_v2)

Parts

3
QtyValueFootprintReferences
1Bus_ISA_16bitConnector_PCBEdge:BUS_ATJ1
1ICE40HX8K-CT256SamacSys_Parts:BGA256C80P16X16_1400X1400X170IC1
1IS61WV102416FBLL-10TLISamacSys_Parts:SOP50P2000X120-48NIC2

More from eigenco/frankenpi

3
  • 2 layers104.1 × 71.1 mmMinifp, the printed circuit board in 3D

    Minifp

    eigenco/frankenpi

    This is an experimental project to connect Raspberry Pi with the help of cheap Cyclone IV FPGA board to 8-bit ISA bus to act as multiple different devices.

    69 parts139
  • 2 layers104.1 × 71.1 mmMinifp, the printed circuit board in 3D

    Minifp

    eigenco/frankenpi

    This is an experimental project to connect Raspberry Pi with the help of cheap Cyclone IV FPGA board to 8-bit ISA bus to act as multiple different devices.

    49 parts139
  • 2 layers102.8 × 73.8 mmCPU, the printed circuit board in 3D

    CPU

    eigenco/frankenpi

    This is an experimental project to connect Raspberry Pi with the help of cheap Cyclone IV FPGA board to 8-bit ISA bus to act as multiple different devices.

    18 parts139

Similar boards

  • 4 layers100 × 100 mmGfxVGA, the printed circuit board in 3D

    GfxVGA

    ddraig68k/hardware

    Schematic and CAD files for my 68K based computer

    97 parts29MIT
  • 4 layers140 × 140 mmFpgaboard, the printed circuit board in 3D

    Fpgaboard

    msinger/gbreveng

    Stuff for Gameboy reverse engineering and some documentation

    342 parts6
  • 6 layers100 × 62 mmVanilla ice40-8k, the printed circuit board in 3D

    Vanilla ice40-8k

    pbozeman/vanilla-ice40

    Hardware design and verilog sample files for Lattice ICE40 development boards and expansion boards.

    134 parts6MIT
  • 6 layers100 × 100 mmIcenes, the printed circuit board in 3D

    Icenes

    PJO83/icenes

    ICENES

    203 parts3MIT
  • 2 layers40 × 30 mmBlinky, the printed circuit board in 3D

    Blinky

    earthtojake/text-to-cad

    Design physical products with AI

    3 parts26kMIT
  • 2 layers51.9 × 16 mmPassive2-rpi non standard adapter, the printed circuit board in 3D

    Passive2-rpi non standard adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    3 parts4.4kGPL-2.0
  • 2 layers16.3 × 16.3 mmSensor, the printed circuit board in 3D

    Sensor

    scottbez1/splitflap

    DIY split-flap display

    3 parts4.2k
  • 2 layersSub, the printed circuit board in 3D

    Sub

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    3 parts4kMIT

Questions

What parts does the FPGA use?

3 parts, built around the ICE40HX8K-CT256 and IS61WV102416FBLL-10TLI. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the FPGA KiCad files?

From the eigenco/frankenpi repository on GitHub, at the commit this page was made from: the board is PCB_v2/FPGA.kicad_pcb and its schematic KiCad/CPU.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the FPGA design in my own project?

Its repository states no licence, so its author keeps all rights: ask eigenco before reusing the design.