Inside a Ferroelectric RAM Chip
righto.com
righto.com
A lot of folks have replaced battery backed SRAM with FRAM on game consoles.
Instead of turning off the computer and hibernating, you just turn off the LCD backlight and the IO.
But to your point, simply copying the processor state to a known location in FRAM (0xFFFFFFF0) and having the start routine read state from that location seem like a very low overhead solution to the problem.
How long would it really take to do something your computer does as part of preemptive multi-tasking? Nanoseconds? Milliseconds? We are talking about $order(hundred) of instructions
Essentially, this scheme has all the major complications of resuming from sleep/hibernation in practice.
Note that the present-day IBM i née AS/400 is a direct descendent of the System/38.
References:
https://en.wikipedia.org/wiki/Single-level_store
https://dl.acm.org/doi/pdf/10.1145/363095.363139
http://bitsavers.org/pdf/ibm/system38/G580-0237-1_IBM_System...
https://archive.org/details/insideas4000000solt/page/171/mod...
Reading from memory is already destructive in DRAM (capacitor gets discharged), magnetic core memory (need to alter the magnetization state to read out how much energy was needed), and probably other technologies as well.
I want someone to incorporate these into their hardware wallet products. Would also be very cool for high endurance data storage. I understand we are talking about kilobytes of storage but still they have very small packaging anyway, just use them (the SPI bus FRAM products) by the dozens.
I have several working bubble memory boards. You can't take them apart. :-)
The (in retrospect) strange and complicated things people came up with to store bits before magnetic core got popular and then later silicon wiped the field are so much more interesting than what we’ve got now.
I get why silicon won. But it’s just nowhere near as fun as bubble memory, delay lines, or CRTs.
And I know DRAM isn’t exactly simple.
But it just doesn’t feel as neat to me as pushing bubbles around or using a transducer to put a wave through mercury or other delay line. Or drawing a “picture of memory” for no one on a CRT because that _is_ your memory.
If one of those had won and was what everyone was used to, I’m probably think they were old hat and DRAM was crazy and cool. But that’s not how history worked out.
also, the atom that can substitute for zirconium in that central position is not lead but titanium. you do explain this in the following sentence, but first you say 'causes the lead or [zirconium] atom to physically move', which is wrong
But 512KB of FRAM at $3 per megabit would make that pricier than the machine! So I wonder what it has in it instead.
Interesting! Thanks :)
Link: https://bitsavers.org/pdf/dec/semiconductor/arm/EC-QU5KA-TE_...
I’m thinking of keeping an LLM’s weights in a storage RAM, where it would be updated only every few months.
Any idea what the process issue is? Would you say FRAM is on the decline? Super low powered CMOS ram used to also be a thing, but I haven't seen that in a while either.
Added: article mentions flash memory is $15/gbit. I guess that is NOR flash? NAND is way way cheaper, more like $15/terabit.
Another question: is it reasonable to say that FRAM automatically implements secure erasure? Like if you overwrite a cell, can you be sure that the old contents are gone? With flash, you have to worry about stuff like sector remapping other the covers.
Here's a 4 mbit Adafruit FRAM breakout, out of stock but smaller sizes are available: https://www.adafruit.com/product/4719
TI MSP430FR5969 development board: https://www.ti.com/tool/MSP-EXP430FR5969 That is a fancy MSP430 processor with 64KB of FRAM and 2KB of regular ram. The board is $16. The regular ram is I think a little bit faster than the FRAM and good for "infinite" write cycles instead of mere trillions, so I guess you need both. They have a few more of these boards including one with 128KB of FRAM if I remember right.
I’ve heard that some real fast control systems like to have it as a recovery method to save state in event of major system hiccups.
Added: aha, found the fancier ($20) Launchpad that has 128KB of FRAM and an LCD display:
https://www.ti.com/tool/MSP-EXP430FR6989
This thing was apparently released in 2014. Technology continues to march backwards.
IIRC, it was a common trick with 286 and 386 PCs, because BIOS ROMs were 8-bit wide and shadowing the BIOS in RAM made it much faster.
Maybe I missed it, but what actually makes it wear out? And why does it last so much longer than flash/eeprom?
I don't want that in something that's meant to replace a mask rom.
Great technology as long as no magnetic fields are close to the device.
And they are expensive. I have an external memory card for a vintage portable word processor that the full bom ends up about $100 for 512k to build one, and something like over $30 of that is just the mram.
Everspin claims to be internally shielded for between 25 to 125 gauss depending on the temperature rating and package type (pdf included above).
In my case using the parallel interface and TSOP-II package, the Industrial version is the best and is supposed to resist up to 125 gauss.
And a fridge magnet is around 100 gauss (obviously they vary widely but I found a random chart that placed fridge magnet at 100).
Also magnetic fields drop off with an inverse-cube law so even a small distance drastically weakens the field. So in many applications with a chip inside of some product like a vintage computer, the chip is likely to be at least an inch away from any exterior surface, and often a magnet or coil will also be inside of some other enclosure like a speaker, adding yet more inches of distance. So even the commercial version at only 25 gauss shielding is probably fine in most cases.
In my application above it's a thin card with essentially no distance from the exterior to the chip, so any bare exposed magnets like a fridge magnet, or the pretty strong magnet in the base of a flash light right on my desk here, can easily come to within 1mm from the chip.
If the shielding claims are true then at 125 gauss the card should be ok even with a mild magnet laying right on the card. Setting on top of something like a speaker should be fine since the speaker magnet is suspended in the center of a box. But I still have to generally avoid magnets or electromagnets. Maybe it can stand up to my fridge magnets, but that flashlight is quite a bit stronger.
If you are designing a pcb and can make changes and have room, a common steel rf shield should help a lot as long as it's made of mostly iron or nickel. mu-metal is best but a common plain steel shield should be almost as good since steel is mostly iron. They do sell them in generic form not just custom made: https://www.digikey.com/short/zm42wjmc