A system comprising an implantable medical device (IMD). The IMD includes a processor fabricated on an integrated circuit chip (IC), a random access memory (RAM) circuit fabricated on the same IC, and a programmable non-volatile memory (PNVM) circuit also fabricated on the same IC.