
Hardware
Test HDL Designs in Python With cocotb
Write cocotb 1.9 tests in Python for a Verilog counter: drive a Clock, await RisingEdge and ReadOnly, assert outputs and run on Icarus Verilog from a Makefile.
7 min read
Tag
2 posts

Write cocotb 1.9 tests in Python for a Verilog counter: drive a Clock, await RisingEdge and ReadOnly, assert outputs and run on Icarus Verilog from a Makefile.

Blink an LED, read a button and wait for edge events from Python 3.12 with the libgpiod 2.1 gpiod module, using request_lines and LineSettings.