Ram & Rom Chip
Ram & Rom Chip
BEET-404
Unit 4
Memory Organization
•From the functional table, we can conclude that the unit is in operation only when CS1 = 1 and CS2 = 0.
•The bar on top of the second select variable indicates that this input is enabled when it is equal to 0.
•The logic 1 and 0 are standard digital signals whereas the high-impedance state behaves like an open
circuit, which means that the output does not carry a signal and has no logic significance.
•A ROM chip has a similar organization as a RAM chip. However, a ROM can only perform read operation;
the data bus can only operate in an output mode.
•The 9-bit address lines in the ROM chip specify any one of the 512 bytes stored in it.
•The value for chip select 1 and chip select 2 must be 1 and 0 for the unit to operate. Otherwise, the data
bus is said to be in a high-impedance state.
•The addressing of memory can establish by means of a table that specifies the memory address
assigned to each chip.
• The table, called a memory address map, is a pictorial representation of assigned address space for
each chip in the system.
•To demonstrate with a particular example, assume that a computer system needs 512 bytes of RAM
and 512 bytes of ROM.
The component column specifies whether a RAM or a ROM chip used.
Moreover, The hexadecimal address column assigns a range of hexadecimal equivalent addresses for
each chip.
•The low-order lines in the address bus select the byte within the chips and other lines in the address bus select a
particular chip through its chip select inputs.
•This configuration gives a memory capacity of 512 bytes of RAM and 512 bytes of ROM. It implements the memory map
of Table 1. Each RAM receives the seven low-order bits of the address bus to select one of 128 possible bytes.
•The particular RAM chip selected is determined from lines 8 and 9 in the address bus. This is done through a 2 x 4
decoder whose outputs go to the CS1 inputs in each RAM chip.
•When address lines 8 and 9 are equal to 00, the first RAM chip is selected. When 01, the second RAM chip is selected,
and so on. The RD and WR outputs from the microprocessor are applied to the inputs of each RAM chip.
•The selection between RAM and ROM is achieved through bus line 10. The RAMs are selected when the
bit in this line is 0, and the ROM when the bit is 1.
•The other chip select input in the ROM is connected to the RD control line for the ROM chip to be
enabled only during a read operation. Address bus lines 1 to 9 are applied to the input address of ROM
without going through the decoder.
•This assigns addresses 0 to 511 to RAM and 512 to 1023 to ROM. The data bus of the ROM has only an
output capability, whereas the data bus connected to the RAMs can transfer information in both directions
.
•Cache memory is placed between the CPU and the main memory.
•The data or contents of the main memory that are used frequently by CPU are stored in the
cache memory so that the processor can easily access that data in a shorter time.
•Whenever the CPU needs to access memory, it first checks the cache memory.
• If the data is not found in cache memory, then the CPU moves into the main memory.
There are three different types of mapping used for the purpose of cache memory which are as
follows:
1. Direct mapping
2. Associative mapping
3. Set-Associative mapping
•The cache consists of normal high-speed random-access memory. Each location in the cache holds the
data, at a specific address in the cache.
• This address is given by the lower significant bits of the main memory address.
•This enables the block to be selected directly from the lower significant bit of the memory address.
•The remaining higher significant bits of the address are stored in the cache with the data to complete
the identification of the cached data.
•Fully Associative Mapping refers to a technique of cache mapping that allows mapping of the
main memory block to a freely available cache line.
• Fully associative cache would permit the storage of data in any cache block.
•There would be no forcing of every memory address into a single particular block.
•In case the data and information are fetched from memory, then they can be placed in an
unused block of a cache.