BEU Computer Organization 2022 CSE Solution
BEU Computer Organization 2022 CSE Solution
com
m
The main elements associated with a computer system are as follows:
o
.c
1. Central Processing Unit (CPU)
ity
2. Main Memory
s
3. Secondary Storage Devices
er
n iv
4. Input and Output (I/O) Devices
gu
5. Busses
ri n
ee
1. Central Processing Unit (CPU): The CPU serves as the core processing unit of
a computer. It executes instructions fetched from memory by performing
in
arithmetic, logical, control, and input/output operations. The CPU contains the
g
en
2. Main Memory: Also known as RAM (Random Access Memory), main memory
h
provides temporary storage for data and instructions that the CPU is acti actively
bi
using. It allows fast access to information but is volatile, meaning it loses its
content when the power is turned off. Main memory holds the operating
system, applications, and data being actively processed.
3. Secondary Storage Devices: These devices offer non-volatile, long-term
storage for data that needs to be retained even when the computer is
powered off. Examples include Hard Disk Drives (HDDs), Solid-State Drives
(SSDs), optical drives, USB flash drives, and external hard drives. They store the
operating system, applications, user files, and other data.
4. Input and Output (I/O) Devices: Input devices allow users to interact with
the computer system by providing data or commands. Examples include
keyboards, mice, touchscreens, scanners, and microphones. Output devices
These main elements work together to facilitate the complete computing process.
The CPU processes instructions and data fetched from memory, which may be
temporarily stored in main memory or accessed from secondary storage devices.
Input devices enable users to provide
rovide instructions or data, and output devices
m
present processed information. Buses enable communication and data transfer
o
between these components, ensuring seamless operation of the computer system.
.c
ity
(b) Discuss the design and logic of a microprogram seq
sequence.
s
er
The address is used by a microprogram sequencer to decide which
iv
microinstruction has to be performed next. Microprogram sequencing is the
n
gu
instructions. Processing is not done within the Control unit itself. It only
directs and manages the task. It serves as the supervisor,
ar
e
iv
Control Address Register(CAR) : Control address register
n
receives the address from four different paths. For receiving the
gu
select inputs.
g
m
microprocessor bus has-
o
(i) a 32-bit local address bus and a 16-bit
bit local data bus, or
.c
ity
ii) a 16-bit local address bus and a 16-bit
bit local data bus.
s
(c) How many bits its are needed for the program counter and
er
the instruction register?
n iv
gu
a)
ri n
= 16777216
en
ar
(b)the
b)the impact on the system speed if the microprocessor bus has
1.) a 32-bit
bit local address bus and a 16-bit
16 local data bus:
h
bi
(2)
local address bus is 16-bit,and we have 32-bit instruction, sp that to fetch
the instruction it takes two cycles.
Local data bus also 16-but, again it takes two cycles.
Totally 4 cycles.
m
co
m
dependencies and hazards between instructions to ensure correct
o
execution.
.c
Dynamic Scheduling: Hardware-based based techniques like out-of-order
out
ity
execution and instruction reordering are used to optimize execution.
s
Instructions are dynamically scheduled for execution based on available
er
resources, dependency resolution, and other factors. This helps in
iv
mitigating
ng pipeline stalls caused by dependencies.
n
gu
o m
.c
s ity
er
n iv
gu
e ri n
ne
h ar
m
Completeness refers to having a sufficient range of instructions to perform
o
various operations. Orthogonality means that operations are defined
.c
consistently across all instruction types and that each instruction perfo
performs a
ity
single, well-defined operation.
s
5. Instruction Pipelining and Parallelism: er
Instruction set design impacts the potential for instruction
instruction-level parallelism
iv
and pipelining. Features like instruction reordering, multiple execution units,
n
gu
Each of these design issues significantly impacts the efficiency, performance, and
in
The DAA instruction is used to adjust the sum of two packed BCD values
by creating a packed BCD result. The DAA instruction is used after an ADD
instruction that performs binary addition of two 2-digit packed BCD values
and stores the result in the AL register. The result of AL register is then
adjusted by the DAA instruction to get a 2-digit
digit packed BCD result.
m
Based on the result of ADD instruction stored in the AL register DAA
o
instruction adjusts the result.
.c
s ity
er
n iv
gu
ri n
ee
g in
en
h ar
bi
bi
g
en
har
8.(a)
(a) Briefly explain the two basic approaches used to minimize register
register-
bi
memory operations
rations on RISC machines.
Compiler technology has also become more sophisticated, so that the
RISC use of RAM and emphasis on software has become ideal.
d
ion
Set Computers (CISCs).
x
instruction set has a number of disadvantages.
,
an increased size of the control unit, and increased logicc
m
delays.
o
.c
s ity
RISCs Design Principles
er t
iv
statements), rather than complex operations, ar
are
n
e
ri n
g
g
en
(a) Derive an expression for the effective MIPS rate when using the system
for exclusive execution of this program, in terms of n, a and x.
(b) If n= 16 and x=4 MIPS, determine the value of that will yield a system
performance of 40 MIPS.
Given data:
m
x MIPS (Million Instructions per Second)
o
.c
ty
g in
en
har
bi