1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-04-27 20:58:55 +00:00

C16: C1541 use 1->31 counter for clock gen

This commit is contained in:
Gyorgy Szombathelyi
2018-08-30 18:53:34 +02:00
parent ca9381b440
commit 258c1cea18

View File

@@ -123,8 +123,8 @@ begin
clk_1M_pulse <= '1';
end if;
-- if count = "000100000" then -- DAR divide by 33 (otherwise real c64 miss EOI acknowledge)
if count = "000011110" then -- TH divide by 31
count := (others => '0'); -- DAR
if count = "000011111" then -- TH - C16 MiST: zero after 31, restart from 1
count := (0 => '1', others => '0');
else -- DAR
count := std_logic_vector(unsigned(count) + 1);
end if; -- DAR