I have been thinking about speeding things up on my 6502 by copying the ROM to RAM at boot. I'm going to be using a CPLD for the glue logic so presumably this should make it easy
My plan is to have the ROM and RAM mapped to the same range (E000-FFFF) but have the RAM only selected for writes
Once the copy is done I will disable the ROM completely and enable reads from the RAM
The writing part is easy since I can have the address decoder select both the ram and rom at the same time. since the ROMs /WE is tied high it won't do anything with the writes
For reads though would I probably need to gate the ram's /CS so that it is only selected when either RW = 0 or the ROM is disabled by the CPLD i.e something like
Code: Select all
RAM2CS <= '0' WHEN (((to_integer(addr (15 downto 8) >= 16#E0#) AND (ROMEN = '0' OR RWB = '0'))
Will RWB be valid before PHI2 rises?
The RAM I'm using is Cypress CY7C199CN 15NS and my CPU will be running at 5MHz