i2c_pkg
Hold I2C shared parameters, FIFO widths, and AXI-Lite typedefs.
Defines controller and target FIFO data widths, the ACQ FIFO entry identifiers, timeout mode, read/write and ACK/NACK encodings, and the axil_req_t / axil_resp_t used by i2c.
reg_addr_t
Alias for logic [RegAddrWidth-1:0]
reg_data_t
Alias for logic [RegDataWidth-1:0]
reg_strb_t
Alias for logic [RegStrbWidth-1:0]
axil_aw_chan_t
Packed struct
| Field | Type | Description |
|---|---|---|
addr | reg_addr_t | |
prot | axi_pkg::prot_t |
axil_w_chan_t
Packed struct
| Field | Type | Description |
|---|---|---|
data | reg_data_t | |
strb | reg_strb_t |
axil_b_chan_t
Packed struct
| Field | Type | Description |
|---|---|---|
resp | axi_pkg::resp_t |
axil_ar_chan_t
Packed struct
| Field | Type | Description |
|---|---|---|
addr | reg_addr_t | |
prot | axi_pkg::prot_t |
axil_r_chan_t
Packed struct
| Field | Type | Description |
|---|---|---|
data | reg_data_t | |
resp | axi_pkg::resp_t |
axil_req_t
Packed struct
| Field | Type | Description |
|---|---|---|
aw | axil_aw_chan_t | |
aw_valid | logic | |
w | axil_w_chan_t | |
w_valid | logic | |
b_ready | logic | |
ar | axil_ar_chan_t | |
ar_valid | logic | |
r_ready | logic |
axil_resp_t
Packed struct
| Field | Type | Description |
|---|---|---|
aw_ready | logic | |
w_ready | logic | |
b | axil_b_chan_t | |
b_valid | logic | |
ar_ready | logic | |
r | axil_r_chan_t | |
r_valid | logic |
i2c_acq_byte_id_e
add more values to this enum without having to widen the ACQ FIFO width.
Enum (logic [I2C_ACQ_BYTE_ID_WIDTH-1:0])
| Value | Number | Description |
|---|---|---|
ACQ_DATA | 3'b000 | |
ACQ_START | 3'b001 | |
ACQ_STOP | 3'b010 | |
ACQ_RESTART | 3'b011 | ACQ_NACK means one of two things: |
ACQ_NACK | 3'b100 | ACQ_NACK_START means that we were addressed on this item, but we timed |
ACQ_NACK_START | 3'b101 | ACQ_NACK_STOP means that we were addressed during the transaction, but we |
ACQ_NACK_STOP | 3'b110 |
i2c_timeout_mode_e
Enum (logic)
| Value | Number | Description |
|---|---|---|
STRETCH_TIMEOUT_MODE | 1'b0 | |
BUS_TIMEOUT_MODE | 1'b1 |
rw_e
Enum (bit)
| Value | Number | Description |
|---|---|---|
WRITE | 1'b0 | |
READ | 1'b1 |
acknack_e
Enum (bit)
| Value | Number | Description |
|---|---|---|
ACK | 1'b0 | |
NACK | 1'b1 |