Memristive circuits for on-chip memories.