Project

General

Profile

« Previous | Next » 

Revision 1481

Added by markw 13 days ago

Disable dump transistors in fast pot scan mode. When counter is E4 reset allpot_next (it was overwritten because pot_reset_reg is 0).

View differences:

pokey.vhdl
if (((enable_15 and not(skctl_reg(2))) or (enable_179 and skctl_reg(2))) = '1') then
pot_counter_next <= std_logic_vector(unsigned(pot_counter_reg) + 1);
if (pot_counter_reg = X"E4") then
pot_reset_next <= '1'; -- turn on pot dump transistors
allpot_next <= (others=>'0');
end if;
if (pot_reset_reg = '0') then
if (pot_in(0) = '0') then -- pot now high, latch
......
allpot_next <= allpot_reg and not(pot_in);
end if;
if (pot_counter_reg = X"E4") then
pot_reset_next <= '1'; -- turn on pot dump transistors
allpot_next <= (others=>'0');
end if;
end if;
if (potgo_write = '1') then
......
sio_clockin_oe <= not(clock_input);
sio_clockin_out <= serin_clock_reg;
pot_reset <= pot_reset_reg;
pot_reset <= pot_reset_reg and not(skctl_reg(2));
END vhdl;

Also available in: Unified diff