Module 4 Control Unit Design-University Questions With Solutions
Module 4 Control Unit Design-University Questions With Solutions
Solution:
Solution:
Solution:
Solution:
Solution:
Solution:
Solution:
1. Spatial Locality
2. Temporal Locality
• Information which is required frequently is kept in cache memory and Which
information from main memory has to be loaded in to cache memory is decided
by locality of Reference.
• There are 2 approaches used by processor to decide which data has to be moved to
cache memory.
• Spatial Locality: At particular point of time if memory location referred by processor
and chances are nearby locations are required in future.
• Temporal Locality: At particular point of time if memory location referred by
processor and there are chances that this memory location will be referred again.
Solution:
Consider Examples of Multi Core Processor.
• Each processor is having L1 and L2 cache i.e. these L1 and L2 caches are private storage
of each processor. And L3 cache is combined to both 2 processor.
• Processor is connected to Main memory via system bus.
• Consider there are 4 processors P1, P2, P3 and P4 and they are connected to main memory
via system bus. Each one is having its own private caches and these private caches are
connected internally by internal Bus. Consider entire organization work as (MISD)
Multiple Instruction steam and Single Data stream organization. All these processors
operate on same data.
• Consider in Main Memory there is a program having global variable A and value of
A=7.
• Suppose P1 want to perform operation P1=A+1
• Suppose P2 want to perform operation P2=A+2
• Suppose P3 want to perform operation P3=A-1
• Suppose P4 want to perform operation P4=A-2
• Suppose now P2 want to perform operation A+2; now value of A in internal cache P2 is
• Similarly P3 perform A-1 operation
• P4 perform operation A-2.
• So variable A is having different value in different cache memory and this results in
cache coherence problem.
11) Write short note on interleaved and associative memory. (May 2022)(5 M)
Solution:
a. Interleaved Memory:
• Consider there are two operations needs to perform on main memory, that read memory
location 2000 and write at memory location 3000. These two operations cannot be
performed at same time, i.e., one operation at one time only. That is main memory
is single main memory and both requests cannot be accepted at same time. This is
limitation of main memory. To overcome this problem “Memory Interleaving”
Concept is used.
• Here Memory is divided in to 4 memory modules; module M1, M2, M3 and M4. There is
assignment of two register AR (Address Register) and DR (Data Register) for each
memory module.
• Address Bus and data bus is common to all memory modules. Address register received
address from Address bus and address bus is unidirectional. Data bus is bidirectional;
data register received data from data bus as well as DR send data to data bus. DR
received the data from memory module 1 or 2 or 3 or 4.
• Consider AR received address 0010. Last 2 bits specify memory module (M1=00,
M2=01, M3=10, M4=11). So here memory module 3 and remaining 2 bits represent
specific memory location of that memory module. That is based on this we can find
which memory module is in activity. That is Module M3 will not affect processing of
all other modules.
b. Associative Memory:
In conventional memory, data is stored in specific locations, called addresses, and retrieved
by referencing those addresses. In associative memory, data is stored together with
additional tags or metadata that describe its content. When a search is performed, the
associative memory compares the search query with the tags of all stored data, and retrieves
the data that matches the query.
• Associative memory is the Memory Unit accessed by content rather than address.
• When data is accessed by the content rather than data address, then the memory is
called as “Associative Memory” or “Content Addressable Memory (CAM)”.
• During write operation Data is stored at the very first empty location found in memory.
• In associative memory data is stored at a particular location but no address is stored along
with it.
• During read operation data is read based on content matched or key. When stored data
need to searched then only the key (i.e. data or part of data) is provided.
12) Compare SRAM and DRAM. (May 2023 and Nov 2023)(5M)
Solution:
1. Speed: SRAM is much faster than DRAM, which is why it is used in cache memory,
whereas DRAM is used for main system memory where large capacity is more
important.
2. Power Consumption: SRAM consumes less power than DRAM when idle, but DRAM
is more power-efficient in terms of storage capacity per watt.
3. Cost and Density: SRAM is more expensive and larger per bit, while DRAM is cheaper
and offers higher memory density.
4. Usage: SRAM’s higher speed makes it suitable for CPU caches, while DRAM's larger
capacity and lower cost make it ideal for primary memory in computers and devices.