How to view the contents of a RAM during simulation

In the simulator under the Device menu,
select "Memory Contents --> Save Contents ..."
You will be asked to select a RAM symbol (somewhere in your hierarchy). You'll need the instance id to identify which RAM you want. When you double click on the desired RAM, you'll be asked to for a filename.

The RAM's contents will be written to the file in INTEL's Hex Format. Here is how to interpret this file. There is also a C program at this site which reads/writes a hex file. I've adapted it to print out the contents of a 16x1 RAM. Here it is.


The CMPE126 Web:
Copyright 2004; Department of Computer Engineering, University of California, Santa Cruz.