Coa (2022)
Coa (2022)
Technical is storage
its address, involvement
computer
seven):
(any
&
Organization R1 way
Architectureis #5, other
Computer a
CPU mischief
(iv) ADD
frame MDR.
placing
physical
in no
5,R1;
(ii)ADDI IR the arbitrator
(ii)
following
data EBCDIC
(iü) theSCSI
bus
(ii) instruction,
is
into
USCII
(iv) in (ii) (iv)
blocks
frames with
There and
data
store
to withMARMAR it the
placing
monitor into
(iv) in into data
theto ends
the address
of used dataof
the and address
into of
19 answer the ofwriting phase MDR chunks
by
format connect thetheexecution divided
virtual done
fetch of
from in
Arch. correct
address data oflarge
encoding way (R1]; data the is
to instruction are
convertinga processor
MARthe )DMA
controller
&
Org. 2022 the
used bus memory (R1];
(iii) 5,
alternate
ADDIME the the
address
into
completing
(ii)
decoding
programs
m) transfer
segments
ASCII
) ANCI
(iüi) bus
PCI
(i) [5], placing
placing
8-bit
(a)
The
Computer Choose bus ADD pages
The The
The (i)Ans.(i) the
Ans.(i) Ans.(i) (iv) (ii) The
Ans.For theO Ans.(1)
is () ) (ü) of
(b) (c) (d) (e) ()
1.
executing responsible
for
n the referred
as to CPU
is computer,
the the of
Often (CPU): Processing
Unit Central 3.
rs printers, monitors, include projectors. and
el present
the
Examples user. the dattoa
display
or
devices TheseDevices: Output
microphones. 2.
andners, keyboards,
mice, include Examples computer.
the into data enter users Devices:These
to allow devices Input 1.
components
are: structural primary
Thation.
e process together
to work components
that
d several composed
of system
is computer A
Computer Components
aof Structural Main (a)Ans.
sequence.
alogic
of and design Discuss
the (b)
ts computer. aof
structural main tdefine
he briefly and List (a) Q.2.
(ü) Ans.
(i1v) (i) 3
(ii)2 (i)4
registers. controller
has DMA The (i)
Ans.(i)
hazardstructural (iv) deadlock (ii)
stock (ii) hazard data )
called available
is
not operands
are of
data whereiH
the situation The (i)
Ans.(i)
above the of None (iv) table linSymbol
k (iüi)
table Vector (i) Interrupt-vector
table ()
sub-routines? handling
t taddresses
he of tstores
he handle table Which (h)
Ans.(ii)
ANNA (iv) ONE (iii)
(ii)RISK, CISC ()
instructions
is execution
of
the architecture
aimed
at computer The (g)
time
of reducing
Ans.(i)
above the of
None (iv) programs system user (111)
SeriesTechnical Arch. Computer
Org.
&
20
21 Technical Series
Computer Org. & Arch.
control unit, which
and performing calculations. It consists of the
coordinates the activities of the other components, and the
mathemnatical
arithmetic logic unit (ALU), which performs
operations.
instructions. It is
4. Memory: This component stores data and
divided into two main types:
Primary Memory (RAM): Volatile memorythat storesdata
temporarily while the computer is in use.
Secondary Memòry: Non-volatile memory that stores data
permanently, such as hard drives, solid-state drives, and
optical drives.
connects all the
5. Motherboard: This is the physical board that for data
components of the computer. It provides the pathways
and control signals to flow between the components.
Buses: These are electrical pathways that
connect the various
6. communicate with
componentsof the computer,allowing them to
each other.
Ans.(b) Microprogram Sequence Design and Logic
Microprogramming is a technique used to imnplement the control
microinstructions
of
unit of a CPU.It involves storing a sequence
microprogram control store. These
in a speciaimemory called a CPU
microinstructions define the sequence of operations that the
should perform to execute a machine instruction.
Design and Logic:
1. Microinstruction Format:Each microinstruction contains a
performed. These
set of fields that specify the operations to be
fields typically include:
Opcode: Specifies the type of operation (e.g., fetch, decode,
execute).
Address fields; Specify the addresses of memory locations or
registers to be accessed.
Control signals:Control the operation of the ALU, registers,
and other components.
microinstructions
2. Microprogram Sequencing: The sequence of
is determined by a microprogram sequencer. This component
selects the next microinstruction to be executed based on the
current microinstruction and the status of the CPU.
3. Microcode ROM: The microprogram is typically stored in a read
ensures that
This
Only memory (ROM) called a microcode ROM.
Computer Org. & Arch. 22
Technical Series
the microprogram cannot be modified during operation.
Advantages of Microprogramming:
Flexibility: Microprogramming allows for easy modification of
the instruction set of a CPU.
Emulation: It can be used to emulate different CPUarchitectures
on asingle hardware platform.
Debugging: Microprogramming can aid in debugging hardware
and software problems.
Disadvantages of Microprogramming:
Performance overhead: Microprogramming can introduce
additional overhead, as the CPUmust fetch and execute
microinstructions.
Con1plexity: Designing and implementing microprograms can
be complex.
Q.3. Consider a hypothetical 32-bit micro- processor having
32-bit instructions composed of two fields the first byte
contains the opcode and the remainder the immediate
operand or an operand address.
(a) What is the maximum
directly addressable bytes)?
memory capacity (in bytes)
(b) Discuss the impact on the
system speed if the
microprocessor bus has
(i) a 32-bit local address bus
Or
and a 16-bit local data bus,
(ii) a 16-bit local address bus
and a l6-bit local data bus.
(c) How many bits are
needed for the program counter and
the instruction register?
Ans.(a) Maximum Directly
Opcode Field: 1 byte (8Addressable
bits)
Memory Capacity
Operand/Address
Since the
Field: 32 -8= 24 bits
operand/address field is 24 bits, it can directly address
224 bytes of memory.
Therefore, the maximum directly
(b)
is 2% bytes, which is 16 MB. addressable memory capaci)
Impact on System Speed
()32-bit Local
Address Bus and 16-bit Local DataBus
Advantages:
Can access 2* bytes (4
GB) of memory directly.
Computer Org. &Arch
23 Technical Series
Can transfer 16 bits of data at atime, which is generally faster
than a 8-bit bus.
Disadvantages:
Mav require additional memory accesses to transfer 32-bit data.
(i) 16-bit Local Address Bus and 16-bit Local Data Bus
Advantages:
Simpler and potentially cheaper design.
Disadvantages:
Canonly access 2° bytes(64 KB) of memory directly.
Requires more memory accesses to transfer 32-bit data,
significantly impacting performance.
Overall. a 32-bit local address bus and 16-bit local data bus provides
abetter balance between addressability and data transfer speed.
(c) Number of Bits for Program Counter and Instruction
Register
Program Counter (PC): The PC needs to address any byte
within the directly addressable memory space. Therefore, it
requires 24 bits.
Instruction Register (IR): The IR holds a complete 32-bit
instruction. Therefore,it requires 32 bits.
16-bit
Q.4.(a) A set-associative cache has a block size of four
accommodate a
Words and a set size of 2. The cache can
is
total of 4096 wòrds. The main memory size that
cacheable is 64K 32 bits. Design the cache structure and
Show how the processor's addresses are interpreted.
(D) Explain two techniques for enhancing the performance of
Computers with multiple execution pipelines.
Ans.(a) Set-Associative Cache Design
Cache Parameters:
Block size: 4 × 16 bits = 64 bits
Set size: 2
Total cache size: 4096 words
Computer Org. & Arch. 24 Technical Series
4096 × 32 bits
= 131,072 bits
Cache Structure:
contains
The cache can be divided into 4096/64 =64 sets. Each set
2 blocks.
Address Interpretation:
Tag: Themost significant bits ofthe address are used to identify
the set in the cache.
Index: The next bits of the address are used to select the block
within the set.
Offset: The least significant bits of the address areused to select
a word within the block.
For a64K 32-bit memory, the address is 16 bits. Let's assume:
Tag: 6 bits
Index:6 bits
Offset: 4 bits
This allows for 64 sets (2), 2 blocks per set, and 16 words per
block.
159280
Step 3: Discard the carry if it exists.
Since there's a carry,discard it.
Therefore, 72530- 13250=59280.
Ans.Orthogonality:
(b)
Important Instruction Set Design Issues
This refers to the ability of instructions to be
A well-designed
combined in various ways without restrictions. operations and
instruction set should allow for a wide range of
addressing modes.
Computer Org. & Arch. 26
Technical Series
Completeness: An instruction set should provide a complete set
of instructions to perform all necessary tasks. This includes
arithmetic, logical, data transfer, and control flow instructions
Eficiency: Instructions should be designed to be efficient in terms
of execution time and memory usage. This involves considering
factors like the number of clock cycles required to execute an
instruction and the amount of memory needed to store the
instruction.
Regularity: A regular instruction set is easier to learn and use.
It often involves a uniform format for instructions and a
consistent.
set of addressing modes.
Modularity: A modular instruction set can be extended or
customized to meet specific needs. This can be achieved through
the use of optional instructions or coprocessors.
Q.6. The x86 architecture includes an instruc- tion called decimal
adjust after addition (DAA). DAA performs the following sequence
of instructions:
if((AL AND OFH) >9) OR (AF = 1)then
AL-AL + 6;
AF ¬-1;
else
AF -0;
endif
if (AL > 9FH) OR (CF = 1)then
ALAL + 60H;
CF -1;
else
CF -0;
endif.