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
Limitations
- The example does not model ECC, flag protection, wear leveling, interrupted writes or cell-to-cell endurance variation. [3]
Citations
- Hay et al. Preventing PCM Banks from Seizing Too Much Power. MICRO 2011, sections 2-3 and 4.4.
- Hesela: exact binary-cell accounting, flag concentration example and runnable tests.
Further reading
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.