URL
https://opencores.org/ocsvn/apbi2c/apbi2c/trunk
[/] [apbi2c/] [trunk/] [rtl/] [module_i2c.v] - Diff between revs 23 and 24
Show entire file |
Details |
Blame |
View Log
Rev 23 |
Rev 24 |
Line 1128... |
Line 1128... |
if(count_send_data < DATA_CONFIG_REG[13:2])
|
if(count_send_data < DATA_CONFIG_REG[13:2])
|
begin
|
begin
|
count_send_data <= count_send_data + 12'd1;
|
count_send_data <= count_send_data + 12'd1;
|
SDA_OUT<=fifo_tx_data_out[9:9];
|
SDA_OUT<=fifo_tx_data_out[9:9];
|
|
|
if(count_receive_data < DATA_CONFIG_REG[13:2]/12'd4)
|
if(count_send_data < DATA_CONFIG_REG[13:2]/12'd4)
|
begin
|
begin
|
BR_CLK_O <= 1'b0;
|
BR_CLK_O <= 1'b0;
|
end
|
end
|
else if(count_send_data >= DATA_CONFIG_REG[13:2]/12'd4 && count_send_data < (DATA_CONFIG_REG[13:2]-(DATA_CONFIG_REG[13:2]/12'd4))-12'd1)
|
else if(count_send_data >= DATA_CONFIG_REG[13:2]/12'd4 && count_send_data < (DATA_CONFIG_REG[13:2]-(DATA_CONFIG_REG[13:2]/12'd4))-12'd1)
|
begin
|
begin
|
Line 1667... |
Line 1667... |
if(count_send_data < DATA_CONFIG_REG[13:2])
|
if(count_send_data < DATA_CONFIG_REG[13:2])
|
begin
|
begin
|
count_send_data <= count_send_data + 12'd1;
|
count_send_data <= count_send_data + 12'd1;
|
SDA_OUT<=fifo_tx_data_out[26:26];
|
SDA_OUT<=fifo_tx_data_out[26:26];
|
|
|
if(count_receive_data < DATA_CONFIG_REG[13:2]/12'd4)
|
if(count_send_data < DATA_CONFIG_REG[13:2]/12'd4)
|
begin
|
begin
|
BR_CLK_O <= 1'b0;
|
BR_CLK_O <= 1'b0;
|
end
|
end
|
else if(count_send_data >= DATA_CONFIG_REG[13:2]/12'd4 && count_send_data < (DATA_CONFIG_REG[13:2]-(DATA_CONFIG_REG[13:2]/12'd4))-12'd1)
|
else if(count_send_data >= DATA_CONFIG_REG[13:2]/12'd4 && count_send_data < (DATA_CONFIG_REG[13:2]-(DATA_CONFIG_REG[13:2]/12'd4))-12'd1)
|
begin
|
begin
|
Line 1911... |
Line 1911... |
//THIS BLOCK MUST BE CHECKED WITH CARE
|
//THIS BLOCK MUST BE CHECKED WITH CARE
|
NACK:// MORE A RESTART
|
NACK:// MORE A RESTART
|
begin
|
begin
|
fifo_tx_rd_en <= 1'b0;
|
fifo_tx_rd_en <= 1'b0;
|
|
|
if(count_send_data < DATA_CONFIG_REG[13:2]*2'd2)
|
if(count_send_data < DATA_CONFIG_REG[13:2]*2'd3)
|
begin
|
begin
|
count_send_data <= count_send_data + 12'd1;
|
count_send_data <= count_send_data + 12'd1;
|
|
|
if(count_receive_data < DATA_CONFIG_REG[13:2]/12'd2)
|
if(count_receive_data < DATA_CONFIG_REG[13:2]/12'd2)
|
begin
|
begin
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.