Simulating Partial Reconfiguration in cocotb via Multi-Process DPI Barriers (Chaitanya Sharma) @FOSSiFoundation
Simulating Partial Reconfiguration in cocotb via Multi-Process DPI Barriers (Chaitanya Sharma)  @FOSSiFoundation
Uploaded May 2026 | Updated September 2026, 2 weeks ago
Modern FPGAs can swap out a hardware module at runtime while the rest of the chip keeps running, this is partial reconfiguration. But when you try to verify that behavior in simulation, you hit a wall: Verilator and other simulators compile the entire design into a single binary at elaboration time, and cocotb's runtime assumes the module hierarchy never changes. Today, the only way to test a different module configuration is to recompile and restart the simulation from scratch, making it impossible to verify sequences of runtime swaps without deploying to physical hardware.

We present a multi-process simulation architecture that lets cocotb test arbitrary module swaps mid-simulation without modifying cocotb or Verilator. The key idea is to run each swappable module as an independent simulator process. In the main simulation, the module's slot is filled by an adapter which cocotb sees as a normal module, but under the hood, can shuttle signal values to and from the appropriate reconfigurable module simulator processes over shared memory. A lock-free barrier synchronizes all processes at every clock cycle. Swapping a module is just an OS-level process replacement: kill the old one, start the new one, resume the barrier. cocotb's VPI state, Python objects, and test flow are completely undisturbed.
Simulating Partial Reconfiguration in cocotb via Multi-Process DPI Barriers (Chaitanya Sharma)From Tapeouts to Products: Why Open-Source Silicon Must Solve Real Problems to Survive (M. Kassem)Vaporview - 2026 updates (Lloyd Ramseyer)Panamax FPGA - An Open Source FPGA on SKY130 (Leo Moser)Five years of Spade - A modern Hardware description language (Frans Skarman)Open-source Hardware for Real-Time Applications - Francisco Wilken (Latch-Up 2023)Substrate: Designing Highly Configurable Analog and Mixed-Signal Circuit Generators (Rahul Kumar)Shaping Tomorrow’s Chip Designers: Open-Source Initiatives at IHP (C. Wittke, J. Wallenborn)Wildcat: Educational RISC-V Microprocessors (Martin Schoeberl)From Open PDKs to Silicon: Progress at IHP (Frank Vater)Chipyard: An Open-Source RISC-V SoC Design Framework - Abraham Gonzalez (Latch-Up 2023)OpenROAD and the Era of Agents (Andrew Kahng)
FOSSi Foundation |

Simulating Partial Reconfiguration in cocotb via Multi-Process DPI Barriers (Chaitanya Sharma)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER