RISC-V in OCaml

Posted on November 21, 2026 / Tags: , , , ,

Table of contents


I prepared a five-minute lightning talk for RTL Meetup (19) in Tokyo on November 21, 2026. The slides are below.

The talk introduces takibi-hardware, a RISC-V SoC written in HardCaml, an RTL design library embedded in OCaml. The SoC now boots Linux 6.18 with SMP on a Colorlight i9 FPGA board.

My main interest is how many hardware defects we can catch before programming the FPGA.

I explain our verification workflow, from OCaml type checking and formal verification to cycle simulation, synthesis, timing analysis, and testing on real hardware. So far, 32 of 51 recorded defects were first detected in the early verification stages. However, these results also include defects in testbenches and tools, not just RTL. Most of the code is written by AI coding agents, making automated verification especially important.

I would appreciate feedback from experienced FPGA and ASIC engineers on the gaps in our verification workflow.