feature article
Subscribe Now

Like Flash, But Different

As status symbols go, memory chips are about as low as you can get. Even in the nerdy world of embedded chips and software, memories are low on sex appeal, low on differentiation, and low on most designers’ list of interesting devices. They are, in a word, generic.

So what’s new and exciting in the world of embedded memories? Uh… nothing, really. But that doesn’t mean it’s not worthwhile reexamining your assumptions about memory and memory types. There’s a decades-old memory technology that perhaps has been overlooked for too long.

We’re talking here about FRAMs, specifically the ferroelectric RAM chips made by Ramtron International Corporation. Ramtron has been making FRAMs for longer than some of us have been out of diapers. Even if the technology’s not exactly new, it’s still interesting and terrifically useful for a subset of embedded developers.

A Little Knowledge…

If a little knowledge is a dangerous thing, then most designers are downright hazardous when it comes to FRAMs. Few engineers know what they are or how they work. Or care much, for that matter. So here’s a primer.

FRAMs are nonvolatile memories, like flash or EPROM. They have nothing in common with MRAM (made by EverSpin, once part of Freescale). They’re electrically erasable like flash or E2PROMs but are faster than either. Unlike flash and other “floating-gate” technologies, FRAMs store data by capitalizing on a crystalline structure inside the chip. The memory array is made up of rows of crystals (it’s lead zirconate titanate, or Pb(Zr,Ti)O3 if you’re into that kind of thing). The central ZrTi atom in each crystal will “snap” into one of two orientations if you apply a current. Then it stays there, effectively storing one bit of data.

Here’s where it starts to get confusing. Chemistry geeks hear the “ferroelectric” part and start imagining iron content and magnetic fields. In fact, neither is accurate. To Ramtron’s everlasting dismay, the chips are called ferroelectric not because they actually are, but because their charge/voltage fundamental describes a hysteresis loop that looks a lot like iron’s. It also looks kind of like a lowercase F if you graph it just right. Ramton personnel have been patiently explaining away that misconception for 25 years.

In reality, FRAMs chips are impervious to magnetic fields and just about everything else. They’re nonvolatile in every sense of the word. Sounds good, but why would anyone use FRAM over EEPROM or flash?

Speed Is Good

Their biggest advantage is speed. FRAM chips are as fast as SRAM but are nonvolatile. They also read and write at the same speed, which flash chips certainly don’t do. They’re can tolerate about a zillion read/write/erase cycles, so they’re longer-lived than either EEPROM or flash. Finally, they use less power because they don’t need a charge pump (like flash) or a battery backup (like SRAM). So if you need to store nonvolatile data quickly, FRAM looks like a nice option.

Where do they fall short? Well, their capacity isn’t very good and they’re more expensive than other types of nonvolatile memory. The biggest FRAM chips Ramtron makes have 8-Mbit (1 MB) capacity; most are in the 256K- to 2-Mbit range. So even though they’re fast enough to execute code directly from FRAM, they’re not always big enough to make that work.  

Their fast write time makes FRAMs particularly useful when you need to store data quickly before the power fails or the system crashes. And we do mean crashes: automakers use FRAM to store diagnostic data in the event of a collision. Flash memory, on the other hand, takes time to precharge and store its data. If the power (or a support component) fails during the lengthy write cycle, the data may be lost forever. Flash chips generally also need a software-mediated erase/write procedure that takes time. Writing to FRAM, in contrast, is just as quick and simple as writing to SRAM.

But Wait, There’s More

For other FRAM fans, longevity is the issue. Both flash and EEPROM technologies wear out; the chips are rated for a certain number of erase/write cycles. Overuse the chip (or even part of it) and the entire thing becomes unstable. Granted, the limitations are pretty high – on the order of tens of thousands of cycles – but they’re finite limits nonetheless. Makers of flash file systems have to worry about such things.

FRAMs, on the other hand, are good for literally trillions of write cycles – more than enough for the average embedded system. FRAMs also don’t have to be erased before they’re written. There’s no erase/write cycle as with flash memories, and no need to spread the cycles around to even out wear on the device. That also means there’s no software overhead involved in choosing the least-used part of the chip, reading a block, erasing it, merging in the new data, and writing the new block. With FRAM it’s a single write cycle and you’re done.

Because FRAMs are relatively low-capacity devices, they tend to come in small packages with simple serial interfaces. Ramtron makes chips with either I2C or SPI interfaces, in capacities from 4 Kbits to 2 Mbits. Voltages are in the 3V – 5V range and 8-pin packages are typical. The company also makes chips with parallel interfaces and pinouts that mimic those of SRAMs. With little or no tweaking of PC board layout, you could replace an existing SRAM with an FRAM and eliminate the battery. It’s green!

In an interesting twist, Ramtron has applied its nonvolatile technology to a different kind of chip it calls a “state saver.” Instead of storing data, these little chips store the high/low state of external signals. When the power fails, the nonvolatile state saver will keep pins pulled high or low, which can be handy for keeping LEDs, analog inputs, relays, or control signals in their current state until the power comes back on or the software wakes up.

Okay, so maybe memory still isn’t a sexy part of embedded design. But it’s still necessary and it still needs to work well. Debugging flaky nonvolatile storage is frustrating, as you cycle the power over and over waiting for that one-in-a-million corner case to present itself and corrupt your data. How much easier would it be to just replace the battery-backed SRAM with an FRAM and call it a day? Sure, FRAMs aren’t for everybody but they’re probably suitable for more applications than we think. Just don’t call it magnetic.

Leave a Reply

featured blogs
Apr 25, 2024
Structures in Allegro X layout editors let you create reusable building blocks for your PCBs, saving you time and ensuring consistency. What are Structures? Structures are pre-defined groups of design objects, such as vias, connecting lines (clines), and shapes. You can combi...
Apr 24, 2024
Learn about maskless electron beam lithography and see how Multibeam's industry-first e-beam semiconductor lithography system leverages Synopsys software.The post Synopsys and Multibeam Accelerate Innovation with First Production-Ready E-Beam Lithography System appeared fir...
Apr 18, 2024
Are you ready for a revolution in robotic technology (as opposed to a robotic revolution, of course)?...

featured video

MaxLinear Integrates Analog & Digital Design in One Chip with Cadence 3D Solvers

Sponsored by Cadence Design Systems

MaxLinear has the unique capability of integrating analog and digital design on the same chip. Because of this, the team developed some interesting technology in the communication space. In the optical infrastructure domain, they created the first fully integrated 5nm CMOS PAM4 DSP. All their products solve critical communication and high-frequency analysis challenges.

Learn more about how MaxLinear is using Cadence’s Clarity 3D Solver and EMX Planar 3D Solver in their design process.

featured paper

Designing Robust 5G Power Amplifiers for the Real World

Sponsored by Keysight

Simulating 5G power amplifier (PA) designs at the component and system levels with authentic modulation and high-fidelity behavioral models increases predictability, lowers risk, and shrinks schedules. Simulation software enables multi-technology layout and multi-domain analysis, evaluating the impacts of 5G PA design choices while delivering accurate results in a single virtual workspace. This application note delves into how authentic modulation enhances predictability and performance in 5G millimeter-wave systems.

Download now to revolutionize your design process.

featured chalk talk

Introducing QSPICE™ Analog & Mixed-Signal Simulator
Sponsored by Mouser Electronics and Qorvo
In this episode of Chalk Talk, Amelia Dalton and Mike Engelhardt from Qorvo investigate the benefits of QSPICE™ - Qorvo’s Analog & Mixed-Signal Simulator. They also explore how you can get started using this simulator, the supporting assets available for QSPICE, and why this free analog and mixed-signal simulator is a transformational tool for power designers.
Mar 5, 2024
5,859 views