RAM

By choosing "RAM" from the popup menu at the top of the Edit Modules dialog box, you can create, edit, or delete any number of RAMs of any length and cell size. The length refers to the number of cells (addressable locations) in the RAM. Each cell has an index, referred to as the address of the cell. The cell size refers to the width of, or number of bits in, each cell.

If you increase the length of an existing RAM, new memory locations containing the value 0 will be added at the end of the current cells. If you decrease the length of a RAM, some of the cells at the end will be deleted and their contents will be lost.

If you increase the cell size of an existing RAM, zeros are added to the left of each cell value. If you decrease the cell size, the left bits of each cell are lost.

You cannot edit the contents of a RAM using this dialog box. To edit a RAM's contents, use the window that appears when you choose the RAM from the Windows menu.

Parameter:

Length: a positive base-10 integer that specifies the number of cells in the RAM. The first cell has index (address) 0.

Cell size: the number of bits per cell. This must be a positive base-10 integer up to 64.