SlideShare a Scribd company logo
12/15/2014
1
Computer Organization
Instructors :
Dr. Abdul Raouf Khan
Mr.Marwan El-Haj
1
Program Control
Program Counter keeps the address of the next
instructions to be executed.
A program Control type of instruction, when
executed, may change the address value in the
PC and cause the flow of control to be altered.
Program control instructions specify conditions
for altering the contents of the program counter
2
12/15/2014
2
Program Control
Some typical program control instructions are
1. Branch
2. Jump
3. Skip
4. Call
5. Return
3
Status bit Conditions
It is sometimes convenient to provide the
ALU circuit in the CPU with a status bit
register, where status bit conditions can be
stored for further analysis. Status bits are
also called condition-code bits or flag bits
4
12/15/2014
3
Status bit register
5
Program Interrupt
Program interrupts refer to the transfer of
program control from a currently running
program to another service program, as a result
of external or internal generated request.
Control returns to the original program after the
service program is executed
6
12/15/2014
4
Program Interrupt & subroutine call
Three variations
1. The interrupt is usually initiated by an internal or
external signal rather than from the execution of an
instruction
2. the address of the interrupt service program is
determined by the hardware rather than from the
address field of an instruction
3. An interrupt procedure usually stores all the information
necessary to define the state of CPU rather than storing
only the program counter
7
Types of Interrupts
1. External interrupts
2. Internal Interrupts
3. Software interrupts
8
12/15/2014
5
External interrupts
External interrupts come from input-output
(I/O) devices, from a timing device, from a
circuit monitoring the power supply, or from
any other external source.
example I/O devices requesting transfer of
data, I/O finish transfer of data, elapse time
of an event, or power failure
9
Internal Interrupts
Internal interrupts arise from illegal or
erroneous use of an instruction or data.
Internal interrupts are also called Traps.
Examples: caused by internal error
conditions are register overflow, attempt to
divide by zero, an invalid operation code,
stack overflow, and protection violation.
10
12/15/2014
6
Software interrupts
A software interrupt is initiated by executing
an instruction. Software interrupt is a special
CALL instruction that behaves like an
interrupt rather than a sub routine call. It can
be used by the programmer to initiate an
interrupt procedure at any desired point in
the program.
11
CISC Computer
A computer with a large number of
instructions is called a complex instruction
set computer.
12
12/15/2014
7
Characteristics of CISC
1. A large number of instructions(100 to 250)
2. Some instruction that perform specialized
tasks and are used in frequently
3. A large variety of addressing modes (5 – 20)
4. Variable length instruction formats
5. Instructions that manipulate operands in
memory
13
RISC Computers
Computers which is fewer instructions with
simple constructs so they can be excuted
much faster within the CPU without having to
use memory as often
14
12/15/2014
8
Characteristics of RISC
1. Relatively few instructions
2. Relatively few addressing modes
3. Memory access limited to load & store
4. All operations done within the registers of the CPU
5. Fixed-length, easily decoded instruction format
6. Single-Cycle instruction execution
7. Hardwired control
8. A relatively large number of registers in the CPU
9. Use of overlapped register windows to speed procedure call &
return
10. Efficient instruction pipeline
11. Compiler support for efficient translation of HLL program to MLP
programs
15

More Related Content

PPTX
Interrupt in real time system
PPTX
INTERRUPTS
PPTX
OS concepts 2 handling of interrupts
PPTX
Interrupts
PDF
Interrupts in CPU
PPTX
Interrupt presentaion
PDF
Lect10 organization
PPTX
Interrupts
Interrupt in real time system
INTERRUPTS
OS concepts 2 handling of interrupts
Interrupts
Interrupts in CPU
Interrupt presentaion
Lect10 organization
Interrupts

What's hot (20)

PPTX
Process management1
PPTX
Operating system 03 handling of interrupts
PPT
Ch01 introduction
PDF
PDF
Ijeet 06 08_008
PPT
Delta v advanced control overview_en
PPT
Prj 06-ceit-44
PPTX
Session 21 - DCS Introduction
PPTX
5.13 Software management control
PDF
Chubb AFx System Design Guide June 2009
PDF
Distributed Control System (DCS) Applications, Selection & Troubleshooting
PPTX
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
PPTX
Rtos by shibu
PPTX
Session 07 - PLC Architecture
PDF
Dcs or plc
PPTX
computer Ariciteacture and orgnization
PDF
IO Systems
PDF
PPT
Section01 overview
PPT
Section01 overview (1)
Process management1
Operating system 03 handling of interrupts
Ch01 introduction
Ijeet 06 08_008
Delta v advanced control overview_en
Prj 06-ceit-44
Session 21 - DCS Introduction
5.13 Software management control
Chubb AFx System Design Guide June 2009
Distributed Control System (DCS) Applications, Selection & Troubleshooting
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT V Real Time Operating System (RTOS)
Rtos by shibu
Session 07 - PLC Architecture
Dcs or plc
computer Ariciteacture and orgnization
IO Systems
Section01 overview
Section01 overview (1)
Ad

Viewers also liked (20)

PPTX
Sorting algorithms
PDF
Lect1 organization 2
PDF
Coding the Matrix: Linear Algebra through Computer Science Applications
PDF
R Programming
PDF
certificate
PPT
CO by Rakesh Roshan
PPT
Intro to cao &store program
PPT
15 control-computer organization and archietecture-CO-COA
PPTX
Quick Sort
PPTX
Strongly connected components
PDF
Lect8 organization
PDF
Lect14 organization
PDF
Lect11 organization
PPTX
Minimum spanning trees
PPTX
Lecture02
PDF
Lect13 organization
PPTX
Topological sort
PPTX
Floyd warshal 2
PPTX
Graph theory
PPTX
Bfs and dfs
Sorting algorithms
Lect1 organization 2
Coding the Matrix: Linear Algebra through Computer Science Applications
R Programming
certificate
CO by Rakesh Roshan
Intro to cao &store program
15 control-computer organization and archietecture-CO-COA
Quick Sort
Strongly connected components
Lect8 organization
Lect14 organization
Lect11 organization
Minimum spanning trees
Lecture02
Lect13 organization
Topological sort
Floyd warshal 2
Graph theory
Bfs and dfs
Ad

Similar to Lect15 organization (20)

PPT
Program control
PPTX
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
DOCX
Matter new
PPTX
Chapter 3 part 2 Interconnections Computer organization
PDF
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
PPTX
Processor Organization and Architecture
PDF
Input output concepts in operating systems
DOCX
embeddeed real time systems 2 mark questions and answers
PDF
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
PPTX
Input output instructions in coa btech 2nd year
PDF
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
PDF
S6 EEE MPLC FULL NOTE.pdf subject in electrical and electronics engineering
PPTX
Computer organization
PPTX
Computer organization
PPTX
COA-Unit5-ppt2.pptx
PDF
DCS Or PLC
PDF
Binary obfuscation using signals
PPTX
Difficulties in Pipelining
PPTX
PPTX
Computer organization I/O organization details
Program control
CS304PC:Computer Organization and Architecture Session 15 program control.pptx
Matter new
Chapter 3 part 2 Interconnections Computer organization
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
Processor Organization and Architecture
Input output concepts in operating systems
embeddeed real time systems 2 mark questions and answers
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
Input output instructions in coa btech 2nd year
Automation Production Systems and Computer Integrated Manufacturing 4th Editi...
S6 EEE MPLC FULL NOTE.pdf subject in electrical and electronics engineering
Computer organization
Computer organization
COA-Unit5-ppt2.pptx
DCS Or PLC
Binary obfuscation using signals
Difficulties in Pipelining
Computer organization I/O organization details

More from Maher Alshammari (20)

PDF
Cis cvs risc
PDF
Lect12 organization
PDF
Lect9 organization
PDF
Lect7 organization
PDF
Lect6 organization
PDF
Lect4 organization
PDF
Lect2 organization 2
PDF
Lect3 organization 2
PDF
Lect5 organization
PPTX
Greedy algorithm
PPTX
Matrix chain multiplication 2
PPTX
Edit distance problem
PPTX
Merge sort
PPT
Lecture01
PPTX
Matrix chain multiplication
PPTX
Bellman ford and floyd warshal
PPTX
Dijekstra algorithm
PPTX
Greedy algorithm huffman encoding
PPTX
Activity selection 2
PPTX
Cis cvs risc
Lect12 organization
Lect9 organization
Lect7 organization
Lect6 organization
Lect4 organization
Lect2 organization 2
Lect3 organization 2
Lect5 organization
Greedy algorithm
Matrix chain multiplication 2
Edit distance problem
Merge sort
Lecture01
Matrix chain multiplication
Bellman ford and floyd warshal
Dijekstra algorithm
Greedy algorithm huffman encoding
Activity selection 2

Recently uploaded (20)

PPTX
4277547e-f8e2-414e-8962-bf501ea91259.pptx
PPTX
VAD - Acute and chronic disorders of mesenteric.pptx
PPTX
Green and Blue Illustrative Earth Day Presentation.pptx
PPTX
Presentation on tradtional textiles of kutch
PPTX
current by laws xxxxxxxxxxxxxxxxxxxxxxxxxxx
PDF
; Projeto Rixa Antiga.pdf
PPTX
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
PPTX
Art Appreciation-Lesson-1-1.pptx College
PPTX
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
PPTX
E8 Q1 020ssssssssssssssssssssssssssssss2 PS.pptx
PPTX
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
PPTX
vsfbvefbegbefvsegbthnmthndgbdfvbrsjmrysnedgbdzndhzmsr
PPTX
Certificados y Diplomas para Educación de Colores Candy by Slidesgo.pptx
PPTX
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
PPTX
Visual-Arts.pptx power point elements of art the line, shape, form
PPT
Jaipur Sculpture Tradition: Crafting Marble Statues
PDF
Close Enough S3 E7 "Bridgette the Brain"
PPTX
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Green and Orange Illustration Understanding Climate Change Presentation.pptx
PPTX
SAPOTA CULTIVATION.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
4277547e-f8e2-414e-8962-bf501ea91259.pptx
VAD - Acute and chronic disorders of mesenteric.pptx
Green and Blue Illustrative Earth Day Presentation.pptx
Presentation on tradtional textiles of kutch
current by laws xxxxxxxxxxxxxxxxxxxxxxxxxxx
; Projeto Rixa Antiga.pdf
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
Art Appreciation-Lesson-1-1.pptx College
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
E8 Q1 020ssssssssssssssssssssssssssssss2 PS.pptx
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
vsfbvefbegbefvsegbthnmthndgbdfvbrsjmrysnedgbdzndhzmsr
Certificados y Diplomas para Educación de Colores Candy by Slidesgo.pptx
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
Visual-Arts.pptx power point elements of art the line, shape, form
Jaipur Sculpture Tradition: Crafting Marble Statues
Close Enough S3 E7 "Bridgette the Brain"
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Green and Orange Illustration Understanding Climate Change Presentation.pptx
SAPOTA CULTIVATION.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

Lect15 organization

  • 1. 12/15/2014 1 Computer Organization Instructors : Dr. Abdul Raouf Khan Mr.Marwan El-Haj 1 Program Control Program Counter keeps the address of the next instructions to be executed. A program Control type of instruction, when executed, may change the address value in the PC and cause the flow of control to be altered. Program control instructions specify conditions for altering the contents of the program counter 2
  • 2. 12/15/2014 2 Program Control Some typical program control instructions are 1. Branch 2. Jump 3. Skip 4. Call 5. Return 3 Status bit Conditions It is sometimes convenient to provide the ALU circuit in the CPU with a status bit register, where status bit conditions can be stored for further analysis. Status bits are also called condition-code bits or flag bits 4
  • 3. 12/15/2014 3 Status bit register 5 Program Interrupt Program interrupts refer to the transfer of program control from a currently running program to another service program, as a result of external or internal generated request. Control returns to the original program after the service program is executed 6
  • 4. 12/15/2014 4 Program Interrupt & subroutine call Three variations 1. The interrupt is usually initiated by an internal or external signal rather than from the execution of an instruction 2. the address of the interrupt service program is determined by the hardware rather than from the address field of an instruction 3. An interrupt procedure usually stores all the information necessary to define the state of CPU rather than storing only the program counter 7 Types of Interrupts 1. External interrupts 2. Internal Interrupts 3. Software interrupts 8
  • 5. 12/15/2014 5 External interrupts External interrupts come from input-output (I/O) devices, from a timing device, from a circuit monitoring the power supply, or from any other external source. example I/O devices requesting transfer of data, I/O finish transfer of data, elapse time of an event, or power failure 9 Internal Interrupts Internal interrupts arise from illegal or erroneous use of an instruction or data. Internal interrupts are also called Traps. Examples: caused by internal error conditions are register overflow, attempt to divide by zero, an invalid operation code, stack overflow, and protection violation. 10
  • 6. 12/15/2014 6 Software interrupts A software interrupt is initiated by executing an instruction. Software interrupt is a special CALL instruction that behaves like an interrupt rather than a sub routine call. It can be used by the programmer to initiate an interrupt procedure at any desired point in the program. 11 CISC Computer A computer with a large number of instructions is called a complex instruction set computer. 12
  • 7. 12/15/2014 7 Characteristics of CISC 1. A large number of instructions(100 to 250) 2. Some instruction that perform specialized tasks and are used in frequently 3. A large variety of addressing modes (5 – 20) 4. Variable length instruction formats 5. Instructions that manipulate operands in memory 13 RISC Computers Computers which is fewer instructions with simple constructs so they can be excuted much faster within the CPU without having to use memory as often 14
  • 8. 12/15/2014 8 Characteristics of RISC 1. Relatively few instructions 2. Relatively few addressing modes 3. Memory access limited to load & store 4. All operations done within the registers of the CPU 5. Fixed-length, easily decoded instruction format 6. Single-Cycle instruction execution 7. Hardwired control 8. A relatively large number of registers in the CPU 9. Use of overlapped register windows to speed procedure call & return 10. Efficient instruction pipeline 11. Compiler support for efficient translation of HLL program to MLP programs 15