Patent ID: 8111539

Claim:
A non-volatile storage system, comprising: a non-volatile storage element; a control line in communication with the non-volatile storage element; a current comparison circuit in communication with the control line, the current comparison circuit compares a current indicative of current in the control line with a reference and provides an output based on the comparing; a decision logic circuit in communication with the output of the current comparison circuit, the decision logic circuit determines whether the output indicates that a write operation has completed, the write operation can be a SET operation to change the resistance of the non-volatile storage element to a low resistance state and can be a RESET operation to change the resistance of the non-volatile storage element to a high resistance state, the decision logic determines whether a successful SET operation has been completed and whether a successful RESET operation has been completed; and a control line discharge circuit in communication with the decision logic circuit and the control line, the control line discharge circuit stops the write operation in response to the decision logic circuit determining that the write operation has completed.