Rutherther / vhdl-i2c

I2C master and slave implementation in VHDL
1 stars 0 forks source link

Behavioral models for i2c master, slave #12

Open Rutherther opened 9 months ago

Rutherther commented 9 months ago

Resolves #8.

Adds i2c_bus_mod entity with a package i2c_bus_pkg. The model acts as both a monitor and generator. It supports operations such as waiting for a start or stop conditions, waiting for clocks, for data, checking the data etc.

Packages i2c_master_pkg and i2c_slave_pkg are added for master and slave operations operating on the i2c_bus_mod.

The recommended way to use the bus mod is to use one instance per master or slave, and additionally, another instance for additional monitoring purposes, such as waiting for x clocks, and then checking something on the dut.