Memristance is displayed only when both the doped layer and depleted layer contribute to resistance. When enough charge has passed through the memristor that the ions can no longer move, the device enters hysteresis. It ceases to integrate q =∫ I d t, but rather keeps q at an upper bound and M fixed, thus acting as a constant resistor until current is reversed.