1. A nonvolatile memory cell comprising: a diode; and a resistance-switching element comprising a layer of a resistivity-switching metal nitride compound, the metal nitride compound including only one metal, wherein the diode and resistance-switching element are portions of the memory cell, and wherein resistance-switching of the resistance-switching element correlates to resistivity-switching of the resistivity-switching metal nitride compound.