Docsity

Computer Achitecture and org - Priority , Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
PRIORITY INTERRUPT
-In Interrupt Initiated I/O transfer, the first task of the interrupt system is to
identify the source of the interrupt. In the case several sources requesting for
service, the system should decide which device to serve first.
-Priority Interrupt is a system which establishes a priority over the devices to
determine which condition is to be serviced.
-Higher priority is assigned to the devices which if delayed, could have serious
consequences. (High speed devices i.e. Magnetic disk)
-Establishing the priority of simultaneous interrupts can be done by software
or hardware.
-Software โ€“ polling procedure is used to assign the priority.
-When the interrupt comes from several sources, the control is changed to a
common branch address.
-Program that takes care of interrupts begins at the branch address and polls
the interrupting sources in sequence.
-The order in which they are tested determines the priority of each interrupt.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Computer Achitecture and org - Priority and more Study notes Computer Architecture and Organization in PDF only on Docsity!

PRIORITY INTERRUPT

In Interrupt Initiated I/O transfer, the first task of the interrupt system is to

identify the source of the interrupt. In the case several sources requesting for

service, the system should decide which device to serve first.

  • Priority Interrupt is a system which establishes a priority over the devices to

determine which condition is to be serviced.

Higher priority is assigned to the devices which if delayed, could have serious

consequences. (High speed devices i.e. Magnetic disk)

Establishing the priority of simultaneous interrupts can be done by software

or hardware.

Software โ€“ polling procedure is used to assign the priority.

When the interrupt comes from several sources, the control is changed to a

common branch address.

Program that takes care of interrupts begins at the branch address and polls

the interrupting sources in sequence.

The order in which they are tested determines the priority of each interrupt.

The device which is tested first has the highest priority and if it has set a

interrupt, then control branches to a service routine for this source.

Disadvantage: If there are many interrupts the time required to poll them can

exceed the time available to service the I/O device.

Hardware Priority Interrupt:

  • A hardware unit which function as an overall manager, accepts interrupt

requests from many sources, determines the highest priority source and issues

an interrupt request to CPU.

  • Each interrupt source has its own interrupt vector to access its own service

routine directly.

  • The hardware priority interrupt function can be established in two ways:
    1. Serial connection of interrupt Lines ( Daisy- chaining method)
    2. Parallel connection of interrupt Lines.
  • Serial connection of all devices that request an interrupt.

Highest priority device is placed in the first position followed by the lower

priority devices.

Interrupt request line is common to all devices.

If any device places interrupt signal, the interrupt request line is driven to

low level state and enables an interrupt input to CPU.

CPU responds by giving the interrupt acknowledge signal and the signal

is received by device 1 at its priority in (PI).

If device 1 has given the interrupt, it blocks the acknowledge signal by

placing a 0 in PO output and inserts its own vector address (VAD) in to the

data bus.

If device 1 has not given the interrupt, it passes the acknowledge to the

next device by placing 1 in PO.

Three condition: 1. PI =0 (No acknowledge signal) PO= 0

  1. PI =1 ( device1 gives interrupt) PO =
  2. PI = 1 (device1 doesnโ€™t gives interrupt) PO =

One stage of Daisy- chain priority arrangement

Parallel Priority Interrupt Hardware.

INTACK: Signal from CPU which enables the bus buffers in the output register

and a vector address VAD is placed into the data bus.

Priority Encoder:

It is a circuit that implements the priority function.

Logic of Priority encoder is such that if two or more inputs arrive at the same

time, the input having higher priority will take precedence.

Truth table:

X = I0โ€™I1โ€™ Y = I0โ€™I1โ€™+I0โ€™I2โ€™ IST = I0 + I1 + I2 + I

Inputs outputs

(d3 d2 d1 d0) (A0 A1)

I0 I1 I2 I3 x y IST

1 x x x 0 0 1

0 1 x x 0 1 1

0 0 1 x 1 0 1