Skip to content

Commit

Permalink
fix bug in refactor #781
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed Feb 17, 2024
1 parent 75131f7 commit 42e195f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/vhdl/expansion_port_controller.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ begin
cart_access_accept_strobe <= '0';
else
-- Tick dot clock
report "dotclock tick";
if cart_read_in_progress='1' then
report "dotclock tick during READ";
end if;
if cart_write_in_progress='1' then
report "dotclock tick during WRITE";
end if;

-- Each phi2_ticker increment is 1/16th of a 1MHz clock cycle,
-- so about 64ns.
Expand Down Expand Up @@ -366,7 +371,10 @@ begin
end if;
-- Writes don't get finished until the next tick,
-- when we release all the lines, after having first
-- conformed to the required T_HT of the 6502 bus (>60ns)
-- conformed to the required T_HT of the 6502 bus (>60ns).
-- But we mark the write complete now, so that back-to-back
-- writes can be scheduled with max timing margin
cart_write_in_progress <= '0';
when 1 | 2 =>
-- Release key bus lines after a short hold time, and start any new
-- access we have under way, but only if we don't already have an
Expand Down

0 comments on commit 42e195f

Please sign in to comment.