Design of NML Circuits based on M-RAM