Posts Tagged ‘extract pld chip heximal’
Extract PLD EEPROM: Charge Pumps, Vpp and Bit Drift
An EEPROM-based programmable logic device is a memory before it is logic. Its configuration is charge trapped on floating gates, and everything about how it can be read, copied or lost follows from the physics of that charge.
This is a more useful starting point than the logical view, because the failure modes of these devices are physical: a part that has been in service for twenty years has cells whose threshold has drifted, and a part that was programmed at the edge of the specification has cells whose margin was always thin.
The cell and its two thresholds
An EEPROM cell is a transistor with a floating gate. Charge on that gate shifts the threshold voltage, and the sense circuit decides the stored bit by comparing the cell’s conduction against a reference.
| State | Threshold relative to reference | Read as |
|---|---|---|
| Programmed, well within margin | Well above | 1 |
| Erased, well within margin | Well below | 0 |
| Programmed, drifted low | Marginally above | 1, but marginal |
| Erased, drifted high | Marginally below | 0, but marginal |
| Indeterminate | At the reference | Unstable; may read differently on successive reads |
The fifth row is the one that causes unreproducible readouts, and it is more common on old parts than on new ones. A device with a few indeterminate cells produces a configuration that is almost right, which is the worst kind of result.
Writing: the charge pump and Vpp
Writing a cell requires a voltage high enough to move charge across the oxide, far above the device’s supply. Older devices required this voltage externally on a dedicated pin; later ones generate it internally with a charge pump.
| Generation | Programming voltage | Consequence |
|---|---|---|
| Early EEPROM PLD | External Vpp, often 12 to 21 volts | Requires a specialised programmer |
| Later EEPROM PLD | Internally generated from 5 volts | Standard programmer, slower writes |
| In-system programmable | Generated on chip, commanded by a serial protocol | Programmable on the board |
| Flash-based | Internally generated, block erase | Different architecture entirely |
The first row is where a modern universal programmer fails: it may support the device’s read protocol and not its programming voltage, or the reverse. This asymmetry is worth checking before assuming a device is unreadable.
Reading: no high voltage required
A read is a low-voltage operation. The sense amplifier compares the cell’s conduction against a reference at the normal supply, and the array is addressed like any memory.
| Operation | Voltage | Effect on stored charge |
|---|---|---|
| Read | Nominal supply | None, ideally |
| Program | Elevated, generated or external | Adds charge |
| Erase | Elevated, opposite polarity | Removes charge |
| Read at elevated temperature | Nominal | Slow loss over time |
The fourth row is a real long-term effect: reading at high temperature does not damage a cell in one pass, but the cumulative effect over decades of operation contributes to drift.
Drift and how it presents
Charge leaks. The mechanisms are slow and temperature-dependent, and the result is a gradual shift of threshold toward the middle of the range.
| Age and history | Typical condition |
|---|---|
| New, never programmed | All cells at the erased floor |
| Programmed once, stored cool | Margin largely intact |
| Programmed, twenty years at moderate temperature | Margin reduced, some cells marginal |
| Reprogrammed many times | Margin reduced by cycling damage |
| Stored hot or powered continuously | Margin substantially reduced |
The consequence for extraction is that a single read is not sufficient on an old device. Reading the array several times and comparing identifies the marginal cells, and those cells can then be decided by a more careful method rather than by a coin flip.
Extraction approaches
The method depends on the device’s state and the equipment available.
| Approach | Requires | Reliability |
|---|---|---|
| Read in a programmer | Device removed or a suitable clip | High, if the device is supported |
| Read in system through the programming port | A device with an ISP interface | High |
| Read by probing the array | Decapsulation and a positioned probe | High but destructive |
| Read by observing the device’s behaviour | A working board | Indirect; recovers function, not bits |
The fourth row is the fallback that is often forgotten. A PAL or GAL in a working system can be characterised exhaustively by driving its inputs and recording its outputs, and for a device with twenty inputs that is a million vectors — slow but complete, and it yields a truth table that can be turned into equations.
Why the same device reads differently
Repeatability is the diagnostic that separates a good extraction from a lucky one.
| Symptom | Cause |
|---|---|
| Same cells differ between reads | Marginal cells at the threshold |
| Whole blocks differ | Addressing error, or a bad contact |
| One pin’s worth of cells differs | A single address or data line not making contact |
| Reads agree but behaviour is wrong | The read is correct and the device is not what it seems |
The third row is the one that a socket or clip problem produces, and it is recognisable because the errors have structure: the same bit position in many words.
What the extracted array becomes
The array is the input to the interpretation work described in reading PLD binary into equations, and the container is covered in reading the JED format. Where the device is a decoder on a processor board, the array is worth more than the logic, and reading PLD code in an MCU system explains why.
Services at this boundary
Work covers device identification and voltage requirement checking, readout with repeatability testing, marginal cell identification, behavioural characterisation where the array is unreachable, and delivery of the array with a confidence statement per region. It does not cover recovering cells that have drifted to the threshold, because there is no longer any information there.
The practical statement is that an EEPROM array is a physical measurement, and like any measurement it needs a stated uncertainty.