Skip to content

Commit

Permalink
[rtl] use past SDA in twd FSM transition
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasP46 committed Jan 21, 2025
1 parent 02d7b6b commit 78b2703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/core/neorv32_twd.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ begin
if (ctrl.enable = '0') or (smp.stop = '1') then -- disabled or stop-condition
engine.state <= S_IDLE;
elsif (smp.scl_fall = '1') then -- end of this time slot
if (engine.cmd = '0') or ((engine.cmd = '1') and (smp.sda = '0')) then -- WRITE or READ with ACK
if (engine.cmd = '0') or ((engine.cmd = '1') and (smp.sda_sreg(2) = '0')) then -- WRITE or READ with ACK (read sda "from the past")
engine.state <= S_RTX;
end if;
end if;
Expand Down

0 comments on commit 78b2703

Please sign in to comment.