1. A continuously variable resistor comprising: a first chalcogenide layer; and a second chalcogenide layer connected to the first chalcogenide layer, the second chalcogenide layer having a metal interspersed within it, making the second chalcogenide layer metal-rich, wherein the continuously variable resistor is configured to exhibit NDR behavior.