Numericals Questions With Answers
Numericals Questions With Answers
To determine how many RAM chips are needed and how their address lines should be connected
to provide a memory capacity of 1024 × 8 bits, we need to break down the problem based on the
given and required configurations.
Given:
Each RAM chip has a capacity of 1024 × 1 bits (1024 memory locations, each storing 1 bit).
The required memory capacity is 1024 × 8 bits (1024 memory locations, each storing 8 bits).
Step 1: Number of Chips Required
Each RAM chip provides 1024 × 1 bits, and we need a total of 1024 × 8 bits. So, to determine
how many chips are required, we divide the total required memory by the memory capacity per
chip:
Number of chips=Required memoryMemory per chip=1024×8
Thus, each chip requires 10 address lines to access its 1024 memory locations.
Step 3: Address Line Organization
Total address space: Since you need to address 1024 × 8 bits (which is 1024 memory locations,
each 8 bits wide), the total number of address lines for the entire memory system must be able to
address 1024 memory locations. To do this, you need 10 address lines for the 1024 locations (as
determined above).
Chip selection: Since you need 8 chips to provide the 8 bits per memory location, you need
additional address lines to select which of the 8 chips to access. The number of chip select lines
required is determined by the number of chips:
The logical address space in a computer system consists of 128 segments. Each segment can
have up to 32 pages of 4K words each. Physical memory consists of 4K blocks of 4K words
each. Formulate the logical and physical address formats.
To formulate the logical and physical address formats, we need to consider the given
information:
The logical address space consists of 128 segments.
Each segment can have up to 32 pages of 4K words each.
Physical memory consists of 4K blocks of 4K words each.
Based on this information, we can formulate the logical and physical address formats as
follows:
Logical Address Format
The logical address format consists of two parts: the segment number and the page number.
The segment number is represented by 7 bits, allowing for a maximum of 128 segments
(2^7).
The page number is represented by 5 bits, allowing for a maximum of 32 pages (2^5).
The word offset is represented by 12 bits, allowing for a maximum of 4K words (2^12).
Physical Address Format
The physical address format consists of three parts: the block number, the word number within
the block, and the word offset within the word.
Final Answer
The number of bits in the tag field is 16 bits.
There is an instruction pipeline with four stages. The stage delays for each stage is 5 nsec,
6 nsec, 11 nsec, and 8 nsec respectively. Consider the delay of an inter-stage register in
the pipeline is 1 nsec. Determine the approximate speedup of the pipeline in the steady
state under ideal conditions as compared to the corresponding non-pipelined
implementation.
Given Data:
1. Pipeline stages: 4
2. Stage delays: 5 nsec,6 nsec,11 nsec,8 nsec
3. Inter-stage register delay: 1 nsec
The pipeline completes one instruction every clock cycle after the pipeline is filled.
3. Pipeline Speedup
Speedup is defined as
Given Data:
M1 (Cache):
o Size: 16 K words
o Access Time: 50 ns
M2 (Main Memory):
o Size: 1 M words
In a set-associative cache:
Each block of main memory is mapped to one specific set in the cache, but within the set, it can
be stored in any way (associativity).
Step 3: Mapping
For example:
(i) How many bits are there in the tag, block, and word fields?
3. Tag Field: Uniquely identifies a block in memory that maps to the same cache block.
Each block contains 4words. The number of bits required to address a word within a block is: