Worked examples — Emerging memories (MRAM, ReRAM, PCM)
This page is the calculator's dojo for the parent topic on emerging memories. The parent explained why MRAM, ReRAM and PCM work. Here we grind through every kind of number these devices can hand you — every sign of TMR, every resistance ratio, the degenerate cases where a formula almost breaks, the limits, and a couple of exam-style traps.
Before line one: three little tools reappear on every page. If any of these feels shaky, open the linked note first.
The scenario matrix
Every numerical question this topic can throw at you falls into one of these case classes. The whole point of this page is that after reading it, you will have seen each cell solved at least once.
| # | Case class | What makes it tricky | Covered by |
|---|---|---|---|
| A | TMR — normal, both resistances given | plug-and-chug baseline | Ex 1 |
| B | TMR — degenerate: | window collapses, TMR | Ex 2 |
| C | TMR — inverse / sign flip: | TMR goes negative, is that legal? | Ex 2 |
| D | TMR — reverse solve: given TMR, find a resistance | algebra, not just substitution | Ex 3 |
| E | Read divider — pick to maximise the gap | optimisation / limiting behaviour | Ex 4 |
| F | Read divider — limit cases and | what does the amp see at extremes | Ex 4 |
| G | PCM RESET — solve for current from energy | square-root, unit gymnastics | Ex 5 |
| H | PCM SET vs RESET — compare two operations | which is hotter, by how much | Ex 6 |
| I | Real-world word problem — array read power | scale one cell up to millions | Ex 7 |
| J | Exam twist — the "which is the 1?" trap + endurance budget | reading past the convention | Ex 8 |
Worked examples
Ex 1 — Cell A: the baseline TMR
- Write the definition. Why this step? TMR is defined as the relative change, normalised by the low state. We never invent a new formula; we use the one the parent earned.
- Substitute (keep units matched — both in kΩ, so they cancel). Why this step? The subtraction gives the gap; dividing by turns raw ohms into a dimensionless ratio a designer can compare across devices.
- Convert to percent. Why this step? "" is just the convention for reporting a dimensionless ratio as a percent.
Verify: . ✓ The trap in the forecast: the resistance is , not — because TMR measures the extra on top of , not the total.
Ex 2 — Cells B & C: the degenerate and the sign-flip
- Device B — substitute. Why this step? When the two magnetic states have identical resistance, the numerator (the gap) is exactly zero. This is the degenerate case: the memory window has collapsed. A sense amp cannot tell "0" from "1" — the device is dead as a memory.
- Device C — substitute (mind the sign of the numerator). Why this step? The subtraction is honest: if the numerator is negative, so TMR is negative. This is called inverse TMR and it is physically real (it appears in certain junction stacks). The formula does not break — a negative sign just means "the state we labelled AP happens to be the low-resistance one."
- Interpret the sign. Why this step? Sign carries meaning: positive TMR ⇒ AP is the high state (the usual case). Negative TMR ⇒ AP is the low state. Zero ⇒ no window at all.
Verify: Rebuild each. B: ✓. C: ✓. The magnitude is a real (if small) read margin; the sign just tells the amp which way round the states sit.
Ex 3 — Cell D: reverse-solve for a resistance
- Start from the definition and rearrange for . Why this step? Multiply both sides by , then add . We're inverting the formula because the unknown moved from the output slot to inside.
- Convert the percent to a plain ratio first. Why this step? Percent must become a pure number before it enters the arithmetic, or you'll be off by .
- Substitute.
Verify: plug back into Ex 1's definition: ✓. Sanity: bigger than , as any positive TMR demands.
Ex 4 — Cells E & F: choosing , and the two limits
The read divider is Voltage Divider: . See the figure — the sensed node sits between the two resistors, and the amp watches that node.

- LRS reading. Why this step? Low cell resistance ⇒ most of the read voltage lands across ⇒ high sensed voltage.
- HRS reading. Why this step? High cell resistance hogs the voltage, leaving little for ⇒ low sensed voltage.
- The gap the amp must resolve. Why this step? The gap is the read margin. A quarter-volt separation is enormous — trivially sensed. This is why is chosen between the two states, so neither reading is pinned near or near .
- Limit F1 — a perfect short, . Why this step? If the cell had zero resistance, the whole read voltage falls across . The sensed node saturates at — the absolute ceiling.
- Limit F2 — a perfect open, . Why this step? An infinite cell resistance blocks all current, so carries no voltage. The absolute floor is . Every real reading lives strictly between these two rails — which is exactly what the figure shows.
Verify: LRS V and HRS V both lie inside V ✓. Gap V ✓. The higher reading is LRS (bit "1"), matching intuition: low resistance → high sensed voltage.
Ex 5 — Cell G: PCM RESET, solve for current
- Energy needed to heat the volume. Why this step? Temperature rise = energy in ÷ heat capacity, so energy in . The kelvins cancel, leaving joules (here, femtojoules).
- Set electrical energy equal to that heat. Why this step? Joule Heating says the electrical energy dumped in the pulse is . All of it (idealised) goes into the tiny volume, so we equate.
- Substitute in SI units — this is where care pays off. Why this step? fJ J, kΩ , ns s. Mixing prefixes here is the #1 error; go fully to SI.
- Take the square root.
Verify: feed it back — fJ ✓, exactly the energy we demanded. Units: ✓. Answer is microamps, not milliamps — the forecast trap.
Ex 6 — Cell H: SET vs RESET, side by side
- Express each current from the same energy balance. Why this step? With fixed, only changes. The current sits under a square root, so it scales as , not linearly.
- Take the ratio — everything fixed cancels. Why this step? Ratios kill the shared constants, so we never even need . The temperature ratio was ; the current ratio is its square root.
Verify: using Ex 5's A, predict A. Check directly: A ✓. So RESET draws only the SET current — not — because energy grows with the square of current. This is the quantitative version of the parent's "RESET is the hot, power-hungry one."
Ex 7 — Cell I: real-world array read power
- Current through one LRS cell (ignore the load for a worst-case cell current). Why this step? Straight Ohms Law: current = voltage ÷ resistance for one cell.
- Scale to the whole row (currents in parallel add). Why this step? Parallel branches each draw their own current from the same driver; total current is the sum. This is why "sneak" and total-current limits dominate crossbar design.
- Total read power. Why this step? Power . Notice: one cell is only W, but of them add to mW — the array is where the budget bites, a key argument for In-Memory Computing where you want to read many cells at once but must respect this current.
Verify: W ✓ (two routes agree). Answer is ~100 mA / ~20 mW — hundreds of mA, not amps.
Ex 8 — Cell J: the exam twist (convention + endurance budget)
- (a) Read the convention, don't assume. Bit "1" = high resistance ⇒ is bit "1", is bit "0." Why this step? The parent's mistake note warns: high-R "1" is not universal — it's whatever the designer declares. Here they declared it, so we obey the statement, not habit.
- (b) Window as a resistance ratio (window ). Why this step? The memory window is the factor separating the two states; is comfortable for sensing. (As a TMR-style figure it would be .)
- (c) Endurance lifetime — divide writes budget by write rate. Why this step? Endurance is a total-writes budget. Lifetime = budget ÷ how fast you spend it.
- Convert seconds to years. Why this step? One year s. The scary result: hammered at writes/s, a -endurance cell dies in under a year — which is exactly why endurance and wear-levelling matter, and why MRAM's is prized.
Verify: s ✓; yr ✓. Ratio check (b): ✓. The two traps: "1" is (not by any default), and the lifetime is months, not centuries.
Recall Rapid self-test (reveal after guessing)
: TMR? ::: : TMR? ::: — dead cell, window collapsed : is TMR legal? ::: yes, it's negative (inverse TMR), still a real margin As , ? ::: V (the floor) As , ? ::: (the ceiling) PCM current scales with how? ::: as (energy ) Which is hotter, SET or RESET? ::: RESET (melt), by the current here Is high-R always bit "1"? ::: no — it's a designer's convention