SlideShare a Scribd company logo
1 of 26
Basic Operational Concepts
• To Execute a given task as per the
appropriate program
• Program consists of list of instructions
stored in memory
1
Interconnection between Processor and Memory 2
Registers
Registers are fast stand-alone storage locations that hold data
temporarily. Multiple registers are needed to facilitate the
operation of the CPU.
Some of these registers are
 Two registers-MAR (Memory Address Register) and
MDR (Memory Data Register) : To handle the data
transfer between main memory and processor. MAR-
Holds addresses, MDR-Holds data
 Instruction register (IR) : Hold the Instructions that is
currently being executed
 Program counter: Points to the next instructions that is
to be fetched from memory
3
Examples: - ADD LOCA, R0
• This instruction adds the operand at memory
location LOCA, to operand in register R0 & places
the sum into register.
• This instruction requires the performance of
several steps,
1. First the instruction is fetched from the memory into
the processor.
2. The operand at LOCA is fetched and added to the
contents of R0
3. Finally the resulting sum is stored in the register R0
Operating steps
1. Programs reside in the memory & usually get these
through the I/P unit.
2. Execution of the program starts when the PC is set to point
at the first instruction of the program.
3. Contents of PC are transferred to MAR and a Read Control
Signal is sent to the memory.
4. After the time required to access the memory elapses, the
address word is read out of the memory and loaded into
the MDR.
5. Now contents of MDR are transferred to the IR & now the
instruction is ready to be decoded and executed.
6. If the instruction involves an operation by the ALU, it is
necessary to obtain the required operands.
Operating steps
7. An operand in the memory is fetched by sending its
address to MAR & Initiating a read cycle.
8. When the operand has been read from the memory
to the MDR, it is transferred from MDR to the ALU.
9. After one or two such repeated cycles, the ALU
can perform the desired operation.
10. If the result of this operation is to be stored in the
memory, the result is sent to MDR.
11. Address of location where the result is stored is
sent to MAR & a write cycle is initiated.
12. The contents of PC are incremented so that PC
points to the next instruction that is to be executed.
Bus Structures and Bus
Operation
7
Buses
• A bus is a shared communication link, which uses
one set of wires to connect multiple subsystems.
• The two major advantages of the bus
organization are versatility and low cost.
• Most modern computers use single bus
arrangement for connecting I/O devices to CPU &
Memory.
• The bus enables all the devices connected to it to
exchange information.
8
Buses
• Bus consists of 3 set of lines : Address, Data,
Control
• Processor places a particular address (unique for
an I/O Dev.) on address lines.
• Device which recognizes this address responds to
the commands issued on the Control lines.
• Processor requests for either Read / Write.
• The data will be placed on Data lines.
Data Bus
• Carries data
– Remember that there is no difference between
“data” and “instruction” at this level
• Width is a key determinant of performance
– 8, 16, 32, 64 bit
10
Address bus
• Identify the source or destination of data
• e.g. CPU needs to read an instruction (data)
from a given location in memory
• Bus width determines maximum memory
capacity of system
– e.g. 8080 has 16 bit address bus giving 64k
address space
11
Control Bus
• Control and timing information
– Memory read/write signal
– Interrupt request
– Clock signals
– Reset
– Bus request / bus grant
– Transfer ACK
– I/O read and I/O write
12
Bus Interconnection Scheme
13
Big and Yellow?
• What do buses look like?
– Parallel lines on circuit boards
– Ribbon cables
14
Bus Types
• Bus is a shared communication link.
• It is used to connect multiple subsystems.
Single bus structure
Multiple bus structure
15
Single bus structure
16
Multiple bus structure - Traditional (ISA)
(with cache)
17
High Performance Bus
18
Bus Operations
• Bus includes:
1. Address lines
2. Data lines
3. Control lines
• Data transfer can be in two ways:
1. Synchronous bus
2. Asynchronous bus
19
Bus Operations
1. Synchronous bus - All devices derive timing
information from a common clock cycle.
2. Asynchronous bus – common clock cycle is
eliminated and data transfer is achieved by
handshake between processor and device
being connected
20
Bus Operations
Handshake
21
BUS Arbitration
• Bus Arbitration refers to the process by which the current bus master
accesses and then leaves the control of the bus and passes it to the
another bus requesting processor unit.
• The controller that has access to a bus at an instance is known as Bus
master.
• A conflict may arise if the number of DMA controllers or other
controllers or processors try to access the common bus at the same
time, but access can be given to only one of those.
• Only one processor or controller can be Bus master at the same point
of time.
• To resolve these conflicts, Bus Arbitration procedure is implemented
to coordinate the activities of all devices requesting memory
transfers.
• The selection of the bus master must take into account the needs of
various devices by establishing a priority system for gaining access to
the bus.
• The Bus Arbiter decides who would become current bus master.
BUS Arbitration
• There are two approaches to bus arbitration:
–Centralized bus arbitration – A single bus
arbiter performs the required arbitration.
–Distributed bus arbitration – All devices
participate in the selection of the next bus
master.
• Methods of BUS Arbitration –
There are three bus arbitration methods:
• Daisy Chaining method
• Polling or Rotating Priority method
• Fixed priority or Independent Request method
Daisy Chaining method
• It is a centralized bus arbitration method. During
any bus cycle, the bus master may be any device –
the processor or any DMA controller unit,
connected to the bus.
Polling or Rotating Priority
method
• In this method, the devices are assigned unique
priorities and complete to access the bus, but the
priorities are dynamically changed to give every
device an opportunity to access the bus.
Fixed priority or Independent Request
method
• In this method, the bus control passes from one
device to another only through the centralized
bus arbiter.

More Related Content

What's hot

Address mapping
Address mappingAddress mapping
Address mappingrockymani
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmssangrampatil81
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mappingSnehalataAgasti
 
Computer registers
Computer registersComputer registers
Computer registersJatin Grover
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Cache performance considerations
Cache performance considerationsCache performance considerations
Cache performance considerationsSlideshare
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)rishi ram khanal
 
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization Amit kashyap
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)vani261
 
Memory organization
Memory organizationMemory organization
Memory organizationishapadhy
 

What's hot (20)

Mapping
MappingMapping
Mapping
 
Address mapping
Address mappingAddress mapping
Address mapping
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mapping
 
Dma
DmaDma
Dma
 
Computer registers
Computer registersComputer registers
Computer registers
 
VIRTUAL MEMORY
VIRTUAL MEMORYVIRTUAL MEMORY
VIRTUAL MEMORY
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Computer registers
Computer registersComputer registers
Computer registers
 
Cache performance considerations
Cache performance considerationsCache performance considerations
Cache performance considerations
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Arbitration in computer organization
 Arbitration in computer organization   Arbitration in computer organization
Arbitration in computer organization
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Registers
RegistersRegisters
Registers
 

Similar to Basic operational concepts.ppt

Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5wajanga
 
10 system bus.pdf
10 system bus.pdf10 system bus.pdf
10 system bus.pdfradianb
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Shah Rukh Rayaz
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
 
top level view of computer function and interconnection
top level view of computer function and interconnectiontop level view of computer function and interconnection
top level view of computer function and interconnectionSajid Marwat
 
Bindura university of science education
Bindura university of science educationBindura university of science education
Bindura university of science educationInnocent Tauzeni
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
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 Basic operational concepts.ppt (20)

Ch04-new.pptx
Ch04-new.pptxCh04-new.pptx
Ch04-new.pptx
 
Es notes unit 2
Es notes unit 2Es notes unit 2
Es notes unit 2
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
dem.pptx
dem.pptxdem.pptx
dem.pptx
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
10 system bus.pdf
10 system bus.pdf10 system bus.pdf
10 system bus.pdf
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and Organization
 
Co notes
Co notesCo notes
Co notes
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
Co notes3 sem
Co notes3 semCo notes3 sem
Co notes3 sem
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Unit 5
Unit 5Unit 5
Unit 5
 
top level view of computer function and interconnection
top level view of computer function and interconnectiontop level view of computer function and interconnection
top level view of computer function and interconnection
 
Bindura university of science education
Bindura university of science educationBindura university of science education
Bindura university of science education
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
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
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

Basic operational concepts.ppt

  • 1. Basic Operational Concepts • To Execute a given task as per the appropriate program • Program consists of list of instructions stored in memory 1
  • 3. Registers Registers are fast stand-alone storage locations that hold data temporarily. Multiple registers are needed to facilitate the operation of the CPU. Some of these registers are  Two registers-MAR (Memory Address Register) and MDR (Memory Data Register) : To handle the data transfer between main memory and processor. MAR- Holds addresses, MDR-Holds data  Instruction register (IR) : Hold the Instructions that is currently being executed  Program counter: Points to the next instructions that is to be fetched from memory 3
  • 4. Examples: - ADD LOCA, R0 • This instruction adds the operand at memory location LOCA, to operand in register R0 & places the sum into register. • This instruction requires the performance of several steps, 1. First the instruction is fetched from the memory into the processor. 2. The operand at LOCA is fetched and added to the contents of R0 3. Finally the resulting sum is stored in the register R0
  • 5. Operating steps 1. Programs reside in the memory & usually get these through the I/P unit. 2. Execution of the program starts when the PC is set to point at the first instruction of the program. 3. Contents of PC are transferred to MAR and a Read Control Signal is sent to the memory. 4. After the time required to access the memory elapses, the address word is read out of the memory and loaded into the MDR. 5. Now contents of MDR are transferred to the IR & now the instruction is ready to be decoded and executed. 6. If the instruction involves an operation by the ALU, it is necessary to obtain the required operands.
  • 6. Operating steps 7. An operand in the memory is fetched by sending its address to MAR & Initiating a read cycle. 8. When the operand has been read from the memory to the MDR, it is transferred from MDR to the ALU. 9. After one or two such repeated cycles, the ALU can perform the desired operation. 10. If the result of this operation is to be stored in the memory, the result is sent to MDR. 11. Address of location where the result is stored is sent to MAR & a write cycle is initiated. 12. The contents of PC are incremented so that PC points to the next instruction that is to be executed.
  • 7. Bus Structures and Bus Operation 7
  • 8. Buses • A bus is a shared communication link, which uses one set of wires to connect multiple subsystems. • The two major advantages of the bus organization are versatility and low cost. • Most modern computers use single bus arrangement for connecting I/O devices to CPU & Memory. • The bus enables all the devices connected to it to exchange information. 8
  • 9. Buses • Bus consists of 3 set of lines : Address, Data, Control • Processor places a particular address (unique for an I/O Dev.) on address lines. • Device which recognizes this address responds to the commands issued on the Control lines. • Processor requests for either Read / Write. • The data will be placed on Data lines.
  • 10. Data Bus • Carries data – Remember that there is no difference between “data” and “instruction” at this level • Width is a key determinant of performance – 8, 16, 32, 64 bit 10
  • 11. Address bus • Identify the source or destination of data • e.g. CPU needs to read an instruction (data) from a given location in memory • Bus width determines maximum memory capacity of system – e.g. 8080 has 16 bit address bus giving 64k address space 11
  • 12. Control Bus • Control and timing information – Memory read/write signal – Interrupt request – Clock signals – Reset – Bus request / bus grant – Transfer ACK – I/O read and I/O write 12
  • 14. Big and Yellow? • What do buses look like? – Parallel lines on circuit boards – Ribbon cables 14
  • 15. Bus Types • Bus is a shared communication link. • It is used to connect multiple subsystems. Single bus structure Multiple bus structure 15
  • 17. Multiple bus structure - Traditional (ISA) (with cache) 17
  • 19. Bus Operations • Bus includes: 1. Address lines 2. Data lines 3. Control lines • Data transfer can be in two ways: 1. Synchronous bus 2. Asynchronous bus 19
  • 20. Bus Operations 1. Synchronous bus - All devices derive timing information from a common clock cycle. 2. Asynchronous bus – common clock cycle is eliminated and data transfer is achieved by handshake between processor and device being connected 20
  • 22. BUS Arbitration • Bus Arbitration refers to the process by which the current bus master accesses and then leaves the control of the bus and passes it to the another bus requesting processor unit. • The controller that has access to a bus at an instance is known as Bus master. • A conflict may arise if the number of DMA controllers or other controllers or processors try to access the common bus at the same time, but access can be given to only one of those. • Only one processor or controller can be Bus master at the same point of time. • To resolve these conflicts, Bus Arbitration procedure is implemented to coordinate the activities of all devices requesting memory transfers. • The selection of the bus master must take into account the needs of various devices by establishing a priority system for gaining access to the bus. • The Bus Arbiter decides who would become current bus master.
  • 23. BUS Arbitration • There are two approaches to bus arbitration: –Centralized bus arbitration – A single bus arbiter performs the required arbitration. –Distributed bus arbitration – All devices participate in the selection of the next bus master. • Methods of BUS Arbitration – There are three bus arbitration methods: • Daisy Chaining method • Polling or Rotating Priority method • Fixed priority or Independent Request method
  • 24. Daisy Chaining method • It is a centralized bus arbitration method. During any bus cycle, the bus master may be any device – the processor or any DMA controller unit, connected to the bus.
  • 25. Polling or Rotating Priority method • In this method, the devices are assigned unique priorities and complete to access the bus, but the priorities are dynamically changed to give every device an opportunity to access the bus.
  • 26. Fixed priority or Independent Request method • In this method, the bus control passes from one device to another only through the centralized bus arbiter.