Skip to content
systemcoding.dev

Tag

verilog

17 posts

Flat illustration of logic gates wired into a small circuit, with the Haskell, KiCad and SparkFun logos.
Hardware

Write an I2C Master State Machine in Verilog

Build an I2C master in Verilog that writes one byte to a 7-bit address with quarter-bit timing, open-drain lines and ACK checking, tested against a slave model.

9 min read
Flat illustration of logic gates wired into a small circuit, with the Python, Haskell and SparkFun logos.
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