Professional Documents
Culture Documents
ECE-452 Quiz#1: (Solution)
ECE-452 Quiz#1: (Solution)
ECE-452 Quiz#1: (Solution)
Q1. What HPC stands for? Cite and define two different HPC techniques. (0.5)
Soln.:
Parallel computing: single systems with many processors working on the same
problem
Q2. Draw the generic I/O module block diagram and describe its functionality. (0.5)
Soln.:
Q3. Mention the principle difference between programmed I/O, Interrupt driven I/O and
DMA (Direct Memory Access). Cite two different DMA configurations. Also briefly describe
the cited DMA configurations along with their block diagrams (1.5)
Soln.:
Programmed I/O.
CPU issues command. After the command issue, CPU completes other tasks.
I/O module completes the asked task
I/O module interrupts CPU
CPU entertains the interrupt after completing the ongoing instruction
It improves the CPU performance compared to the programmed I/O case.
DMA.
Interrupt driven and programmed I/O require active CPU intervention. It results in to a
limited data transfer rate and the CPU is tied up especially when a block of data is
required to be transferred between the Main memory and the external peripheral.
DMA is the solution for this problem. It is an additional hardware added to the system.
DMA Configurations.
Single Bus Configuration: DMA, CPU, Main Memory and I/O modules share the system
bus. The configuration block level diagram is shown below.
For Effat University Internal Use Only
Separate I/O Bus Configuration: DMA, CPU and Main Memory share the system bus. The
I/O modules share an I/O bus and are connected to the system bus via DMA module. The
configuration block level diagram is shown below.
For Effat University Internal Use Only
Q4. Briefly describe the utilization of I/O module in a computer. Identify the location of I/O
modules on the following system block diagram. Also count the number of I/O modules,
suggested to employ in this system (0.5)
Soln.:
The I/O module provides an interface between the CPU, main memory and the I/O devices
(peripherals). Its placement, in the system, is further illustrated with the help of following
block diagram.
Its employment is necessary in the system because of a wide variety of peripherals employed
in the modern computers. They have different data rates and information formats. The I/O
modules complete the transfer with these peripherals and transfer the information to/from
system bus at a fixed rate and format. Therefore it facilitates the design of remaining system
modules like CPU, main memory, etc.
The I/O modules location is marked on the following system block diagram. It shows that
logically 9 I/O interfaces are required in this system.
1
7
2
3 8
4
5 9