There is currently one and only one FPGA vendor in Europe -- CologneChip. Their GateMate device has a somewhat unique feature set for the 20K class, most notably the high-speed SerDes. It is also one of the rare families designed around 2-input LUT trees and muxes, vs. the mainstream microRAM-based LUTs with 4, 5 or 6 address inputs.
Given recent appearances of affordable boards, GateMate challenge at the moment is to get hold of, and grow roots in the open hardware dev community... which is also an opportunity. We are firmly set to help GateMate achieve this goal.How? By pursuing a three-pronged approach:
-
Design the third flavor of the popular open hardware ULX3S->ULX4M sequel ->>> The ULX5M! While LatticeSemi FPGA will on this new board be replaced with GateMate, it will otherwise come in the same popular Raspberry Pi Compute Module 4 (CM4) form-factor. That makes it plug-and-play compatible with a vast asssortment of baseboards, so opening the first and only EU FPGA to a commendable set of existing peripherals and apps.
-
Create and validate a portfolio of well-documented examples that put GateMate resources to good use. Be it by tapping into SystemVerilog or VHDL RTL, HLS design methodologies, demonstrating pure hardware FSM implementations, or HW/SW co-design, utilizing SOC techniques, or possibly even reaching into Amaranth and LiteX build frameworks... the goal is to expand GateMate audience, faciliate silicon adoption, and ultimately have it gain a foothold in the market.
-
Engage with CologneChip developers to resolve issues identified in this course.
The practical execution of this strategy is organized into 3 game levels with 9 play milestones.
Play 1 - Form development team and get to know CologneChip GateMate silicon and dev tools, see our 0.doc folder. Procure Olimex boards and familiarize with hardware platform. Light up onboard LEDs with our very special blinky. It contains Verilog, VHDL and Amaranth versions, as well as an example of how to use CologneChip Internal Logic Analyzer (ILA) for Olimex board. The Makefile and CCF in there are your essential Getting Started Guide, and golden reference to leverage from for your project.
Play 2 - Port to GateMate a selected subset of simpler examples from the ULX3S-MISC portfolio. The goal is to enable a few standard PMODs and peripherals, mostly GPIO-based, including PSRAM/HyperRAM.
Play 3 - To complement the set of peripherals that GateMate can be tested with, as well as design additional PMOD extensions for it.
Play 4 - Port to GateMate a couple of advanced ULX3S examples. Now without restrictions related to PCB development support, we are choosing these examples for their purely FPGA value. We may also modify them, write mutations and variants, looking to find a better fit for GateMate internal architecture, or letting creativity a free hand to play and experiment.
Play 5 - Adapt TetriSaraj HW/SW project to GateMate. This is a serious SOC. Its hardware includes a RISC-V microkontroller, Instruction, and Data RAM, Frame Buffer with Video Subsystem, and high-speed I/O for VGA. On the software side, this is a bare-metal, "free-standing" C that implements the logic of a Tetrisoid gate.
Play 6 - Design and manufacture the ULX5M board.
Play 7 - Develop an advanced example for CologneChip SerDes and its high-speed PLL.
Play 8 - Stress-test the FPGA device and tools, such as to assess silicon Fmax and realistic utilization, injecting routing congestion and pushing the clock distribution network to its limits.
Play 9 - Port the barebones of BetrustedSOC to GateMate, namely its VexRiscv CPU and UART.
This is a stepping stone for our next CologneChip project, perhaps using one of their yet to be released 40K or 80K devices.
For background, BetrustedSOC is currently hosted in a Spartan7 XC7S50 (50K LUT6 device), with 80% utilization (as of October 2022), implemented using proprietary Vivado 2019.2 toolchain, also enjoying a 5K LUT4 Lattice UP5 FPGA on the side for housekeeping tasks. The full BetrustedSOC would indeed be fun to eventually port to GateMate!
- Level I, Play 1 - DONE, includes bonus examples
- 1.Blinky--ILA-Test
- 1.Blinky--Verilog-VHDL-Python.Amaranth
- Level I, Play 2 - DONE, with bonus examples
- 2.Simple--1--PSRAM
- 2.Simple--2--QSPI-Flash, WIP
- 2.Simple--3--Ethernet, WIP
- 2.Simple--4--1Wire-Controller
- 2.Simple--5--UART-Test
- 2.Simple--6--PS2-Keyboard
- 2.Simple--7--Audio-4-bit-DAC
- Level I, Play 3 - WIP
- PCB repo: Design additional PMOD extensions, WIP
- Level II, Play 4 - DONE, a very complex bonus example is in the works
- 4.Advanced--1--SPI-LCD
- 4.Advanced--2--LED64x64
- 4.Advanced--3--FM-Transmitter
- 4.Advanced--4--Yamaha-OPL3-FM-Synth, WIP
- Level II, Play 5 - DONE, now also includes bonus audio player for any soundtrack, in addition to the original video-only game
- 5.TetriSaraj
- Level II, Play 6
- PCB repo: Design and manufacture the ULX5M board
- Level III, Play 7
- 7.SerDes
- Level III, Play 8
- 8.StressTest, WIP
- Level III, Play 9
- 9.BetrustedSOC
- Bonus#1, Play 10, even more examples
- 10.Bonus--1--Amaranth-7Segment, WIP
- 10.Bonus--2--Amaranth-Rotary-Encoder, WIP
- 10.Bonus--3--Amaranth-eduRISC5
- 10.Bonus--4--I2C-Master
- 10.Bonus--5--eduSOC, WIP
- 10.Bonus--6--I2S-DAC
We fell in love with what we were doing and, as makers at heart, could not resist the temptation to keep designing for GateMate. Hence this additional output that was not originally planned for, nor commissioned by NLnet.
Please click on the folder with individual examples for additional detail, documenation and specific instructions.
-
Comps with Gowin, Lattice and Xilinx design flows:
- overall execution speed
- ease of use
- straighforwardness (or not) of the work flow
- completeness of tool suite
- bugs and idiosyncrasies
- ideas for enhancement and automation of the development process
-
Comps with Gowin, Lattice and Xilinx silicon in the 20K LUT category
- Fmax
- utilization metrics
- practically achievable design sizes in LUTs and FFs, i.e. the overall efficiency of GateMate architecture
-
Misc.
- help prepare demos and marketing material for trade shows
While doing our best to fulfill these special requests that are outside the NLnet task list, we'd better plan for a follow up project for other CologneChip needs that are emerging through this work.
For example, we've already established that TetriSaraj (PicoSOC with PicoRV32) can on GateMate barely run at 31MHz
in its high Voltage setting -om 3, -tm 3
, see this issue. On the other hand, the lowest speed-grade Artix7 (xc7a35tcpg236-1) had no problem with 100MHz+
. Moreover, this is not even an apples-to-apples comparison since, to make GateMate go over 25MHz (which is the absolute minimum for our VGA video sub-system), we had to strip the PicoSOC down to barebones, i.e. take out its features that were not critical for TetriSaraj. Without that, the original GateMate Fmax for the 100% identical RTL was on the order of 16MHz
.
Similarly, we found that GateMate timing reporting was sub-standard, its constraints-driven property questionable, SystemVerilog support not built-in, simulation models and Verilator compatibility lacking.
Most importantly, the GateMate proprietary P_R tool has repeatedly proved to be erroneous and unreliable
, see issues #30 and #25. For the complete account, please review all discussions and issues we've raised, both open and closed.
The good news is that, just as our project is uncovering issues, so is CologneChip addressing them... to slowly, step by step, turn GateMate tools and silicon into an FPGA platform that's actually useable in the real-life designs.
We are proud to have initiated GateMate enablement in opensource Amaranth and PipelineC dev frameworks. This project has also introduced GateMate to Source Code Linting for not only style, format, syntax and semantics, but also the CDC, a topic that is admittedly insufficiently covered by opensource chip design movement in general.
We welcome everyone interested to contribute. Please reach out to fpga@chili-chips.com, or join our GateMate Discord Channel.
We are grateful to:
- NLnet Foundation's sponsorship for this opportunity to put our hand and brains on GateMate.
- Intergalaktik doo for their unreserved sharing of the first-hand insights into open-source community vibe, participation on the project, and openess to our wish to play a part in the ULX* unabated evolution.