NVSim: A Circuit-Level Performance, Energy, and Area Model for Emerging Nonvolatile Memory | Synapse