module3,4,5_solutions
module3,4,5_solutions
module3,4,5_solutions
The cell is connected to one word line and two bits lines by transistors T1 and T2
When word line is at ground level, the transistors are turned off and the latch retains its state
Read operation: In order to read state of SRAM cell, the word line is activated to close
switches T1 and T2. Sense/Write circuits at the bottom monitor the state of b and b’
b b
T1 X Y T2
Word line
Bit lines
3.Analyse the working mechanism of Asynchronous DRAMS.
Each row can store 512 bytes. 12 bits to select a row, and 9 bits to select a group in a row. Total of 21
bits.
• First apply the row address, RAS signal latches the row address. Then apply the column address, CAS
signal latches the address.
• Timing of the memory unit is controlled by a specialized unit which generates RAS and CAS.
• This is asynchronous DRAM
5.What is Cache memory? Analyse the three mapping functions of Cache memory.
Cache memory is an architectural arrangement which makes the main memory appear faster to the
processor than it really is.
Mapping functions determine how memory blocks are placed in the cache
Three mapping functions:
▪ Direct mapping
▪ Associative mapping
▪ Set-associative mapping.
Direct mapping
Associative mapping
• Main memory block can be placed into any cache
position.
• Memory address is divided into two fields:
- Low order 4 bits identify the word within a block.
- High order 12 bits or tag bits identify a memory
block when it is resident in the cache.
• Flexible, and uses cache space efficiently.
• Replacement algorithms can be used to replace an
existing block in the cache when the cache is full
Set-associative mapping.
Divides the memory system into a number of memory modules. Each module has its
own address buffer register (ABR) and data buffer register (DBR).
Arranges addressing so that successive words in the address space are placed in
different modules.
When requests for memory access involve consecutive addresses, the access will be to
different modules.
Since parallel access to these modules is possible, the average rate of fetching words
from the Main Memory can be increased.
When a block of words is transferred from main memory to cache, only one module
is busy at a time.
• While transferring a block of data, several memory modules can be kept busy at the
same time.
Module 4
1.with a neat diagram explain translation hierarchy for c program.
A high-level language program first compiled into as assembly language program and then
assembled into an object module in machine language. The linker combines multiple modules
with library routines to resolve all references. The loader places the machines code into proper
memory locations for execution by the processor.
• A compiler takes our source code and generates the corresponding assembly code.
• An assembler converts the assembly code to the machine code.
• A linker merges all the machine-code modules referenced in our code,
• loader moves the executable to RAM and lets it be executed by a CPU.
2.With a neat diagram explain sequential version of multiplication algorithm and hardware
• The multiplier is in the 32-bit multiplier register and that the 64-bit product register is
initialized to zero.
• 32 bit multiplicand would move 32 bits left. So 64bit multiplicand register is initialized
with the 32 bit multiplicand in the right half and zero in the left half.
• This register is then shifted left 1 bit each step to align multiplicand with the sum being
accumulated in the 64-bit product register
Register offset
Instead of adding a constant to the base register, another register is added to the base
register. Example LDR r2, [r0, r1]
The divisor register , ALU and quotient register all are 32 bits wide, with only the reminder register left
at 64 bits.
The ALU and Divisor register are halved and the remainder is shifted left.
It is also combines the quotient register with the half of the reminder register.
Module 5
three buses can be used to connect registers and the ALU of the processor.
• All general-purpose registers are grouped into a single block called the Register File.
• Register-file has 3 ports:
• Two output-ports allow the contents of 2 different registers to be simultaneously
placed on buses A & B.
• Third input-port allows data on bus C to be loaded into a third register during the
same clockcycle.
• Buses A and B are used to transfer source-operands to A & B inputs of ALU.
• The result is transferred to destination over bus C.
• Incrementor Unit is used to increment PC by 4.
3.What is pipeline? Explain the 4 stages of pipeline with its instruction execution steps and
hardware organisation.
Pipeline is the effective way of organizing concurrent activity in the computer
Four instructions are in progress at any given time as shown in the above diagram. This
means that four different hardware units are needed as shown in the diagram
Illustrate the sequence of operations required to execute the following instructions Add(R3),
R1
5.With a neat diagram explain the structure of general purpose multiprocessors.