完成SCCB协议共有3个模块
第一模块TIMING_control
输入输出接口连接
//global clock
.clk (clk_ref), //100MHz
.rst_n (sys_rst_n), //system reset
//i2c interface
.i2c_sclk (cmos_sclk), //i2c clock
.i2c_sdat (cmos_sdat), //i2c data for bidirection
//i2c config data
.i2c_config_index (i2c_config_index), //i2c config reg index, read 2 reg and write xx reg
.i2c_config_data ({8'h42, i2c_config_data}), //i2c config data
.i2c_config_size (i2c_config_size), //i2c config data counte