Digital Electronics & Computer Organisation
Digital Electronics & Computer Organisation
Programmed I/O
Interrupt driven
Programmed I/O- data are exchanged between the CPU and the
I/O module. The CPU executes a program that gives it direct
control of the I/O operation, including sensing device status,
sending a read or write command and transferring data. When
CPU issues a command to I/O module, it must wait until I/O
operation is complete. If the CPU is faster than I/O module, there
is wastage of CPU time.
D)
Software interrupts are requests for I/O (Input or Output). These
will call kernel routines which will schedule the I/O to occur. For
some devices the I/O will be done immediately, but disk I/O is
usually queued and done at a later time. Depending on the I/O
being done, the process may be suspended until the I/O
completes, causing the kernel scheduler to select another
process to run. The software interrupt only talks to the kernel. It is
the responsibility of the kernel to schedule any other processes
which need to run. software interrupt doesn't directly interrupt the
CPU. Only code that is currently running code can generate a
software interrupt. The interrupt is a request for the kernel to do
something (usually I/O) for running process.
case study
Q1- Give the organization of Micro programmed control unit
and explain its operation. Explain the role of address
sequencer in detail. If you convert your control unit to
hardwired unit, what are the changes you will observe?
ans
MICRO-PROGRAMMED CONTROL UNIT
A micro-programmed control unit is implemented using
programming approach. Microprogramming is the concept for
generating control signals using programs. These programs are
called micro-programs. micro-program consist of micro-
instructions. The operations performed on the data stored inside
the registers are called micro-operations. A sequence of micro-
operations are carried out by executing a micro-program
consisting of micro-instructions. micro-program is stored in the
control memory(its read only memory (ROM)) of the control unit.
Execution of a micro-instruction is responsible for generation of a
set of control signals. A micro-instruction consists of:
One or more micro-operations to be executed.
Address of next microinstruction to be executed.
ARCHITECTURE OF MICRO-PROGRAMMED CONTROL UNIT
OPERATION OF MICRO PROGRAMMED CONTROL UNIT
The two basic tasks performed by a micro-programmed control
unit are as follows:
1)Microinstruction sequencing: Get the next microinstruction from
the control memory.
2)Microinstruction execution: Generate the control signals needed
to execute the microinstruction.
the operations are performed in following order:
1.To execute an instruction, the sequencing logic unit issues a
READ command to the control memory.
2.The word whose address is specified in the control address
register is read into the control buffer register.
3.The content of the control buffer register generates control
signals and next-address information for the sequencing logic
unit.
4.The sequencing logic unit loads a new address into the control
address register based on the next-address information from the
control buffer register and the ALU flags.
Role of Address Sequencer
The next microinstruction address is determined by address
sequencer(micro sequencer) in one of five ways:
actions