Skip to content
Rota Nacional

Radar ·

Mrav: CPU testing with Python and cocotb

Published on December 11, 2025, this walkthrough presents tests for a custom CPU using cocotb, Python scripts, and a class to model RAM.

Published on December 11, 2025, the material describes an approach to testing Mrav, a custom CPU core. The walkthrough uses cocotb and Python scripts to control RTL simulation, as well as a Python class to model RAM.

According to the description, Python tests exercise the CPU simulation without requiring Verilog testbenches or a RAM controller. To check the procedures and results, consult the original material and compare its instructions with the configuration and simulation output you run.

Get new articles

Privacy, AI engineering and security in your inbox.

Rota Nacional

Bring privacy into your workflow.

30 days, no card, with a starting quota. After that, Pix credit from R$ 5,00.

Try free