Skip to content

Commit

Permalink
hold cart port reset for 25ms on cold boot #781
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed Feb 18, 2024
1 parent cf2c7a1 commit e63d5d8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vhdl/expansion_port_controller.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ architecture behavioural of expansion_port_controller is

signal ticker : unsigned(16 downto 0) := to_unsigned(0,17);
signal phi2_ticker : integer range 0 to 15 := 0;
signal reset_counter : integer range 0 to 15 := 0;
-- We need to make the initial reset long enough that the cartridge captures
-- it, even if the 5V rail for the cartridge port takes a while to come up.
-- This is only needed on cold reset (i.e., power on). The question is how long
-- we need to make the sequence. The R6 DC:DC converters can take ~12ms, so
-- we will hold reset for about 25ms just to make sure.
signal reset_counter : integer range 0 to 2000000 := 2000000;

-- Are we already servicing a read?
signal cart_read_queued : std_logic := '0';
Expand Down

0 comments on commit e63d5d8

Please sign in to comment.