SlideShare a Scribd company logo
1 of 44
+
William Stallings
Computer Organization
and Architecture
9th Edition
+
Chapter 3
A Top-Level View of Computer
Function and Interconnection
+
Computer Components
 Contemporary computer designs are based on concepts
developed by John von Neumann at the Institute for Advanced
Studies, Princeton
 Referred to as the von Neumann architecture and is based on
three key concepts:
 Data and instructions are stored in a single read-write memory
 The contents of this memory are addressable by location, without
regard to the type of data contained there
 Execution occurs in a sequential fashion (unless explicitly modified)
from one instruction to the next
 Hardwired program
 The result of the process of connecting the various components in
the desired configuration
+
Hardwired Program Concept
 Hardwired systems are inflexible
 General purpose hardware can do different tasks, given correct
control signals
 Instead of re-wiring, supply a new set of control signals
+
Hardware
and Software
Approaches
+
I/O
Components
Software
• A sequence of codes or instructions
• Part of the hardware interprets each instruction
and generates control signals
• Provide a new sequence of codes for each new
program instead of rewiring the hardware
Major components:
• CPU
• Instruction interpreter
• Module of general-purpose arithmetic and logic
functions (ALU & CU)
• I/O Components
• Input module
• Contains basic components for accepting
data and instructions and converting them
into an internal form of signals usable by the
system
• Output module
• Means of reporting results
Software
The Control Unit and the Arithmetic
and Logic Unit constitute the Central
Processing Unit
Main memory
Temporary storage is needed for code/
instruction and results
Action Categories
• The processor
may perform
some arithmetic
or logic operation
on data
• An instruction
may specify that
the sequence of
execution be
altered
• Data transferred
to or from a
peripheral device
by transferring
between the
processor and an
I/O module
• Data transferred
from processor to
memory or from
memory to
processor
Processor-
memory
Processor-
I/O
Data
processing
Control
Computer
Components:
Top Level
View
+
MEMORYMemory
address
register (MAR)
• Specifies the
address in
memory for the
next read or write
Memory buffer
register (MBR)
• Contains the data
to be written into
memory or
receives the data
read from memory
I/O address
register (I/OAR)
• Specifies a
particular I/O
device
I/O buffer
register (I/OBR)
• Used for the
exchange of data
between an I/O
module and the
CPU
MAR
MBR
+
Basic Instruction Cycle
+
Instruction Cycle
 At the beginning of each instruction cycle the processor
fetches an instruction from memory
 The program counter (PC) holds the address of the instruction
to be fetched next
 The processor increments the PC after each instruction fetch
so that it will fetch the next instruction in sequence
 The fetched instruction is loaded into the instruction register
(IR)
 The processor interprets the instruction and performs the
required action
+
Instruction Cycle State Diagram
+
FEtch
 Program Counter (PC) holds address of next instruction to
fetch
 Processor fetches instruction from memory location pointed to
by PC
 Increment PC
 Unless told otherwise
 Instruction loaded into Instruction Register (IR)
 Processor interprets instruction and performs required actions
+
Execute cycle
 Processor-memory
 data transfer between CPU and main memory
 Processor I/O
 Data transfer between CPU and I/O module
 Data processing
 Some arithmetic or logical operation on data
 Control
 Alteration of sequence of operations
 e.g. jump
 Combination of above
+
+
Interrupts
Mechanism by which other modules (e.g. I/O) may
interrupt normal sequence of processing
+
Transfer of Control via Interrupts
+
Instruction Cycle With Interrupts
Instruction Cycle State Diagram
With Interrupts
+
Interrupt Cycle
 Added to instruction cycle
 Processor checks for interrupt
 Indicated by an interrupt signal
 If no interrupt, fetch next instruction
 If interrupt pending:
 Suspend execution of current program
 Save context
 Set PC to start address of interrupt handler routine
 Process interrupt through Interrupt handler routine by generating ISR
(Interrupt Service Request)
 Restore context and continue interrupted program
+
Time Sequence of Multiple
Interrupts
+
Multiple Interrupts
 Disable interrupts
 Processor will ignore further interrupts while processing one
interrupt
 Interrupts remain pending and are checked after first interrupt has
been processed
 Interrupts handled in sequence as they occur
 Define priorities
 Low priority interrupts can be interrupted by higher priority interrupts
 When higher priority interrupt has been processed, processor
returns to previous interrupt
+
Connecting
 All the units must be connected
 Different type of connection for different type of unit
 Memory
 Input/Output
 CPU
+
Memory Connection
 Receives and sends data
 Receives addresses (of locations)
 Receives control signals
 Read
 Write
 Timing
+
Input/Output Connection(1)
 Similar to memory from computer’s viewpoint
 Output
 Receive data from computer
 Send data to peripheral
 Input
 Receive data from peripheral
 Send data to computer
+
Input/Output Connection(2)
 Receive control signals from computer
 Send control signals to peripherals
 Receive addresses from computer
 e.g. port number to identify peripheral
 Send interrupt signals (control)
+
CPU Connection
 Reads instruction and data
 Writes out data (after processing)
 Sends control signals to other units
 Receives (& acts on) interrupts
B
u
s
I
n
t
e
r
c
o
n
n
e
c
t
i
o
n
A communication pathway
connecting two or more
devices
• Key characteristic is that it is a
shared transmission medium
Signals transmitted by any
one device are available for
reception by all other
devices attached to the bus
• If two devices transmit during the
same time period their signals will
overlap and become garbled
Typically consists of
multiple communication
lines
• Each line is capable of transmitting
signals representing binary 1 and
binary 0
Computer systems contain
a number of different buses
that provide pathways
between components at
various levels of the
computer system hierarchy
System bus
• A bus that connects major
computer components (processor,
memory, I/O)
The most common
computer interconnection
structures are based on the
use of one or more system
buses
Data Bus
 Data lines that provide a path for moving data among system
modules
 May consist of 32, 64, 128, or more separate lines
 The number of lines is referred to as the width of the data bus
 The number of lines determines how many bits can be
transferred at a time
 The width of the data bus
is a key factor in
determining overall
system performance
+ Address Bus Control Bus
 Used to designate the source or
destination of the data on the
data bus
 If the processor wishes to
read a word of data from
memory it puts the address of
the desired word on the
address lines
 Width determines the maximum
possible memory capacity of
the system
 Used to control the access and the
use of the data and address lines
 Because the data and address lines
are shared by all components there
must be a means of controlling their
use
 Control signals transmit both
command and timing information
among system modules
 Timing signals indicate the validity of
data and address information
 Command signals specify operations
to be performed
Bus Interconnection Scheme
+
Timing
 Two types of co-ordination of events on bus
a) Synchronous and
b) Asynchronous
 Synchronous
 Events determined by clock signals
 Control Bus includes clock line upon which a clock transmits a regular
sequence of alternating 1s and 0s
 A single 1-0 is a bus cycle
 All devices can read clock line
 Usually sync on leading edge (transference of data becomes valid by
hand shake signals)
 Usually a single cycle for an event
Timing of
Synchronous
Bus
Operations
+
In this simple example,
 The processor places a memory address on the address lines during
the first clock cycle and may assert various status lines.
 Once the address lines have stabilized, the processor
issues an address enable signal.
 For a read operation, the processor issues a read command at the start
of the second cycle. A memory module recognizes the address
 and, after a delay of one cycle, places the data on the data lines.
+
Contd..
 The processor reads the data from the data lines and drops the read
signal.
 For a write operation, the processor puts the data on the data lines at
the start of the second cycle
 and issues a write command after the data lines have stabilized.
 The memory module copies the information from the data lines
during the third clock cycle.
+
Asynchronous Timing
With asynchronous timing, the
occurrence of one event on a bus
follows
and depends on the occurrence of a
previous event.
+
Asynchronous Timing – Read
Diagram
+
In this read example of asynchronous
Read diagram
 The processor places address and status signals on the bus.
 After pausing for these signals to stabilize, it issues a read command,
indicating the presence of valid address and control signals.
 The appropriate memory decodes the address and responds by placing
the data on the data line.
 Once the data lines have stabilized, the memory module asserts the
acknowledged line to signal the processor that the data are available.
+
 Once the processor has read the data from the data lines, it de-asserts
the read signal. This causes the memory module to drop the data and
acknowledge lines.
 Finally, once the acknowledge line is dropped, the processor removes
the address information.
+
Asynchronous Timing – Write
Diagram
+
A Simple Asynchronous Write
Operation
 The processor places the data on the data line at the same time that it
puts signals on the status and address lines.
 The memory module responds to the write command by copying the
data from the data lines and then asserting the acknowledge line.
 The processor then drops the write signal and the memory module
drops the acknowledge signal.
+
Comparison b/w Synchronous and
Asynchronous timing
 Synchronous timing is simpler to implement and test. However, it is less
flexible than asynchronous timing.
 Because all devices on a synchronous bus are tied to a fixed clock rate,
the system cannot deviate in clock serving time.
 With asynchronous timing, a mixture of slow and fast devices, using
older and newer technology, can share a bus.
 Synchronous connection every device is going to be served whether it
had something to send or not.
Computer Components and the Basic Instruction Cycle

More Related Content

What's hot

Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Процессорын архитектур
Процессорын архитектурПроцессорын архитектур
Процессорын архитектурMuuluu
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organizationNitesh Singh
 
Computer organisation
Computer organisationComputer organisation
Computer organisationMohd Arif
 
COMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESCOMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESDr.MAYA NAYAK
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System ArchitectureBrenda Debra
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Swathi Veeradhi
 
Computer architecture
Computer architectureComputer architecture
Computer architectureneclinux
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization faria_khan
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5Dr.MAYA NAYAK
 

What's hot (19)

Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Процессорын архитектур
Процессорын архитектурПроцессорын архитектур
Процессорын архитектур
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Basic computer organization
Basic computer organizationBasic computer organization
Basic computer organization
 
Computer organisation
Computer organisationComputer organisation
Computer organisation
 
COMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTESCOMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTES
 
Data Manipulation
Data ManipulationData Manipulation
Data Manipulation
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System Architecture
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Unit 2
Unit 2Unit 2
Unit 2
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
Unit 5-lecture 5
Unit 5-lecture 5Unit 5-lecture 5
Unit 5-lecture 5
 

Similar to Computer Components and the Basic Instruction Cycle

CH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfCH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfcauuthovohoaichau
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Ch 3 System Buses
Ch 3 System BusesCh 3 System Buses
Ch 3 System BusesNestleJuco
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architectureraksharao
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxEliasPetros
 
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxCOMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxPannaBushratul
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.pptChABiDRazZaQ
 
Introduction to Processor
Introduction to ProcessorIntroduction to Processor
Introduction to ProcessorAshish KC
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data RepresentationNaruin
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2ekul
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2Kyle
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2Naruin
 

Similar to Computer Components and the Basic Instruction Cycle (20)

CH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdfCH03-COA10e_ComputerFun5656565656565ction.pdf
CH03-COA10e_ComputerFun5656565656565ction.pdf
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Ch 3 System Buses
Ch 3 System BusesCh 3 System Buses
Ch 3 System Buses
 
03 Buses
03 Buses03 Buses
03 Buses
 
Ch 3 95
Ch 3 95Ch 3 95
Ch 3 95
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architecture
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
Control unit
Control  unitControl  unit
Control unit
 
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
 
Unit I.pptx
Unit I.pptxUnit I.pptx
Unit I.pptx
 
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxCOMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
 
Unit3 input
Unit3 inputUnit3 input
Unit3 input
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
 
Introduction to Processor
Introduction to ProcessorIntroduction to Processor
Introduction to Processor
 
Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 

More from talhashahid40

More from talhashahid40 (8)

Talha 11009 call_quiz_addressing_modes
Talha 11009 call_quiz_addressing_modesTalha 11009 call_quiz_addressing_modes
Talha 11009 call_quiz_addressing_modes
 
Only floating point lecture 7 (1)
Only floating point lecture 7 (1)Only floating point lecture 7 (1)
Only floating point lecture 7 (1)
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Lecture 9 examples (1)
Lecture 9 examples (1)Lecture 9 examples (1)
Lecture 9 examples (1)
 
Lect 8 updated (1)
Lect 8 updated (1)Lect 8 updated (1)
Lect 8 updated (1)
 
Coal (1)
Coal (1)Coal (1)
Coal (1)
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 

Recently uploaded

Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhousejana861314
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxUmerFayaz5
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxkessiyaTpeter
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bSérgio Sacani
 
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfNAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfWadeK3
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptMAESTRELLAMesa2
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...anilsa9823
 

Recently uploaded (20)

Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhouse
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptxSOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
SOLUBLE PATTERN RECOGNITION RECEPTORS.pptx
 
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43bNightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
Nightside clouds and disequilibrium chemistry on the hot Jupiter WASP-43b
 
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfNAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
 
G9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.pptG9 Science Q4- Week 1-2 Projectile Motion.ppt
G9 Science Q4- Week 1-2 Projectile Motion.ppt
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 

Computer Components and the Basic Instruction Cycle

  • 2. + Chapter 3 A Top-Level View of Computer Function and Interconnection
  • 3. + Computer Components  Contemporary computer designs are based on concepts developed by John von Neumann at the Institute for Advanced Studies, Princeton  Referred to as the von Neumann architecture and is based on three key concepts:  Data and instructions are stored in a single read-write memory  The contents of this memory are addressable by location, without regard to the type of data contained there  Execution occurs in a sequential fashion (unless explicitly modified) from one instruction to the next  Hardwired program  The result of the process of connecting the various components in the desired configuration
  • 4. + Hardwired Program Concept  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead of re-wiring, supply a new set of control signals
  • 6. + I/O Components Software • A sequence of codes or instructions • Part of the hardware interprets each instruction and generates control signals • Provide a new sequence of codes for each new program instead of rewiring the hardware Major components: • CPU • Instruction interpreter • Module of general-purpose arithmetic and logic functions (ALU & CU) • I/O Components • Input module • Contains basic components for accepting data and instructions and converting them into an internal form of signals usable by the system • Output module • Means of reporting results Software
  • 7. The Control Unit and the Arithmetic and Logic Unit constitute the Central Processing Unit Main memory Temporary storage is needed for code/ instruction and results
  • 8. Action Categories • The processor may perform some arithmetic or logic operation on data • An instruction may specify that the sequence of execution be altered • Data transferred to or from a peripheral device by transferring between the processor and an I/O module • Data transferred from processor to memory or from memory to processor Processor- memory Processor- I/O Data processing Control
  • 10. + MEMORYMemory address register (MAR) • Specifies the address in memory for the next read or write Memory buffer register (MBR) • Contains the data to be written into memory or receives the data read from memory I/O address register (I/OAR) • Specifies a particular I/O device I/O buffer register (I/OBR) • Used for the exchange of data between an I/O module and the CPU MAR MBR
  • 12. + Instruction Cycle  At the beginning of each instruction cycle the processor fetches an instruction from memory  The program counter (PC) holds the address of the instruction to be fetched next  The processor increments the PC after each instruction fetch so that it will fetch the next instruction in sequence  The fetched instruction is loaded into the instruction register (IR)  The processor interprets the instruction and performs the required action
  • 14. + FEtch  Program Counter (PC) holds address of next instruction to fetch  Processor fetches instruction from memory location pointed to by PC  Increment PC  Unless told otherwise  Instruction loaded into Instruction Register (IR)  Processor interprets instruction and performs required actions
  • 15. + Execute cycle  Processor-memory  data transfer between CPU and main memory  Processor I/O  Data transfer between CPU and I/O module  Data processing  Some arithmetic or logical operation on data  Control  Alteration of sequence of operations  e.g. jump  Combination of above
  • 16. +
  • 17. + Interrupts Mechanism by which other modules (e.g. I/O) may interrupt normal sequence of processing
  • 18. + Transfer of Control via Interrupts
  • 20. Instruction Cycle State Diagram With Interrupts
  • 21. + Interrupt Cycle  Added to instruction cycle  Processor checks for interrupt  Indicated by an interrupt signal  If no interrupt, fetch next instruction  If interrupt pending:  Suspend execution of current program  Save context  Set PC to start address of interrupt handler routine  Process interrupt through Interrupt handler routine by generating ISR (Interrupt Service Request)  Restore context and continue interrupted program
  • 22. + Time Sequence of Multiple Interrupts
  • 23. + Multiple Interrupts  Disable interrupts  Processor will ignore further interrupts while processing one interrupt  Interrupts remain pending and are checked after first interrupt has been processed  Interrupts handled in sequence as they occur  Define priorities  Low priority interrupts can be interrupted by higher priority interrupts  When higher priority interrupt has been processed, processor returns to previous interrupt
  • 24. + Connecting  All the units must be connected  Different type of connection for different type of unit  Memory  Input/Output  CPU
  • 25. + Memory Connection  Receives and sends data  Receives addresses (of locations)  Receives control signals  Read  Write  Timing
  • 26. + Input/Output Connection(1)  Similar to memory from computer’s viewpoint  Output  Receive data from computer  Send data to peripheral  Input  Receive data from peripheral  Send data to computer
  • 27. + Input/Output Connection(2)  Receive control signals from computer  Send control signals to peripherals  Receive addresses from computer  e.g. port number to identify peripheral  Send interrupt signals (control)
  • 28. + CPU Connection  Reads instruction and data  Writes out data (after processing)  Sends control signals to other units  Receives (& acts on) interrupts
  • 29. B u s I n t e r c o n n e c t i o n A communication pathway connecting two or more devices • Key characteristic is that it is a shared transmission medium Signals transmitted by any one device are available for reception by all other devices attached to the bus • If two devices transmit during the same time period their signals will overlap and become garbled Typically consists of multiple communication lines • Each line is capable of transmitting signals representing binary 1 and binary 0 Computer systems contain a number of different buses that provide pathways between components at various levels of the computer system hierarchy System bus • A bus that connects major computer components (processor, memory, I/O) The most common computer interconnection structures are based on the use of one or more system buses
  • 30. Data Bus  Data lines that provide a path for moving data among system modules  May consist of 32, 64, 128, or more separate lines  The number of lines is referred to as the width of the data bus  The number of lines determines how many bits can be transferred at a time  The width of the data bus is a key factor in determining overall system performance
  • 31. + Address Bus Control Bus  Used to designate the source or destination of the data on the data bus  If the processor wishes to read a word of data from memory it puts the address of the desired word on the address lines  Width determines the maximum possible memory capacity of the system  Used to control the access and the use of the data and address lines  Because the data and address lines are shared by all components there must be a means of controlling their use  Control signals transmit both command and timing information among system modules  Timing signals indicate the validity of data and address information  Command signals specify operations to be performed
  • 33. + Timing  Two types of co-ordination of events on bus a) Synchronous and b) Asynchronous  Synchronous  Events determined by clock signals  Control Bus includes clock line upon which a clock transmits a regular sequence of alternating 1s and 0s  A single 1-0 is a bus cycle  All devices can read clock line  Usually sync on leading edge (transference of data becomes valid by hand shake signals)  Usually a single cycle for an event
  • 35. + In this simple example,  The processor places a memory address on the address lines during the first clock cycle and may assert various status lines.  Once the address lines have stabilized, the processor issues an address enable signal.  For a read operation, the processor issues a read command at the start of the second cycle. A memory module recognizes the address  and, after a delay of one cycle, places the data on the data lines.
  • 36. + Contd..  The processor reads the data from the data lines and drops the read signal.  For a write operation, the processor puts the data on the data lines at the start of the second cycle  and issues a write command after the data lines have stabilized.  The memory module copies the information from the data lines during the third clock cycle.
  • 37. + Asynchronous Timing With asynchronous timing, the occurrence of one event on a bus follows and depends on the occurrence of a previous event.
  • 39. + In this read example of asynchronous Read diagram  The processor places address and status signals on the bus.  After pausing for these signals to stabilize, it issues a read command, indicating the presence of valid address and control signals.  The appropriate memory decodes the address and responds by placing the data on the data line.  Once the data lines have stabilized, the memory module asserts the acknowledged line to signal the processor that the data are available.
  • 40. +  Once the processor has read the data from the data lines, it de-asserts the read signal. This causes the memory module to drop the data and acknowledge lines.  Finally, once the acknowledge line is dropped, the processor removes the address information.
  • 41. + Asynchronous Timing – Write Diagram
  • 42. + A Simple Asynchronous Write Operation  The processor places the data on the data line at the same time that it puts signals on the status and address lines.  The memory module responds to the write command by copying the data from the data lines and then asserting the acknowledge line.  The processor then drops the write signal and the memory module drops the acknowledge signal.
  • 43. + Comparison b/w Synchronous and Asynchronous timing  Synchronous timing is simpler to implement and test. However, it is less flexible than asynchronous timing.  Because all devices on a synchronous bus are tied to a fixed clock rate, the system cannot deviate in clock serving time.  With asynchronous timing, a mixture of slow and fast devices, using older and newer technology, can share a bus.  Synchronous connection every device is going to be served whether it had something to send or not.