Project

General

Profile

« Previous | Next » 

Revision 1456

Added by markw 8 months ago

Only reset serial port on initmode (thanks for detailed bug report to phaeron). This needs testing against real pokey on the harness when I get time, but applying the simple implementation for now.

View differences:

pokey.vhdl
serout_holding_load <= '0';
serout_holding_next <= serout_holding_reg;
serial_reset <= '0';
skrest_write <= '0';
potgo_write <= '0';
......
if (addr_decoded(15) = '1') then --SKCTL
skctl_next <= data_in;
if (data_in(6 downto 4)="000") then
serial_reset <= '1';
end if;
end if;
end if;
......
-- Instantiate pokey noise circuits (lfsr)
initmode <= skctl_next(1) nor skctl_next(0);
serial_reset <= initmode;
poly_17_19_lfsr : pokey_poly_17_9
port map(clk=>clk,reset_n=>reset_n,init=>initmode,enable=>enable_179,select_9_17=>audctl_delayed_reg(7),bit_out=>noise_large,rand_out=>rand_out);

Also available in: Unified diff