这个i2c接口是经过优化和验证的,接口简单! module i2c_master ( input wire clk, input wire rst, //ctrl inf. output wire rdy, input wire rwen, input wire rw, //0-read,1-write input wire[6:0] slave_addr, input wire[7:0] byte_addr, input wire[7:0] data_wr, output wire[7:0] data_rd, //I2C interface