A reprogrammable switch includes a first phase-change element, a first
reference element, and a second reference element. The switch includes a
sense amplifier for outputting a first signal based on a comparison of a
signal from the first phase-change element to a signal from the first
reference element and for outputting a second signal based on a
comparison of the signal from the first phase-change element to a signal
from the second reference element.