How alexforencich/verilog-i2c works
This repository provides Verilog I²C interface components. The principal workflows are peripheral initialization and I²C master or slave communication through stream, AXI Lite, or Wishbone interfaces. The README documents these capabilities but does not establish calls between the RTL modules, so the graph shows interface relationships without inventing an internal pipeline. Testbench endpoint and bus-model utilities are included as a separate support branch; their use by individual tests is not shown in the excerpts.
Main entry points: i2c_master.v I²C Master · i2c_slave.v I²C Slave · i2c_init.v Peripheral Init · i2c_master_axil.v Master AXI Lite
Components 16
I²C Core
- Peripheral Init
rtl/i2c_init.v - I²C Master
rtl/i2c_master.v - Single Register
rtl/i2c_single_reg.v - AXI Stream FIFO
rtl/axis_fifo.v - I²C Slave
rtl/i2c_slave.v
Master Interfaces
- Master AXI Lite
rtl/i2c_master_axil.v - Master WB 8-bit
rtl/i2c_master_wbs_8.v - Master WB 16-bit
rtl/i2c_master_wbs_16.v
Slave Interfaces
- Slave AXI Lite
rtl/i2c_slave_axil_master.v - Slave Wishbone
rtl/i2c_slave_wbm.v
Testbench Utilities
- AXI Lite BFM
tb/axil.py - AXI Stream Endpoints
tb/axis_ep.py - I²C Bus Models
tb/i2c.py - Wishbone BFM
tb/wb.py
Other components
- Control Logic
- I²C Bus
Connections 10
- Control Logic → Peripheral Init: initializes via
README - Control Logic → I²C Master: controls via
README - I²C Master → I²C Bus: drives
README - Control Logic → Master AXI Lite: controls via
README - Control Logic → Master WB 8-bit: controls via
README - Control Logic → Master WB 16-bit: controls via
README - I²C Slave → I²C Bus: communicates on
README - Control Logic → I²C Slave: controls via
README - Control Logic → Slave AXI Lite: interfaces via
README - Control Logic → Slave Wishbone: interfaces via
README