SlideShare a Scribd company logo
GORAN WNIS HAMA ALI
System Bus in Computer
Architecture
• The CPU sends various data values, instructions and
information to all the devices and components inside the
computer.
• If you look at the bottom of a motherboard you'll see a
whole network of lines or electronic pathways that join the
different components together.
• This network of wires or electronic pathways is called the
'Bus'.
INTRODUCTION
• Bottom of motherboard
INTRODUCTION (cont’d)
• A bus is a communication pathway connecting two or more
devices.
• A key characteristic of a bus is that it is a shared transmission
medium.
• Multiple devices connect to the bus, and a signal transmitted by
any one device is 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. Thus, only one device at a
time can successfully transmit.
BUS
• Typically, a bus consists of multiple communication
pathways, or lines. Each line is capable of transmitting
signals representing binary 1 and binary 0.
• several lines of a bus can be used to transmit binary digits
simultaneously (in parallel).
• For example, an 8-bit unit of data can be transmitted over
eight bus lines.
• Computer systems contain a number of different buses
that provide pathways between components at various
levels of the computer system hierarchy.
BUS cont’d
• A bus that connects major computer components (processor,
memory, I/O) is called a system bus.
• A system bus consists, typically, of from about fifty to hundreds of
separate lines. Each line is assigned a particular meaning or
function
• System bus usually is separated into three functional groups .
1. Data Bus
2. Address Bus
3. Control Bus
• In addition, there may be power distribution lines that supply
power to the attached modules.
SYSTEM BUS
SYSTEM BUS MODEL
• A collection of wires through which data is transmitted
from one part of a computer to another.
• Data Bus can be thought of as a highway on which data
travels within a computer.
• This bus connects all the computer components to the
CPU and main memory.
• The data bus may consist of 32, 64, 128, or even more
separate lines.
• The number of lines being referred to as the width of the
data bus. Because each line can carry only 1 bit at a time,
the number of lines determines how many bits can be
transferred at a time.
DATA BUS
• It is a bidirectional bus.
• The size (width) of bus determines how much data can be
transmitted at one time.
• E.g.
• A 16-bit bus can transmit 16 bits (2 bytes)of data at a time.
• 32-bit bus can transmit 32 bits(4 bytes) at a time.
• The size (width) of bus is a critical parameter in determining
system performance.
• The wider the data bus, the better, but they are expensive.
DATA BUS cont’d
• A collection of wires used to identify particular location in
main memory is called Address Bus.
• Or in other words, the information used to describe the
memory locations travels along the address bus.
• Clearly, the width of the address bus determines the
maximum possible memory capacity of the system.
• N address lines directly address 2𝑁
memory locations.
ADDRESS BUS
• It is an unidirectional bus.
• The CPU sends address to a particular memory locations
and I/O ports.
• The address bus consists of 16 , 20 , 24 or more parallel
signal lines.
ADDRESS BUS cont’d
• 8086: 20 address lines
– Could address 1 MB of memory
• Pentium: 32 address lines
– Could address 4 GB of memory
• Itanium: 64 address lines
– Could address 264 bytes of memory
ADDRESS BUS cont’d
CONTROL BUS
• Because the data and address lines are shared by all
components, there must be a means of controlling their
use.
• The control lines regulates the activity on the bus.
• Control signals transmit both command and timing
information among system modules.
• The control bus carries signals that report the status of
various devices.
 Typical control bus signals are :
• Memory Read : causes data from the addressed location
to be placed on the data bus.
• Memory Write : causes data on the bus to be written into
the addressed location
• I/O write: causes data on the bus to be output to the
addressed I/O port
• I/O read: causes data from the addressed I/O port to be
placed on the bus
CONTROL BUS
• The following figure shows how the CPU reads the value 12
from the memory location 2453:
Example : Memory Read
• CPU sends out the address value 2453 on the address bus
• Simultaneously, CPU sends out the signal R/W = 1 on
the control bus, which indicates a READ operation
• CPU then waits for the data from memory on the data bus
• The R/W = 1 signal and the address bus value 2453 will
cause the memory to retrieve the value at memory
location 2453 to be sent out on the data bus
Example: Memory Read cont’d
• Address of next instruction is in PC
• Address (MAR) is placed on address bus
• Control unit issues READ command
• Result (data from memory) appears on data bus
• Data from data bus copied into MBR
• PC incremented by 1 .
• Data (instruction) moved from MBR to IR
• MBR is now free for further data fetches
Memory Read a Closer look
• The following figure shows how the CPU writes the value 53
from the memory location 2453:
Example: Memory Write
• CPU sends out the address value 2453 on the address bus
• Simultaneously, CPU also sends out the value 53 on
the data bus
• And the signal R/W = 0 on the control bus which indicating
a WRITE operation
• The R/W = 0 signal along with the address bus value 2453
and data bus value 53 will cause the memory to store the
value 53 at the location 2453...
Example: Memory Write cont’d
Control lines also include :
• Transfer ACK: indicates that data have been accepted
from or placed on the bus.
• Bus request: indicates that a module needs to gain control
of the bus.
• Bus grant: indicates that a requesting module has been
granted control of the bus.
Control Bus cont’d
• Interrupt request: indicates that an interrupt is pending.
• Interrupt ACK: acknowledges that the pending interrupt
has been recognized.
• Reset: initializes all modules.
Control Bus cont’d
• Need to consider several design issues :
∗ Bus width
» Data and address buses.
∗ Bus type
» Dedicated or multiplexed.
∗ Bus operations
» Read, write, block transfer, interrupt, …
∗ Bus arbitration
» Centralized or distributed.
∗ Bus timing
» Synchronous or asynchronous
Bus Design Issues
• Dedicated buses
• Separate buses dedicated to carry data and address information.
• Good for performance.
• But increases cost.
• Multiplexed buses
• Data and address information is time multiplexed(defined in the next slide
) on a shared bus.
• Poor Performance
• But Reduces cost.
Bus Type
• Address and data information may be transmitted over
the same set of lines using an Address Valid control line. At
the beginning of a data transfer, the address is placed on
the bus and the Address Valid line is activated. At this
point, each module has a specified period of time to copy
the address and determine if it is the addressed module.
The address is then removed from the bus, and the same
bus connections are used for the subsequent read or write
data transfer. This method of using the same lines for
multiple purposes is known as time multiplexing. The
advantage of time multiplexing is the use of fewer lines.
Time Multiplexed Bus
• Basic operations
• Read and write.
• Block transfer operations.
• Read or write several contiguous memory locations.
• Example: cache line fill.
• Interrupt operation.
Bus Operations
• In all but the simplest systems, more than one module may need
control of the bus.
• For example, an I/O module may need to read or write directly to
memory, without sending the data to the processor.
• Because only one unit at a time can successfully transmit over the
bus, some method of arbitration is needed.
• Bus arbitration can be done either
 Statically.
Dynamically.
Bus Arbitration
• Done in a predetermined way.
• For example , we might use round-robin allocation that
rotates the bus among the masters.
• Easy to implement.
• A master may be given a bus even it does not need it.
• This kind of allocation leads to inefficient use of the bus.
Static Bus Arbitration
• Bus allocated only in response to a request.
• Each master is equipped with;
• Bus request line.
• Bus grant line.
• A master uses the bus request line to let others know that it needs
the bus.
• Before a master can use the bus, it must receive permission to use
the bus via the bus grant line.
Dynamic Bus Arbitration
• Distributed arbitration
• Arbitration hardware is distributed among the masters.
• A distributed arbitration algorithm is used to determine who should
get the bus.
Dynamic Bus Arbitration cont’d
• Fixed priority
• Each master is assigned a fixed priority.
• Highest priority master always gets the bus.
• Priorities can be assigned based on the importance of service.
• Rotating priority
• Priority is not fixed
• Several ways of changing priority
• Increase the priority as a function of waiting time
• Lowest priority for the master that just received the bus
Bus Allocation Policies
• Governs the conditions under which the current master
releases the bus
• Two types
• Non-preemptive.
• Current master voluntarily releases the bus.
• Disadvantage
• May hold bus for long time.
• Preemptive
• Forces the current master to release the bus without completing its bus
transaction.
Bus Release Policies
• Transaction-based release
• Releases bus after completing the current transaction.
• Requests bus again if it has more transactions.
• Easy to implement.
• Unnecessary overhead if only one master needs the bus.
• Demand-driven release
• Avoids unnecessary bus requests of the previous policy.
• Releases the bus only if another master requests the bus.
• More efficient.
Non-Preemptive Bus Release Policies
• Daisy-chaining
• Uses a single, shared bus request signal
• Central arbiter sends the grant signal to the first master in the chain
• Each master passes the grant signal to its neighbor if it does need the bus
• Grabs the grant signal if it wants the bus
• Easy to implement
Centralized bus arbitration
• Independent requests
• Arbiter is connected to each master
• Variety of bus allocation policies can be implemented.
• Disadvantages
• Complex to implement.
• PCI uses this implementation technique.
Centralized bus arbitration cont’d

More Related Content

Similar to 10 system bus.pdf

Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
Shah Rukh Rayaz
 
Es notes unit 2
Es notes unit 2Es notes unit 2
Es notes unit 2
Tamil Vendhan
 
Computer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUSComputer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUS
AlyssaAina1
 
UNIT 3.pptx
UNIT 3.pptxUNIT 3.pptx
UNIT 3.pptx
ssuser4ca1eb
 
AMBA.ppt
AMBA.pptAMBA.ppt
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
Saba651353
 
01buses ver2_
01buses  ver2_01buses  ver2_
01buses ver2_
Rohit Gupta
 
Report in SAD
Report in SADReport in SAD
Report in SAD
jesseledm
 
Routing Protocols
Routing ProtocolsRouting Protocols
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
Manoharan Ragavan
 
ITFT_Transmission modes
ITFT_Transmission modesITFT_Transmission modes
ITFT_Transmission modes
Swati Aggarwal
 
Network hardware essentials Lec#3
Network hardware essentials Lec#3Network hardware essentials Lec#3
Network hardware essentials Lec#3
Punjab and Superior College, Pakpattan
 
Unit 5
Unit 5Unit 5
Unit 5
sowndaryaM5
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
JAIGANESH SEKAR
 
Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01
Gaurav Goyal
 
Network protocol structure scope
Network protocol structure scopeNetwork protocol structure scope
Network protocol structure scope
Sanat Maharjan
 
12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receiving
ctedds
 
Switching Concepts presentation
Switching Concepts presentationSwitching Concepts presentation
Switching Concepts presentation
zameer Abbas
 
CH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptxCH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptx
227567
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
Medicaps University
 

Similar to 10 system bus.pdf (20)

Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 
Es notes unit 2
Es notes unit 2Es notes unit 2
Es notes unit 2
 
Computer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUSComputer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUS
 
UNIT 3.pptx
UNIT 3.pptxUNIT 3.pptx
UNIT 3.pptx
 
AMBA.ppt
AMBA.pptAMBA.ppt
AMBA.ppt
 
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
 
01buses ver2_
01buses  ver2_01buses  ver2_
01buses ver2_
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
ITFT_Transmission modes
ITFT_Transmission modesITFT_Transmission modes
ITFT_Transmission modes
 
Network hardware essentials Lec#3
Network hardware essentials Lec#3Network hardware essentials Lec#3
Network hardware essentials Lec#3
 
Unit 5
Unit 5Unit 5
Unit 5
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01Networkprotocolstructurescope 130719081246-phpapp01
Networkprotocolstructurescope 130719081246-phpapp01
 
Network protocol structure scope
Network protocol structure scopeNetwork protocol structure scope
Network protocol structure scope
 
12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receiving
 
Switching Concepts presentation
Switching Concepts presentationSwitching Concepts presentation
Switching Concepts presentation
 
CH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptxCH03 COMBUTER 000000000000000000000.pptx
CH03 COMBUTER 000000000000000000000.pptx
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
 

More from radianb

Computer Data Representation in Digital Format
Computer Data Representation in Digital FormatComputer Data Representation in Digital Format
Computer Data Representation in Digital Format
radianb
 
04 - Unit Input Output - Radian Baratasena.pdf
04 - Unit Input Output - Radian Baratasena.pdf04 - Unit Input Output - Radian Baratasena.pdf
04 - Unit Input Output - Radian Baratasena.pdf
radianb
 
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdfPanduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
radianb
 
AHP Method
AHP MethodAHP Method
AHP Method
radianb
 
IP dan Netmask
IP dan NetmaskIP dan Netmask
IP dan Netmask
radianb
 
04 - Simple Additive Weighting Method.pptx
04 - Simple Additive Weighting Method.pptx04 - Simple Additive Weighting Method.pptx
04 - Simple Additive Weighting Method.pptx
radianb
 
02-Business Intelligence.ppt
02-Business Intelligence.ppt02-Business Intelligence.ppt
02-Business Intelligence.ppt
radianb
 
Industri 40.pdf
Industri 40.pdfIndustri 40.pdf
Industri 40.pdf
radianb
 

More from radianb (8)

Computer Data Representation in Digital Format
Computer Data Representation in Digital FormatComputer Data Representation in Digital Format
Computer Data Representation in Digital Format
 
04 - Unit Input Output - Radian Baratasena.pdf
04 - Unit Input Output - Radian Baratasena.pdf04 - Unit Input Output - Radian Baratasena.pdf
04 - Unit Input Output - Radian Baratasena.pdf
 
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdfPanduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
Panduan Penelitian dan Pengabdian 2023 Draft MA 4.pdf
 
AHP Method
AHP MethodAHP Method
AHP Method
 
IP dan Netmask
IP dan NetmaskIP dan Netmask
IP dan Netmask
 
04 - Simple Additive Weighting Method.pptx
04 - Simple Additive Weighting Method.pptx04 - Simple Additive Weighting Method.pptx
04 - Simple Additive Weighting Method.pptx
 
02-Business Intelligence.ppt
02-Business Intelligence.ppt02-Business Intelligence.ppt
02-Business Intelligence.ppt
 
Industri 40.pdf
Industri 40.pdfIndustri 40.pdf
Industri 40.pdf
 

Recently uploaded

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 

Recently uploaded (20)

Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 

10 system bus.pdf

  • 1. GORAN WNIS HAMA ALI System Bus in Computer Architecture
  • 2. • The CPU sends various data values, instructions and information to all the devices and components inside the computer. • If you look at the bottom of a motherboard you'll see a whole network of lines or electronic pathways that join the different components together. • This network of wires or electronic pathways is called the 'Bus'. INTRODUCTION
  • 3. • Bottom of motherboard INTRODUCTION (cont’d)
  • 4. • A bus is a communication pathway connecting two or more devices. • A key characteristic of a bus is that it is a shared transmission medium. • Multiple devices connect to the bus, and a signal transmitted by any one device is 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. Thus, only one device at a time can successfully transmit. BUS
  • 5. • Typically, a bus consists of multiple communication pathways, or lines. Each line is capable of transmitting signals representing binary 1 and binary 0. • several lines of a bus can be used to transmit binary digits simultaneously (in parallel). • For example, an 8-bit unit of data can be transmitted over eight bus lines. • Computer systems contain a number of different buses that provide pathways between components at various levels of the computer system hierarchy. BUS cont’d
  • 6. • A bus that connects major computer components (processor, memory, I/O) is called a system bus. • A system bus consists, typically, of from about fifty to hundreds of separate lines. Each line is assigned a particular meaning or function • System bus usually is separated into three functional groups . 1. Data Bus 2. Address Bus 3. Control Bus • In addition, there may be power distribution lines that supply power to the attached modules. SYSTEM BUS
  • 8. • A collection of wires through which data is transmitted from one part of a computer to another. • Data Bus can be thought of as a highway on which data travels within a computer. • This bus connects all the computer components to the CPU and main memory. • The data bus may consist of 32, 64, 128, or even more separate lines. • The number of lines being referred to as the width of the data bus. Because each line can carry only 1 bit at a time, the number of lines determines how many bits can be transferred at a time. DATA BUS
  • 9. • It is a bidirectional bus. • The size (width) of bus determines how much data can be transmitted at one time. • E.g. • A 16-bit bus can transmit 16 bits (2 bytes)of data at a time. • 32-bit bus can transmit 32 bits(4 bytes) at a time. • The size (width) of bus is a critical parameter in determining system performance. • The wider the data bus, the better, but they are expensive. DATA BUS cont’d
  • 10. • A collection of wires used to identify particular location in main memory is called Address Bus. • Or in other words, the information used to describe the memory locations travels along the address bus. • Clearly, the width of the address bus determines the maximum possible memory capacity of the system. • N address lines directly address 2𝑁 memory locations. ADDRESS BUS
  • 11. • It is an unidirectional bus. • The CPU sends address to a particular memory locations and I/O ports. • The address bus consists of 16 , 20 , 24 or more parallel signal lines. ADDRESS BUS cont’d
  • 12. • 8086: 20 address lines – Could address 1 MB of memory • Pentium: 32 address lines – Could address 4 GB of memory • Itanium: 64 address lines – Could address 264 bytes of memory ADDRESS BUS cont’d
  • 13. CONTROL BUS • Because the data and address lines are shared by all components, there must be a means of controlling their use. • The control lines regulates the activity on the bus. • Control signals transmit both command and timing information among system modules. • The control bus carries signals that report the status of various devices.
  • 14.  Typical control bus signals are : • Memory Read : causes data from the addressed location to be placed on the data bus. • Memory Write : causes data on the bus to be written into the addressed location • I/O write: causes data on the bus to be output to the addressed I/O port • I/O read: causes data from the addressed I/O port to be placed on the bus CONTROL BUS
  • 15. • The following figure shows how the CPU reads the value 12 from the memory location 2453: Example : Memory Read
  • 16. • CPU sends out the address value 2453 on the address bus • Simultaneously, CPU sends out the signal R/W = 1 on the control bus, which indicates a READ operation • CPU then waits for the data from memory on the data bus • The R/W = 1 signal and the address bus value 2453 will cause the memory to retrieve the value at memory location 2453 to be sent out on the data bus Example: Memory Read cont’d
  • 17. • Address of next instruction is in PC • Address (MAR) is placed on address bus • Control unit issues READ command • Result (data from memory) appears on data bus • Data from data bus copied into MBR • PC incremented by 1 . • Data (instruction) moved from MBR to IR • MBR is now free for further data fetches Memory Read a Closer look
  • 18. • The following figure shows how the CPU writes the value 53 from the memory location 2453: Example: Memory Write
  • 19. • CPU sends out the address value 2453 on the address bus • Simultaneously, CPU also sends out the value 53 on the data bus • And the signal R/W = 0 on the control bus which indicating a WRITE operation • The R/W = 0 signal along with the address bus value 2453 and data bus value 53 will cause the memory to store the value 53 at the location 2453... Example: Memory Write cont’d
  • 20. Control lines also include : • Transfer ACK: indicates that data have been accepted from or placed on the bus. • Bus request: indicates that a module needs to gain control of the bus. • Bus grant: indicates that a requesting module has been granted control of the bus. Control Bus cont’d
  • 21. • Interrupt request: indicates that an interrupt is pending. • Interrupt ACK: acknowledges that the pending interrupt has been recognized. • Reset: initializes all modules. Control Bus cont’d
  • 22. • Need to consider several design issues : ∗ Bus width » Data and address buses. ∗ Bus type » Dedicated or multiplexed. ∗ Bus operations » Read, write, block transfer, interrupt, … ∗ Bus arbitration » Centralized or distributed. ∗ Bus timing » Synchronous or asynchronous Bus Design Issues
  • 23. • Dedicated buses • Separate buses dedicated to carry data and address information. • Good for performance. • But increases cost. • Multiplexed buses • Data and address information is time multiplexed(defined in the next slide ) on a shared bus. • Poor Performance • But Reduces cost. Bus Type
  • 24. • Address and data information may be transmitted over the same set of lines using an Address Valid control line. At the beginning of a data transfer, the address is placed on the bus and the Address Valid line is activated. At this point, each module has a specified period of time to copy the address and determine if it is the addressed module. The address is then removed from the bus, and the same bus connections are used for the subsequent read or write data transfer. This method of using the same lines for multiple purposes is known as time multiplexing. The advantage of time multiplexing is the use of fewer lines. Time Multiplexed Bus
  • 25. • Basic operations • Read and write. • Block transfer operations. • Read or write several contiguous memory locations. • Example: cache line fill. • Interrupt operation. Bus Operations
  • 26. • In all but the simplest systems, more than one module may need control of the bus. • For example, an I/O module may need to read or write directly to memory, without sending the data to the processor. • Because only one unit at a time can successfully transmit over the bus, some method of arbitration is needed. • Bus arbitration can be done either  Statically. Dynamically. Bus Arbitration
  • 27. • Done in a predetermined way. • For example , we might use round-robin allocation that rotates the bus among the masters. • Easy to implement. • A master may be given a bus even it does not need it. • This kind of allocation leads to inefficient use of the bus. Static Bus Arbitration
  • 28. • Bus allocated only in response to a request. • Each master is equipped with; • Bus request line. • Bus grant line. • A master uses the bus request line to let others know that it needs the bus. • Before a master can use the bus, it must receive permission to use the bus via the bus grant line. Dynamic Bus Arbitration
  • 29. • Distributed arbitration • Arbitration hardware is distributed among the masters. • A distributed arbitration algorithm is used to determine who should get the bus. Dynamic Bus Arbitration cont’d
  • 30. • Fixed priority • Each master is assigned a fixed priority. • Highest priority master always gets the bus. • Priorities can be assigned based on the importance of service. • Rotating priority • Priority is not fixed • Several ways of changing priority • Increase the priority as a function of waiting time • Lowest priority for the master that just received the bus Bus Allocation Policies
  • 31. • Governs the conditions under which the current master releases the bus • Two types • Non-preemptive. • Current master voluntarily releases the bus. • Disadvantage • May hold bus for long time. • Preemptive • Forces the current master to release the bus without completing its bus transaction. Bus Release Policies
  • 32. • Transaction-based release • Releases bus after completing the current transaction. • Requests bus again if it has more transactions. • Easy to implement. • Unnecessary overhead if only one master needs the bus. • Demand-driven release • Avoids unnecessary bus requests of the previous policy. • Releases the bus only if another master requests the bus. • More efficient. Non-Preemptive Bus Release Policies
  • 33. • Daisy-chaining • Uses a single, shared bus request signal • Central arbiter sends the grant signal to the first master in the chain • Each master passes the grant signal to its neighbor if it does need the bus • Grabs the grant signal if it wants the bus • Easy to implement Centralized bus arbitration
  • 34. • Independent requests • Arbiter is connected to each master • Variety of bus allocation policies can be implemented. • Disadvantages • Complex to implement. • PCI uses this implementation technique. Centralized bus arbitration cont’d