DW_apb_i2c
2019-05-11 本文已影响0人
简柏舟
一、DUT接口



二、内部模块

AMBA Bus Interface Unit:APB slave 接口
Register File:内有大量寄存器
Slave State Machine:实现slave功能
Master State Machine:实现Master功能
Rx Shift:接收移位寄存器
Tx Shift:发送移位寄存器
Rx Filter:接受、滤波,避免信号线上的毛刺
Synchronizer:同步器(pclk,ic-clk)

①配置寄存器
配成master:发送/接收
配成slave:接收I2Cmaster给的数据;
发送:自己没有数据可法时(Tx fifo为0),将SCL拉低,发送中断信号到外部CPU,CPU从状态寄存器读取后,一一查询,将后将指令写到指令寄存器中。
②写指令:决定是读操作还是写操作。
三、配置寄存器





