Circuit And Architecture Co-Design Of Stt-Ram For High Performance And Low Energy