CAT Board lets a Raspberry Pi build and load its own FPGA designs

FPGA, Raspberry Pi, hardware

This is the read-only HTML version. For the full Visual Space experience, open the app.

FPGA, Raspberry Pi HAT — Image

FPGA, Raspberry Pi HAT — Image

Source: CAT Board on Hackaday.io · Dave Vandenbout

Open-source FPGA tools

A Pi can do more than send data to an FPGA: it can run the tools that create its logic. Dave Vandenbout’s CAT Board demonstrates that workflow, while its development logs expose two practical limits—software overhead in configuration transfers and the physical realities of fitting connectors onto a HAT.

👍 1

The CAT Board gives a Raspberry Pi an FPGA companion without requiring a separate computer to build its logic. Dave Vandenbout’s project on Hackaday.io pairs a Lattice iCE40HX8K with an open-source toolchain intended to run directly on the Pi. The interesting part is the whole loop: describe a circuit, compile it, and configure the attached FPGA from the same small machine.

This is an older design, with working-board reports in 2016 and a redesign documented through June 11, 2018 in the available logs. Those two phases tell complementary stories: getting programmable logic working is one challenge; making its tools and physical layout easier to use is another.

The Pi builds the logic, not just the interface

The original board specification puts the HX8K in a 256-pin BGA alongside 32 MByte of SDRAM, configuration flash and a 100 MHz oscillator. Grove and PMOD connectors, a larger I/O header, switches, buttons and LEDs provide ways to connect experiments. Two SATA-style connectors were included for differential signals—not as a demonstrated interface to SATA drives.

The software choice is central. In a June 2016 discussion, Vandenbout contrasted CAT Board with his Xilinx-based Pi pairing: he couldn’t run that board’s FPGA programming tools on the Pi. CAT Board instead targeted MyHDL, Yosys, arachne-pnr and IceStorm.

His May 9, 2016 MyHDL walkthrough makes the sequence concrete. A Python-based hardware description generates Verilog; the FPGA tools then turn that into a bitstream, which is loaded onto the board. The example counts clock edges and toggles an LED.

Vandenbout was candid about the extra language layer: for a blinker, MyHDL didn’t make the design more compact or expressive than Verilog. That’s a useful distinction. The demonstration establishes a working route from source code to hardware behavior, not an automatic advantage for every design written in Python.

A faster SPI clock didn’t mean equally fast transfers

Once the board was working reliably, Vandenbout revisited configuration speed. In his September 1, 2016 measurements, he raised the requested hardware SPI rate from an initially conservative 1 Mbps and checked that the LED-blinker bitstream still loaded.

The surprising result wasn’t simply how high the setting could go. It was how little the setting said about sustained throughput. Timing a 10 MByte payload and checking the clock with an oscilloscope showed an effective rate of about 12 Mbps at a requested 100 Mbps.

He traced the gap to the Python SPI module’s handling of 4,096-byte packets. Copying and converting each packet introduced roughly 2.3 milliseconds of dead time before the next transmission. Increasing the wire speed shortened each burst but left that preparation delay in place.

That makes this log more useful than a headline clock-rate claim. It separates the configured rate, the clock observed on the wire and the payload throughput. It also concerns direct FPGA configuration through hardware SPI; Vandenbout separately described programming flash through Python-driven GPIO bit-banging as a slow path.

The redesign turned layout friction into tools

Vandenbout returned to the project on May 2, 2018 with plans to rebuild the circuit description in SKiDL, shrink the power circuitry and SDRAM package, replace the DC jack with micro-USB, swap the SATA connectors for HDMI and add clearance for the Pi camera cable. These were redesign objectives, not a completed revised board.

The SKiDL conversion exposed a distinction between translating a design and making it reusable. An automatic netlist conversion produced a flat list of parts and connections. Vandenbout instead wanted parameterized peripheral modules—for example, an LED block whose number of LEDs and resistors follows the width of its input bus.

By May 28, he had modified SKiDL to preserve hierarchy in the generated netlist and written a PCBNEW plugin to group components accordingly. That kept related parts, such as SDRAM and its bypass capacitors, together during initial placement. The regulator circuits still needed design work.

The June 11 update added PadPainter, a KiCad plugin that highlights candidate pads by electrical function and bank. On a densely pinned FPGA, a nearby pad is only useful if it is also the right kind of pin.

That same update records a connector decision worth remembering. A normal right-angle HDMI connector would clash with the Pi’s USB ports at the proposed location. Vandenbout prototyped a vertical connector footprint and found it worked, but rejected the approach because of limited suppliers and concern about bent pins during assembly. His next plan was a common right-angle connector on the GPIO side, with an SMT GPIO socket to make room.

The CAT Board repository is linked from the project for anyone following the design. The enduring lesson is broader than this particular HAT: measure the whole programming path, preserve circuit relationships as the design moves into layout, and don’t confuse a footprint that fits with a connector that is practical to source and assemble.

Source: CAT Board

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.