SlideShare a Scribd company logo
1 of 30
MCA Admission in India 
By: 
Admission.edhole.com
INPUT/OUTPUT ORGANIZATION 
INTERRUPTS 
CS147 
Summer 2001 
Professor: Sin-Min Lee 
Presented by: Jing Chen 
Admission.edhole.com
Topics Covered 
¨ Transferring Data Between the CPU and I/O Device 
¨ Types of Interrupts 
¨ Processing Interrupts 
¨ Interrupts Hardware and Priority 
¨ Implementing Interrupts Inside the CPU 
Admission.edhole.com
What is Interrupts ? 
¨ Interrupts is a mechanism for alleviating the delay 
caused by this uncertainty and for maximizing 
system performance. 
Admission.edhole.com
Transferring Data 
Between the CPU and I/O Device 
Polling: 
One method used in small system to alleviate the problem of 
I/O devices with variable delays. 
In polling, the CPU sends a request to transfer data to an I/O 
device. The I/O device processes the request and sets a device-ready 
signal when it is ready to transfer data. The CPU reads in 
this signal via another I/O address and checks the value. If the 
signal is set, it performs the data transfer. If not, it loops back, 
continually reading the value of the device ready signal. 
Admission.edhole.com
Transferring Data 
Between the CPU and I/O Device 
(continue) 
Wait States: 
When wait states are used, the processor requests data from an 
I/O device, which then asserts a wait signal that is sent to the 
CPU via the control bus. As long as the signal is asserted, the 
CPU stays in a wait states, still outputting the address of the I/O 
device and the value of the control signal needed to access the 
device, but not doing anything else.The I/O device continues to 
assert this wait signal until it is ready to send or receive data. 
Once it is ready, the I/O device de-asserts it’s wait signal and 
the CPU completes the data transfer. 
Admission.edhole.com
Transferring Data 
Between the CPU and I/O Device 
(continue) 
wait states simplifies the job of the programmer. Unlike 
polling , we need no additional code to accommodate the 
variability of the timing of the I/O device; like polling, the 
CPU does not perform any useful work while waiting for the 
I/O device to become ready to transfer data. To make use of this 
wasted CPU time, interrupts are developed. 
Admission.edhole.com
Transferring Data 
Between the CPU and I/O Device 
(continue) 
Interrupts 
Unlike polling or wait states, they do not waste time waiting for 
the I/O device to become ready. 
--When interrupts are used with I/O devices, the CPU may 
output a request to the I/O device and, instead of polling the 
device or entering a wait state, the CPU then continues 
executing instructions, performing useful work. 
--When the device is ready to transfer data, it sends an interrupts 
request to the CPU; this is done via a dedicated signal on the 
control bus. 
--The CPU then acknowledges the interrupt, typically by 
asserting an interrupt acknowledge signal, and completes the 
Admission.eddhaotal etr.acnosmfer.
Types of Interrupts 
¨ External interrupts 
¨ Internal interrupts 
¨ Software interrupts 
Admission.edhole.com
External Interrupts 
¨ External interrupts: are used by the CPU to interact with 
input/output devices. 
External interrupts improve system performance by allowing 
the CPU to execute instructions, instead of just waiting for the 
I/O device, while still performing the required data transfers. 
Admission.edhole.com
Internal Interrupts 
¨ Internal interrupts: occur entirely within the CPU; no 
input/output devices play any role in these interrupts. 
Internal interrupts could be used to allocate CPU time to 
different tasks in a multitasking operating system. This 
interrupts can also be used to handle exceptions that occur 
during the execution of valid instructions. 
Admission.edhole.com
Software Interrupts 
¨ Software interrupts: are generated by specific interrupt 
instructions in the CPU’s instruction set. 
Admission.edhole.com
Processing Interrupts 
Who services the interrupt? 
¨ An interrupt triggers a sequence of events to occur 
within the computer system. These events 
acknowledge the interrupt and perform the actions 
necessary to service the interrupt. These events only 
occur if the interrupt is enabled. 
¨ Interrupt is also serviced by software which is 
written by the user, is called the handler, essentially a 
subroutine. 
Admission.edhole.com
Sequence of Events 
¨ Do nothing(until the current instruction has been 
executed) 
¨ Get the address of the handler routine.(vector 
interrupts only) 
¨ Invoke the handler routine 
Admission.edhole.com
Sequence of Events 
(1) 
¨ Do nothing (until the current instruction has been 
executed) 
If an execute routine is interrupted part way through, we would 
have to save the contents of many of the internal registers of 
the CPU, as well as the state information within the control 
unit. In contrast, it is not necessary to save this information if 
the execute routine has been completed. 
Admission.edhole.com
Sequence of Events 
(2) 
¨ Get the Address of the Handler Routine 
(Vectored interrupts only) 
Vectored interrupts supply the CPU with information, the 
interrupt vector, which is used to generate the address of the 
handler routine for that interrupt. 
Vectored interrupts are useful for CPUs that receive interrupt 
requests from several devices via the same control line. 
Admission.edhole.com
Sequence of Events 
(3) 
¨ Invoke the handler Routine 
When the CPU accesses the handler routine, it pushes the 
current value of the program counter into the stack and loads 
the address of the handler routine into the program counter. The 
handler routine then performs its tasks. When it is finished, it 
returns to the correct location by popping the value of the 
program counter off the stack. 
Admission.edhole.com
Interrupt Hardware and Priority 
Three hardware samples for interrupts: 
¨ Hardware and Timing of a non-vectored interrupt for a single 
device. 
¨ Hardware and Timing of a vectored interrupt for a single 
device. 
¨ Hardware of multiple non-vectored interrupts 
Admission.edhole.com
(a)Hardware of a non-vectored interrupt for a single device 
An external device sent an interrupt to the CPU by asserting its interrupt 
request (IRS) signal. When the CPU is ready to process the interrupt request, 
it assert the its interrupt acknowledge signal (IACK), thus informing the I/O 
device that is ready to proceed. 
(b)Timing of a non-vectored interrupt for a single device 
The device set the IRQ low, which cause the CPU set the IACK low. As 
the handler routine proceeds, it transfers data between the CPU and the 
interrupting device. 
(a) 
(b) 
CPU 
IRQ 
IACK 
Data 
Device 
valid 
IRQ 
IACK 
Data 
Interrupt Request 
Interrupt Acknowledge 
Data bus 
Admission.edhole.com
(a)Hardware of a vectored interrupt for a single device 
A vector interrupt is more complex. After acknowledge the interrupt, 
the CPU must input an interrupt vector from the device and call an 
interrupt service routine(handler); the address of this routine is a 
function of the vector. 
(b)Timing of a vectored interrupt for a single device 
CPU 
IRQ 
IACK 
Data 
Device 
Interrupt Request 
Interrupt Acknowledge 
Interrupt Vector 
valid 
IRQ 
IACK 
Data 
(a) 
(b) 
Admission.edhole.com
Hardware for multiple non-vectored interrupts 
In addition to enabling and disabling interrupts, we must also consider 
the priority of the interrupts. In general, the second interrupt is processed 
if its priority is higher than that of the interrupt currently being processed. 
If not, it remains pending until the current handler routine is complete. 
CPU 
IRQ 0 IACK 0 
IRQ 1 
IACK 1 
IRQ n 
IACK n 
Data 
Device #0 
Device #1 
Device #n 
Admission.edhole.com
Two methods used for prioritizing 
multiple interrupts 
• Daisy Chaining 
• Parallel Priority 
Admission.edhole.com
Daisy Chaining: 
The interrupt request signals from the devices are wire-ORed 
together. When the CPU receives an active IRQ input, it cannot know 
which device generated the interrupt request. It sends out an 
acknowledge signal and leaves it to the devices to work that out 
among themselves. 
CPU 
IACKin 
IRQ Device #n D 
IACKout 
IACKin 
IACKout 
IRQ Device#n-1D 
IACKin 
IRQ Device#0 D 
IACKout 
IACK 
IRQ 
Data 
Interrupt Acknowledge 
Interrupt Request 
Vector 
Admission.edhole.com
Possible values of IACKin and IACKout and their states 
The invalid state (IACKin = 0 and IACKout = 1) is shown 
to account for all possible value of IACKin and IACKout, 
but a device should never be in this state. 
IACKin IACKout State 
1 0 Device interrupts CPU 
0 1 Invalid state 
Device is blocked from from 
interrupting by a device with 
higher priority(device may 
not may not be issuing an 
interrupt request 
0 0 
Device has priority to 
interrupt but does not 
1 1 
Admission.edhole.com
Implementing priority interrupts in parallel 
The IRQ input to the CPU ids generated as in the daisy chain configuration, using a 
wired-OR of the IRQ signals from the devices. Note that buffers are needed to 
prevent the signals from the values input to priority encoder. Unlike daisy chaining, 
however, the IACK signal simply enables a priority device requesting an interrupt. 
This value is placed on the data bus as the interrupt vector and is read in by the 
CPU, which then proceeds as before. 
CPU 
Priority 
encoder IRQ Device #1 
IRQ Device #n 
IRQ 
Data 
IACK 
0 IRQ Device #0 
1 
n 
Interrupt request 
Vector 
Interrupt Acknowledge 
Admission.edhole.com
The most difficult part of handling the interrupt is 
recognizing it and accessing the states to process the 
interrupt. This is done every execute cycle, and could 
be done in one or two ways. 
1. Using separate FETCH1 and INT1 states 
2. Modifying FETCH1 to support interrupts 
Admission.edhole.com
1. Using separate FETCH1 and INT1 states 
The branches that go to state FETCH1 are broken into two 
branches. If interrupts are enabled (IE=1) and an interrupt is 
pending (IP=1), these states branch to the beginning of the 
interrupt handler routine, state INT1, rather than to FETCH1. 
If either the IE or IP is 0, no interrupt is processed and the 
CPU proceeds to FETCH1 to continue processing 
instructions. 
execute 
routines FETCH1 
execute 
routines 
IE’VIP’ 
IE^IP 
FETCH1 
INT1 
Admission.edhole.com
2.Modifying FETCH1 to support interrupts 
The micro-operations associated with the state can be 
modified. 
State FETCH1 would consist of two sets of micro-operations. 
The CPU could branch to either FETCH2 or INT2. 
FETCH 1 FETCH 2 Modified 
FETCH 
INT 2 
IE’VIP’ 
IE^IP 
FETCH 2 
Admission.edhole.com
How to Access the Interrupt Handler? 
1. CPU pushes the return address on to the stack 
2. Reads in the interrupt vector 
3.Jumps to the address corresponding to this vector, 
1111(vector) 0000. 
Admission.edhole.com
Admission.edhole.com

More Related Content

What's hot

Control system for polarimeter
Control system for polarimeterControl system for polarimeter
Control system for polarimeterRishabh Shukla
 
Interrupt11
Interrupt11Interrupt11
Interrupt11Aisu
 
Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptsanjaytron
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor withijcseit
 
Project Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidProject Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidVaibhav Gautam
 
Cardionics Belgium ECG systems for CRO
Cardionics Belgium ECG systems for CROCardionics Belgium ECG systems for CRO
Cardionics Belgium ECG systems for CROCARDIONICS BELGIUM
 
21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2lords_ko
 
Study of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsStudy of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsEr. Ashish Pandey
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded systemram avtar
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVRUrvashi Khandelwal
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systemsarlabstech
 

What's hot (19)

Control system for polarimeter
Control system for polarimeterControl system for polarimeter
Control system for polarimeter
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi ppt
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
7SR210 Overcurrent Relay
7SR210 Overcurrent Relay7SR210 Overcurrent Relay
7SR210 Overcurrent Relay
 
8259
8259 8259
8259
 
Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
 
Fpga based heartbeats monitor with
Fpga based heartbeats monitor withFpga based heartbeats monitor with
Fpga based heartbeats monitor with
 
Project Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using AndroidProject Report - Lighting Control via Bluetooth using Android
Project Report - Lighting Control via Bluetooth using Android
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Cardionics Belgium ECG systems for CRO
Cardionics Belgium ECG systems for CROCardionics Belgium ECG systems for CRO
Cardionics Belgium ECG systems for CRO
 
Rej603 pg 1_mdb07217-yn_e_ne
Rej603 pg 1_mdb07217-yn_e_neRej603 pg 1_mdb07217-yn_e_ne
Rej603 pg 1_mdb07217-yn_e_ne
 
21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2
 
Study of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processorsStudy of Data sheet of 56824 DSP processors
Study of Data sheet of 56824 DSP processors
 
Dio
DioDio
Dio
 
8259 updated
8259 updated 8259 updated
8259 updated
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded system
 
training report on embedded system and AVR
training report on embedded system and AVRtraining report on embedded system and AVR
training report on embedded system and AVR
 
Basics Of Embedded Systems
Basics Of Embedded SystemsBasics Of Embedded Systems
Basics Of Embedded Systems
 

Similar to Mca admission in india

Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Swathi Veeradhi
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
chapter7-io organization.pptx
chapter7-io organization.pptxchapter7-io organization.pptx
chapter7-io organization.pptxgracemann365
 
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptxUNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptxLeahRachael
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4Dr.MAYA NAYAK
 
Computer oganization input-output
Computer oganization input-outputComputer oganization input-output
Computer oganization input-outputDeepak John
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfTaufeeq8
 
COA-Unit5-ppt2.pptx
COA-Unit5-ppt2.pptxCOA-Unit5-ppt2.pptx
COA-Unit5-ppt2.pptxRuhul Amin
 
Computer organization
Computer organizationComputer organization
Computer organizationRvishnupriya2
 
Computer organization
Computer organization Computer organization
Computer organization vishnu973656
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxAshokRachapalli1
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptxddscraft123
 

Similar to Mca admission in india (20)

IO hardware
IO hardwareIO hardware
IO hardware
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Io pro
Io proIo pro
Io pro
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
unit-5 ppt.ppt
unit-5 ppt.pptunit-5 ppt.ppt
unit-5 ppt.ppt
 
chapter7-io organization.pptx
chapter7-io organization.pptxchapter7-io organization.pptx
chapter7-io organization.pptx
 
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptxUNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
 
Computer oganization input-output
Computer oganization input-outputComputer oganization input-output
Computer oganization input-output
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdf
 
COA-Unit5-ppt2.pptx
COA-Unit5-ppt2.pptxCOA-Unit5-ppt2.pptx
COA-Unit5-ppt2.pptx
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Computer organization
Computer organization Computer organization
Computer organization
 
IO organization.ppt
IO organization.pptIO organization.ppt
IO organization.ppt
 
Io pro
Io proIo pro
Io pro
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
inputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptxinputoutputorganization-140722085906-phpapp01.pptx
inputoutputorganization-140722085906-phpapp01.pptx
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
 
IO_ORGANIZATION.pdf
IO_ORGANIZATION.pdfIO_ORGANIZATION.pdf
IO_ORGANIZATION.pdf
 

More from Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

More from Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Recently uploaded

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

Mca admission in india

  • 1. MCA Admission in India By: Admission.edhole.com
  • 2. INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen Admission.edhole.com
  • 3. Topics Covered ¨ Transferring Data Between the CPU and I/O Device ¨ Types of Interrupts ¨ Processing Interrupts ¨ Interrupts Hardware and Priority ¨ Implementing Interrupts Inside the CPU Admission.edhole.com
  • 4. What is Interrupts ? ¨ Interrupts is a mechanism for alleviating the delay caused by this uncertainty and for maximizing system performance. Admission.edhole.com
  • 5. Transferring Data Between the CPU and I/O Device Polling: One method used in small system to alleviate the problem of I/O devices with variable delays. In polling, the CPU sends a request to transfer data to an I/O device. The I/O device processes the request and sets a device-ready signal when it is ready to transfer data. The CPU reads in this signal via another I/O address and checks the value. If the signal is set, it performs the data transfer. If not, it loops back, continually reading the value of the device ready signal. Admission.edhole.com
  • 6. Transferring Data Between the CPU and I/O Device (continue) Wait States: When wait states are used, the processor requests data from an I/O device, which then asserts a wait signal that is sent to the CPU via the control bus. As long as the signal is asserted, the CPU stays in a wait states, still outputting the address of the I/O device and the value of the control signal needed to access the device, but not doing anything else.The I/O device continues to assert this wait signal until it is ready to send or receive data. Once it is ready, the I/O device de-asserts it’s wait signal and the CPU completes the data transfer. Admission.edhole.com
  • 7. Transferring Data Between the CPU and I/O Device (continue) wait states simplifies the job of the programmer. Unlike polling , we need no additional code to accommodate the variability of the timing of the I/O device; like polling, the CPU does not perform any useful work while waiting for the I/O device to become ready to transfer data. To make use of this wasted CPU time, interrupts are developed. Admission.edhole.com
  • 8. Transferring Data Between the CPU and I/O Device (continue) Interrupts Unlike polling or wait states, they do not waste time waiting for the I/O device to become ready. --When interrupts are used with I/O devices, the CPU may output a request to the I/O device and, instead of polling the device or entering a wait state, the CPU then continues executing instructions, performing useful work. --When the device is ready to transfer data, it sends an interrupts request to the CPU; this is done via a dedicated signal on the control bus. --The CPU then acknowledges the interrupt, typically by asserting an interrupt acknowledge signal, and completes the Admission.eddhaotal etr.acnosmfer.
  • 9. Types of Interrupts ¨ External interrupts ¨ Internal interrupts ¨ Software interrupts Admission.edhole.com
  • 10. External Interrupts ¨ External interrupts: are used by the CPU to interact with input/output devices. External interrupts improve system performance by allowing the CPU to execute instructions, instead of just waiting for the I/O device, while still performing the required data transfers. Admission.edhole.com
  • 11. Internal Interrupts ¨ Internal interrupts: occur entirely within the CPU; no input/output devices play any role in these interrupts. Internal interrupts could be used to allocate CPU time to different tasks in a multitasking operating system. This interrupts can also be used to handle exceptions that occur during the execution of valid instructions. Admission.edhole.com
  • 12. Software Interrupts ¨ Software interrupts: are generated by specific interrupt instructions in the CPU’s instruction set. Admission.edhole.com
  • 13. Processing Interrupts Who services the interrupt? ¨ An interrupt triggers a sequence of events to occur within the computer system. These events acknowledge the interrupt and perform the actions necessary to service the interrupt. These events only occur if the interrupt is enabled. ¨ Interrupt is also serviced by software which is written by the user, is called the handler, essentially a subroutine. Admission.edhole.com
  • 14. Sequence of Events ¨ Do nothing(until the current instruction has been executed) ¨ Get the address of the handler routine.(vector interrupts only) ¨ Invoke the handler routine Admission.edhole.com
  • 15. Sequence of Events (1) ¨ Do nothing (until the current instruction has been executed) If an execute routine is interrupted part way through, we would have to save the contents of many of the internal registers of the CPU, as well as the state information within the control unit. In contrast, it is not necessary to save this information if the execute routine has been completed. Admission.edhole.com
  • 16. Sequence of Events (2) ¨ Get the Address of the Handler Routine (Vectored interrupts only) Vectored interrupts supply the CPU with information, the interrupt vector, which is used to generate the address of the handler routine for that interrupt. Vectored interrupts are useful for CPUs that receive interrupt requests from several devices via the same control line. Admission.edhole.com
  • 17. Sequence of Events (3) ¨ Invoke the handler Routine When the CPU accesses the handler routine, it pushes the current value of the program counter into the stack and loads the address of the handler routine into the program counter. The handler routine then performs its tasks. When it is finished, it returns to the correct location by popping the value of the program counter off the stack. Admission.edhole.com
  • 18. Interrupt Hardware and Priority Three hardware samples for interrupts: ¨ Hardware and Timing of a non-vectored interrupt for a single device. ¨ Hardware and Timing of a vectored interrupt for a single device. ¨ Hardware of multiple non-vectored interrupts Admission.edhole.com
  • 19. (a)Hardware of a non-vectored interrupt for a single device An external device sent an interrupt to the CPU by asserting its interrupt request (IRS) signal. When the CPU is ready to process the interrupt request, it assert the its interrupt acknowledge signal (IACK), thus informing the I/O device that is ready to proceed. (b)Timing of a non-vectored interrupt for a single device The device set the IRQ low, which cause the CPU set the IACK low. As the handler routine proceeds, it transfers data between the CPU and the interrupting device. (a) (b) CPU IRQ IACK Data Device valid IRQ IACK Data Interrupt Request Interrupt Acknowledge Data bus Admission.edhole.com
  • 20. (a)Hardware of a vectored interrupt for a single device A vector interrupt is more complex. After acknowledge the interrupt, the CPU must input an interrupt vector from the device and call an interrupt service routine(handler); the address of this routine is a function of the vector. (b)Timing of a vectored interrupt for a single device CPU IRQ IACK Data Device Interrupt Request Interrupt Acknowledge Interrupt Vector valid IRQ IACK Data (a) (b) Admission.edhole.com
  • 21. Hardware for multiple non-vectored interrupts In addition to enabling and disabling interrupts, we must also consider the priority of the interrupts. In general, the second interrupt is processed if its priority is higher than that of the interrupt currently being processed. If not, it remains pending until the current handler routine is complete. CPU IRQ 0 IACK 0 IRQ 1 IACK 1 IRQ n IACK n Data Device #0 Device #1 Device #n Admission.edhole.com
  • 22. Two methods used for prioritizing multiple interrupts • Daisy Chaining • Parallel Priority Admission.edhole.com
  • 23. Daisy Chaining: The interrupt request signals from the devices are wire-ORed together. When the CPU receives an active IRQ input, it cannot know which device generated the interrupt request. It sends out an acknowledge signal and leaves it to the devices to work that out among themselves. CPU IACKin IRQ Device #n D IACKout IACKin IACKout IRQ Device#n-1D IACKin IRQ Device#0 D IACKout IACK IRQ Data Interrupt Acknowledge Interrupt Request Vector Admission.edhole.com
  • 24. Possible values of IACKin and IACKout and their states The invalid state (IACKin = 0 and IACKout = 1) is shown to account for all possible value of IACKin and IACKout, but a device should never be in this state. IACKin IACKout State 1 0 Device interrupts CPU 0 1 Invalid state Device is blocked from from interrupting by a device with higher priority(device may not may not be issuing an interrupt request 0 0 Device has priority to interrupt but does not 1 1 Admission.edhole.com
  • 25. Implementing priority interrupts in parallel The IRQ input to the CPU ids generated as in the daisy chain configuration, using a wired-OR of the IRQ signals from the devices. Note that buffers are needed to prevent the signals from the values input to priority encoder. Unlike daisy chaining, however, the IACK signal simply enables a priority device requesting an interrupt. This value is placed on the data bus as the interrupt vector and is read in by the CPU, which then proceeds as before. CPU Priority encoder IRQ Device #1 IRQ Device #n IRQ Data IACK 0 IRQ Device #0 1 n Interrupt request Vector Interrupt Acknowledge Admission.edhole.com
  • 26. The most difficult part of handling the interrupt is recognizing it and accessing the states to process the interrupt. This is done every execute cycle, and could be done in one or two ways. 1. Using separate FETCH1 and INT1 states 2. Modifying FETCH1 to support interrupts Admission.edhole.com
  • 27. 1. Using separate FETCH1 and INT1 states The branches that go to state FETCH1 are broken into two branches. If interrupts are enabled (IE=1) and an interrupt is pending (IP=1), these states branch to the beginning of the interrupt handler routine, state INT1, rather than to FETCH1. If either the IE or IP is 0, no interrupt is processed and the CPU proceeds to FETCH1 to continue processing instructions. execute routines FETCH1 execute routines IE’VIP’ IE^IP FETCH1 INT1 Admission.edhole.com
  • 28. 2.Modifying FETCH1 to support interrupts The micro-operations associated with the state can be modified. State FETCH1 would consist of two sets of micro-operations. The CPU could branch to either FETCH2 or INT2. FETCH 1 FETCH 2 Modified FETCH INT 2 IE’VIP’ IE^IP FETCH 2 Admission.edhole.com
  • 29. How to Access the Interrupt Handler? 1. CPU pushes the return address on to the stack 2. Reads in the interrupt vector 3.Jumps to the address corresponding to this vector, 1111(vector) 0000. Admission.edhole.com