We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ebfc62 commit 79b5482Copy full SHA for 79b5482
src/i2c_master.sv
@@ -130,7 +130,7 @@ begin
130
// transmitter listens for loss of arbitration
131
arbitration_err = MULTI_MASTER && (counter == COUNTER_RECEIVE && transaction_progress >= 4'd2 && transaction_progress < 4'd10 && !latched_mode && sda != latched_data[4'd9 - transaction_progress] && !start_err);
132
133
- transaction_complete = counter == COUNTER_RECEIVE - 1 && transaction_progress == 4'd10 && !start_err && !arbitration_err;
+ transaction_complete = counter == COUNTER_RECEIVE - 2 && transaction_progress == 4'd10 && !start_err && !arbitration_err;
134
// transmitter notes whether ACK/NACK was received
135
// receiver notes whether ACK/NACK was sent
136
// treats a start by another master as as an ACK
0 commit comments