6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 8:41 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 2:01 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
The fastest through-hole EEPROM I can find is 70ns and 128K. At least from Mouser.

The popular AT28C256 (32K) runs at a whopping 150ns. At a 1MHz clock, that gives you 500ns of half-cycle time and minus some (fast) glue logic propagation, you're OK.

But what are you guys using that are running 4 MHz, or 8 MHz or even 20! MHz?

Are you generating wait-states or do you know of some super fast ROM I don't know about?

I guess SMD would open the doors to faster components. I presume that's what you're using for faster clocks?

I'm really wondering if it would be easier to get some 12ns SRAM and just load it at startup with a micro-controller..then mark it read-only if I needed to.

Thanks

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 4:49 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8481
Location: Midwestern USA
cbmeeks wrote:
The fastest through-hole EEPROM I can find is 70ns and 128K. At least from Mouser.

70ns seems to be it with EEPROMs. EPROMs are somewhat faster: 55ns for UV-erasable parts like those I used in my POC units, or 45ns for OTP parts, which I've also tried.

Quote:
But what are you guys using that are running 4 MHz, or 8 MHz or even 20! MHz?

I don't use EEPROMs at all, and POC V2 inserts one wait state when ROM or I/O is selected in order to support 20 MHz operation. The highest speed at which I've been able to reliably run with a 55ns EPROM is 12.5 MHz. I did get POC V1.1 to boot at 15 MHz with an OTP ROM, but the SCSI host adapter couldn't keep up.

Quote:
I guess SMD would open the doors to faster components.

Packaging usually doesn't factor into device speed, at least not in the sort of parts we routinely use in our systems.

Quote:
I'm really wondering if it would be easier to get some 12ns SRAM and just load it at startup with a micro-controller..then mark it read-only if I needed to.

You could do the same with an EEPROM. However, it might be a challenge designing a circuit built solely with discrete gates that will run fast enough and have enough logic to know when to wait-state, as well as be able to shadow ROM into RAM. This is where programmable logic makes sense.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 4:54 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
cbmeeks wrote:
I'm really wondering if it would be easier to get some 12ns SRAM and just load it at startup with a micro-controller..then mark it read-only if I needed to.

Or use an SRAM, a small (E)EPROM, and a serial flash. Program the EPROM with a bootloader that reads the serial flash and copies it to SRAM.


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 4:57 pm 
Offline

Joined: Mon Aug 05, 2013 10:43 pm
Posts: 258
Location: Southampton, UK
BigDumbDinosaur wrote:
You could do the same with an EEPROM. However, it might be a challenge designing a circuit built solely with discrete gates that will run fast enough and have enough logic to know when to wait-state, as well as be able to shadow ROM into RAM. This is where programmable logic makes sense.


Sorry if I'm miss-understanding, but couldn't you just copy the ROM to RAM using the CPU? There'd be a small penalty at startup while the system wait-stated through the ROM reads, but it sounds much simpler then using a MCU.

_________________
8 bit fun and games: https://www.aslak.net/


Last edited by Aslak3 on Thu Jan 19, 2017 7:45 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 7:01 pm 
Offline

Joined: Sat Jan 02, 2016 10:22 am
Posts: 197
I tend to use flash rather than eeprom for larger roms.

Microchip's SST39 range go up to 512k x 8 and are nominally 70ns, but seem to be quite reliable at 14.3mhz attached to one of WDC's 65C02's with a 7.5ns PLD doing select logic.

Rated even faster, RS apparently have some 55ns Amic A29010A in stock.

Both are available in 5v 32pin DIP for easy prototyping.


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 7:15 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8539
Location: Southern California
Arlet wrote:
cbmeeks wrote:
I'm really wondering if it would be easier to get some 12ns SRAM and just load it at startup with a micro-controller..then mark it read-only if I needed to.

Or use an SRAM, a small (E)EPROM, and a serial flash. Program the EPROM with a bootloader that reads the serial flash and copies it to SRAM.

This is a design I'm working on at the moment, using a PIC to pre-load the RAM from a tiny (half-postage-stamp-sized) I2C-6 plug-in serial EEPROM module.  The PIC feeds instructions to the microprocessor, mostly LDA#, STA<absolute> to stuff instructions and vectors into RAM.  It hijacks the data bus and Φ2 for the process, then gives the processor a reset and lets it boot from the now-resident code.  The amount of extra parts required on the CPU board is very minor, and doesn't slow it down.

I envision that it could do more than that, but I haven't gotten far enough to develop what that might be yet.  The initial idea is that it would just load up bootloader code, but it could potentially go way beyond that.  Information in the EEPROM could potentially be more than just beginning-address and instruction information, maybe also having some intelligence like immediate Forth words which do something at compile time.  Again, I have not worked that part out yet.

I have a little board laid out for the job—not that this requires that it be on a separate board, but the next workbench computer I'm building is so complex that I need to modularize as much as possible, and I also need the space it saves on the CPU board it plugs into.  I'll get lots of copies made, so others can use it too.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Thu Jan 19, 2017 10:00 pm 
Offline
User avatar

Joined: Thu Jun 23, 2011 2:12 am
Posts: 229
Location: Rancho Cucamonga, California
I think we discussed this before (not too long ago). It shouldn't be too hard to design a circuit for shadowing: put the ROM and RAM in the same address space and add some glue logic to control the Output Enable line of the ROM, and the Output Enable and Write Enable of the RAM.

Example 1: When the system is reset, it runs at 1MHz (or whatever speed that's slow enough for the ROM to keep up, or a circuit is used to generate wait cycles with RDY). Some circuitry enables the Write Enable of the RAM chip (let's call it RAMWE) at the same time as the Output Enable of the ROM chip (say ROMOE) so that whatever is read from the ROM is copied to the RAM. The boot code just has to do a quick loop to read all addresses of the ROM, and then it has to switch the hardware so that the RAM Output Enable (RAMOE) now gets activated for reads in the ROM address area. For example, the circuitry may be controlled by a Set-Reset flipflop that resets on the system reset signal and sets on an output of the address decoder that will never get activated while the shadowing loop executes. Then the boot code does a dummy read from the "magic" memory area and the SR flipflop is set, which also speeds up the CPU. The hard part of a circuit like this is probably that you need to make sure the RAM gets disabled before the ROM, so that the ROM doesn't take the data off the address bus before the write is complete.

Example 2: When the system is reset, it runs at a slower speed or generates wait states with RDY, and the address decoder enables the ROM for the ROM address area when the CPU reads from that area. When the CPU writes to the area, the RAM is activated. This way, there is no timing "gotcha" because the data has to be copied from ROM to RAM by the CPU. The boot code loops through the ROM but after reading each byte, it writes it back to the same location (which activates the RAM and stores the data into it). Then using a similar trick with the address decoder as mentioned above, the circuit state gets changed to enable the RAMOE instead of the ROMOE when reading from the ROM area (and the CPU can be sped up).

The second example will require more circuitry but has some interesting advantages. For example the ROM area is now a RAM area so you can implement some sort of way to patch the ROM code on startup (e.g. test if an input pin somewhere is held low, and if so, download updated firmware from the serial port). You can add more circuitry to let the system write its own EEPROM by copying from the RAM, once it's satisfied that the downloaded code is legitimate (or once you, the user/programmer are satisfied that the updated firmware works correctly).

If you want to protect the RAM from being overwritten once the system is up and running, you can also do so by disabling the RAMWE line once the ROM has been copied of course.

===Jac


Top
 Profile  
Reply with quote  
 Post subject: Re: Fast EEPROM?
PostPosted: Fri Jan 20, 2017 3:15 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8481
Location: Midwestern USA
Aslak3 wrote:
Sorry if I'm miss-understanding, but couldn't you just copy the ROM to RAM using the CPU? There'd be a small penalty at startup while the system wait-stated through the ROM reads, but it sounds much simpler then using a MCU.

I agree, and in fact, the BIOS for POC V2 will do exactly that, shadowing the $00E000-$00FFFF ROM range (HIROM) into underlying RAM. The 65C816's MVN instruction is tailor-made for the purpose. The glue logic is such that a write to a ROM location automatically "bleeds through" to underlying RAM at the same address. I also have the logic rigged up so HIROM can be write-protected after shadowing. So the process will be to copy, write-protect and then map out HIROM.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: John West, W3C [Validator] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: