flip-n-write · research · also FNW, Flip N Write

Flip-N-Write

Flip-N-Write reduces changed bits in phase-change memory by choosing a word's normal or complemented encoding and recording an inversion bit.

A read-before-write comparison identifies changed cells; an inversion bit lets reads recover the logical word. Only changed cells are programmed. This is a proposed PCM encoding, not a NAND erase-block policy. [1]

For even n data bits and one inversion bit, let d be the Hamming distance between the old logical word and the new word. Keeping the current inversion state costs d updates; changing it costs n-d+1, including the flag. Selecting the cheaper encoding bounds the total by n/2. The accounting assumes independently writable binary cells and a stable flag location. [3]

In an eight-bit example, 16 alternating writes of 255 and 0 change only the inversion bit: 16 updates instead of 128 for plain differential writes. Yet the busiest cell still changes 16 times in either design. Fewer total updates alone therefore do not prove a longer lifetime. [3]

Read latency, peripheral circuitry, SET/RESET costs and power scheduling still matter when translating bit counts into performance or energy. [1]

Relations

related
Phase-change memory (storage), Hamming distance, Wear leveling

Limitations

  • The example does not model ECC, flag protection, wear leveling, interrupted writes or cell-to-cell endurance variation. [3]

Citations

  1. Hay et al. Preventing PCM Banks from Seizing Too Much Power. MICRO 2011, sections 2-3 and 4.4. (accessed 2026-11-29)
  2. Hesela: exact binary-cell accounting, flag concentration example and runnable tests. (accessed 2026-11-29)

Further reading

  1. Cho and Lee. Flip-N-Write: a simple deterministic technique to improve PRAM write performance, energy and endurance. MICRO 2009. (accessed 2026-11-29)
Sources & caveats
  • Mechanism reviewed in the full MICRO 2011 paper, which evaluates Flip-N-Write as a baseline and cites Cho and Lee (2009). The 2009 full text was unavailable in this review.
  • The bound and alternating-write example are independently derived arithmetic, not a reproduction of either paper's performance or endurance experiments.

JSON: /data/terms/flip-n-write.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Flip-N-Write. Hesela. 2026-11-29. https://hesela.dev/terms/flip-n-write/