SlideShare ist ein Scribd-Unternehmen logo
1 von 55
EC305
Computer Architecture
Topic: компьютерийн систем ба интерфейс болон
түгээгүүрүүд

week13
Өгөгдлийн шугам түүний үндсэн
үзүүлэлтүүд

• Хэд хэдэн төхөөрөмжүүд холболтын нэгж багцаар
холбогдоно.
• Өгөгдөл дамжуулалтын хугацаанд зөвхөн нэг
төхөөрөмж идэвхжинэ.
• Өгөгдлийн түгээгүүрийн нэгж шугам бүр нэг бит
сигнал авах ба түгээгүүрээр битийн багц урсгал
дамжигдана.
• Өгөгдлийн түгээгүүрийн шугам нь ихэнхдээ
мэдээллийг зэрэгцээгээр дамжуулна.
• Компьютерийн систем нь хэд хэдэн өгөгдлийн
түгээгүүрээс тогтддог.
Түгээрийн бүтэц – Structure
• Цуваа болон зэрэгцээ
• Өгөгдөл тавилтын зориулалт бүрд
ойролцоогоор 50-100 шугам багцлагдана.
• Өгөгдлийн дамжуулах шугамуудын ангилал
– Өгөгдлийн шугам – Хаягийн шугам
– Удирдлагын сигналын шугам
– Тэжээлийн шугам
Buses – Structure (continued)
• Зэрэгцээ түгээгүүрийн бүтэц
–
–
–
–

Data
Address
Control
Power

• Цуваа - Bus lines (serial)
– Өгөгдөл, хаяг болон удирдлагын битүүд цуваагаар
дараалан нэгж шугам дээр тавигдана.
– зарим тохиолдолд удирдлагын битийг авах нэмэлт
шугам байдаг.
– Тэжээл
Buses – Structure (continued)
• Өгөгдлийн шугам
– Өгөгдлүүд уншигдах болон бичигдэнэ.
– Шугамын тоо нь түгээгүүрийн өргөнөөр
тодорхойлогдоно.

• Хаягийн шугам
– өгөгдлийн унших болох бичигдэх талбарын хаягийг
заана.
– Хаягийн шугамын өргөн нь санах байгууламжийн
хэмжээгээр тодорхойлогдоно.
– Ахлах битээр хаягийн модуль, бага битээр
талбарын модулиуд тус тус тавигдана.
Удирдлагын шугам
• Хэд хэдэн төхөөрөмжүүд нэгж түгээгүүгээр
холбогдоход удирдлагын бит шаардагдана.
• Хугацааны
• Typical lines include:
–
–
–
–
–
–
–
–
–

Memory Read or Write
I/O Read or Write
Transfer ACK
Bus request
Bus grant
Interrupt request
Interrupt acknowledgement
Clock
Reset
Operation – Sending Data
• Obtain the use of the bus
• Transfer the data via the bus
• Possible acknowledgement
Operation – Requesting Data
•
•
•
•

Obtain the use of the bus
Transfer the data request via the bus
Wait for other module to send data
Possible acknowledgement
Classic Bus Arrangement
• All components attached to bus (STD bus)
• Due to Moore's law, more and more functionality
exists on a single board, so major components are
now on same board or even the same chip
Physical Implementations
• Parallel lines on circuit boards
(ISA or PCI)
• Ribbon cables (IDE)
Physical Implementations (continued)
• Strip connectors on
mother boards (PC104)
• External cabling (USB or
Firewire)
Single Bus Problems
Lots of devices on one bus leads to:
• Physically long buses
– Propagation delays – Long data paths mean that coordination of bus use can adversely affect performance
– Reflections/termination problems

• Aggregate data transfer approaches bus capacity
• Slower devices dictate the maximum bus speed
Multiple Buses
• Most systems use multiple buses to overcome these
problems
• Requires bridge to buffer (FIFO) data due to
differences in bus speeds
• Sometimes I/O devices also contain buffering (FIFO)
Multiple Buses – Benefits
• Isolate processor-to-memory traffic from I/O
traffic
• Support wider variety of interfaces
• Processor has bus that connects as direct
interface to chip, then an expansion bus
interface interfaces it to external devices (ISA)
• Cache (if it exists) may act as the interface to
system bus
Expansion Bus Example
Mezzanine Approach
• Differences in I/O speeds demands separating
devices.
• Separate items that are high-speed and those that
are not
• An additional high-speed bus is added to
communicate with the faster devices and also the
slower expansion bus
• Advantage is that high-speed devices are brought
closer to processor
Mezzanine Approach (continued)
Pentium
Example

(Source: http://www.amd.com/usen/assets/content_type/white_papers_and_tech_docs/21644.pdf)
Bus Types
Dedicated vs. Time Multiplexed
• Dedicated
– Separate data & address lines

• Time multiplexed
– Shared lines
– Address valid or data valid control line
– Advantage - fewer lines
– Disadvantages
• More complex control
• Degradation of performance
Bus Types
Physical Dedication
– Physically separating buses and controlling them
with a "channel changer“
– Advantages – faster
– Disadvantages – physically larger
Bus Arbitration
• Listening to the bus is not usually a problem
• Talking on the bus is a problem – need
arbitration to allow more than one module to
control the bus at one time
• Arbitration may be centralised or distributed
Centralised vs. Distributed Arbitration
• Centralised Arbitration
– Single hardware device controlling bus access –
Bus Controller/Arbiter
– May be part of CPU or separate

• Distributed Arbitration
– Each module may claim the bus
– Access control logic is on all modules
– Modules work together to control bus
Bus Timing
• Co-ordination of events on bus
• Synchronous – controlled by a clock
• Asynchronous – timing is handled by welldefined specifications, i.e., a response is
delivered within a specified time after a
request
Synchronous Bus Timing
•
•
•
•
•
•
•
•

Events determined by clock signals
Control Bus includes clock line
A single 1-0 cycle is a bus cycle
All devices can read clock line
Usually sync on leading/rising edge
Usually a single cycle for an event
Analogy – Orchestra conductor with baton
Usually stricter in terms of its timing
requirements
Synchronous Bus Timing
Asynchronous Timing
• Devices must have certain tolerances to
provide responses to signal stimuli
• More flexible allowing slower devices to
communicate on same bus with faster devices.
• Performance of faster devices, however, is
limited to speed of bus
Asynchronous Timing – Read
Asynchronous Timing – Write
Bus Width
• Wider the bus the better the data transfer rate
or the wider the addressable memory space
• Serial “width” is determined by
length/duration of frame
Peripheral Component
Interconnection (PCI) Bus
Brief history
• Original PC came out with 8-bit ISA bus which was
slow, but had enormous amount of existing
equipment.
• For AT, IBM expanded ISA bus to 16-bit by adding
connector
• Many PC board manufacturers started making higher
speed, proprietary buses
• Intel released the patents to its PCI and this soon
took over as the standard
PCI Bus (continued)
Brief list of PCI 2.2 characteristics
• General purpose
• Mezzanine or peripheral bus
• Supports single- and multi-processor architectures
• 32 or 64 bit – multiplexed address and data
• Synchronous timing
• Centralized arbitration (requires bus controller)
• 49 mandatory lines (see Table 3.3)
Required PCI Bus Lines (Table 3.3)
• Systems lines – clock and reset
• Address & Data
– 32 time multiplexed lines for address/data
– Parity lines

• Interface Control
– Hand shaking lines between bus controller and
devices
– Selects devices
– Allows devices to indicates when they are ready
Required PCI Bus Lines (continued)
• Arbitration
– Not shared
– Direct connection to PCI bus arbiter

• Error lines – parity and critical/system
Optional PCI Bus Lines
There are 51 optional PCI 2.2 bus lines
• Interrupt lines
– Not shared
– Multiple lines for multiple interrupts on a single device

• Cache support
• 64-bit Bus Extension
– Additional 32 lines
– Time multiplexed
– 2 lines to enable devices to agree to use 64-bit transfer

• JTAG/Boundary Scan – For testing procedures
PCI Commands
• Transaction between initiator (master) and
target
• Master claims bus
• During address phase of write, 4 C/BE lines
signal the transaction type
• One or more data phases
PCI Transaction Types
• Interrupt acknowledge – prompts identification from
interrupting device
• Special cycle – message broadcast
• I/O read – read to I/O address space
• I/O write – write to I/O address space
• Memory read – 1 or 2 data transfer cycles
• Memory read line – 3 to 12 data transfer cycles
• Memory read multiple – more than 12 data transfers
PCI Transaction Types (continued)
• Memory write – writing 1 or more cycles to memory
• Memory write and invalidate – writing 1 or more cycles to
memory allowing for cache write-back policy
• Configuration read – reading PCI device's configuration (up to
256 configuration registers per device)
• Configuration write – writing PCI device's configuration (up to
256 configuration registers per device)
• Dual address cycle – indication of 64-bit addressing on 32 bit
lines
PCI Read Timing Diagram
PCI Bus Arbiter
PCI Bus Arbitration Between Two Masters
Higher Performance External Buses
• Historically, parallel has been used for high speed
peripherals (e.g., SCSI, parallel port zip drives rather
than serial port). High speed serial, however, has
begun to replace this need
• Serial communication also used to be restricted to
point-to-point communications. Now there's an
increasing prevalence of multipoint
IEEE 1394 FireWire
• Inexpensive alternative needed for SCSI
• High performance serial bus
• Serial implies cheaper cabling (fewer wires, less
shielding, less synchronization)
• Small connectors for smaller devices
• Fast
• Low cost
• Easy to implement
• Also being used in digital cameras, VCRs and TVs
FireWire Configuration
• Daisy chain/tree structure (Mac O/S Help
indicates that daisy chain is preference for up
to 16 devices)
• Up to 63 devices on single port – really 64 of
which one is the interface itself
• Up to 1022 buses can be connected with
bridges
• Automatic configuration for addressing
• No bus terminators
• Hot swappable
FireWire 3 Layer Stack
FireWire 3 Layer Stack

Physical Layer
• Transmission medium, electrical and signaling
characteristics
• Up to 400 Mbps
• Arbitration – basic form
– Fair arbitration
– Urgent arbitration

• Link layer packet transmission
– Asynchronous
– Isochronous
Arbitration – Basic form
• Upon automatic configuration, each tree designates a
root
• Parent/child relationship forms tree topology
• Root acts as central arbitrator
• Requests are first-come-first-serve
• Simultaneous requests are granted first to the closest
node to the root and second to the lower ID number
• Two additional functions are used to best allocate the
use of the bus
– Fair arbitration
– Urgent arbitration
Fair arbitration
• Keeps one device from monopolizing the bus by
allowing only one request during a set fairness
interval
• At beginning of interval, all devices set
arbitration_enable flag
• Each device may compete for bus access
• If bus access is granted, arbitration_enable flag is
cleared prohibiting bus access until next fairness
interval
Urgent arbitration
• Allows overriding of fairness interval by nodes
configured as having an urgent priority
• Provides support for devices with severe
latency requirements or high throughput such
as video
• They may use the bus up to 75% of the time,
i.e., for each non-urgent packet, three urgent
packets may be sent
FireWire 3 Layer Stack

Link Layer
• Transmission of data in packets
• Two types of transmission supported:
– Asynchronous
– Isochronous
Asynchronous
Packets contain
• Variable amount of data
• Several bytes of transaction layer information
• Addressing information
• Acknowledgement
Asynchronous Sequence
Asynchronous Sequence (continued)
• Arbitration sequence – gives one device control of the
bus
• Packet transmission – packet contains source and
destination IDs, type, CRC, and possible data
• Acknowledgement gap – allows destination to receive
and process message
• Acknowledgement – destination sends packet
containing source and destination IDs and code
indicating action taken
• Subaction gap – idle period between packets to avoid
bus contention
Isochronous
•
•
•
•

Fixed packet size w/variable amount of data
Simplified addressing
No acknowledgement
Periodically, cycle_start packet is sent indicating
period where only isochronous packets are
transmitted
• Transaction – Request-response protocol (This
is what your code sees. It separates the
programmer from the packet-level stuff)
Isochronous Sequence
Foreground Reading
• Stallings, chapter 3 (all of it)
• www.pcguide.com/ref/mbsys/buses/
• In fact, read the whole site!
• www.pcguide.com/

Weitere ähnliche Inhalte

Was ist angesagt?

02 computer evolution and performance
02 computer evolution and performance02 computer evolution and performance
02 computer evolution and performancedilip kumar
 
Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnectionSher Shah Merkhel
 
Point to point interconnect
Point to point interconnectPoint to point interconnect
Point to point interconnectKinza Razzaq
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusHem Pokhrel
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
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
 
Chapter 6: Expansion Buses
Chapter 6: Expansion BusesChapter 6: Expansion Buses
Chapter 6: Expansion Busesaskme
 
Computer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingComputer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingBudditha Hettige
 

Was ist angesagt? (20)

Buses
BusesBuses
Buses
 
02 computer evolution and performance
02 computer evolution and performance02 computer evolution and performance
02 computer evolution and performance
 
01 introduction
01 introduction01 introduction
01 introduction
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
03 top level view of computer function and interconnection
03 top level view of computer function and interconnection03 top level view of computer function and interconnection
03 top level view of computer function and interconnection
 
07 input output
07 input output07 input output
07 input output
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
Bus
BusBus
Bus
 
Bus stucture
Bus stuctureBus stucture
Bus stucture
 
Ec305.13 buses mgl
Ec305.13 buses mglEc305.13 buses mgl
Ec305.13 buses mgl
 
Point to point interconnect
Point to point interconnectPoint to point interconnect
Point to point interconnect
 
Introduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control BusIntroduction to Bus | Address, Data, Control Bus
Introduction to Bus | Address, Data, Control Bus
 
07 input output
07 input output07 input output
07 input output
 
16 control unit
16 control unit16 control unit
16 control unit
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
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
 
Chapter 6: Expansion Buses
Chapter 6: Expansion BusesChapter 6: Expansion Buses
Chapter 6: Expansion Buses
 
Multiprocessors
MultiprocessorsMultiprocessors
Multiprocessors
 
DMA
DMADMA
DMA
 
Computer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressingComputer System Architecture Lecture Note 7 addressing
Computer System Architecture Lecture Note 7 addressing
 

Andere mochten auch

Andere mochten auch (10)

Multiple processor (ppt 2010)
Multiple processor (ppt 2010)Multiple processor (ppt 2010)
Multiple processor (ppt 2010)
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Lecture 48
Lecture 48Lecture 48
Lecture 48
 
Arbitration
ArbitrationArbitration
Arbitration
 
Multiprocessor architecture
Multiprocessor architectureMultiprocessor architecture
Multiprocessor architecture
 
Arbitration notes
Arbitration notesArbitration notes
Arbitration notes
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Presentation on arbitration
Presentation on arbitrationPresentation on arbitration
Presentation on arbitration
 

Ähnlich wie Ec305.13 buses mgl

10 system bus.pdf
10 system bus.pdf10 system bus.pdf
10 system bus.pdfradianb
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.encAnwal Mirza
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Shah Rukh Rayaz
 
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.pptAmirZaman21
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm componentslambanaveen
 
Scalable multiprocessors
Scalable multiprocessorsScalable multiprocessors
Scalable multiprocessorsKomal Divate
 
Computer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUSComputer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUSAlyssaAina1
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networkingArul Kumar
 
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptxSaba651353
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Fleurati
 

Ähnlich wie Ec305.13 buses mgl (20)

10 system bus.pdf
10 system bus.pdf10 system bus.pdf
10 system bus.pdf
 
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection.ppt.enc
 
Computer organization & architecture chapter-1
Computer organization & architecture chapter-1Computer organization & architecture chapter-1
Computer organization & architecture chapter-1
 
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
 
dem.pptx
dem.pptxdem.pptx
dem.pptx
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
M2 241-buses rl-2.4.1
M2 241-buses rl-2.4.1M2 241-buses rl-2.4.1
M2 241-buses rl-2.4.1
 
Embedded sysyetm components
Embedded sysyetm componentsEmbedded sysyetm components
Embedded sysyetm components
 
Scalable multiprocessors
Scalable multiprocessorsScalable multiprocessors
Scalable multiprocessors
 
In out system
In out systemIn out system
In out system
 
Atm intro
Atm introAtm intro
Atm intro
 
PCI
PCIPCI
PCI
 
Computer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUSComputer Architecture Chapter 2 BUS
Computer Architecture Chapter 2 BUS
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networking
 
ch4.ppt
ch4.pptch4.ppt
ch4.ppt
 
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
 
Connecting devices
Connecting devicesConnecting devices
Connecting devices
 
Cs intro-ca
Cs intro-caCs intro-ca
Cs intro-ca
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)
 

Kürzlich hochgeladen

Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Timedelhimodelshub1
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Kirill Klimov
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?Olivia Kresic
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailAriel592675
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionMintel Group
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfrichard876048
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 

Kürzlich hochgeladen (20)

Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Time
 
Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024Flow Your Strategy at Flight Levels Day 2024
Flow Your Strategy at Flight Levels Day 2024
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchir
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?MAHA Global and IPR: Do Actions Speak Louder Than Words?
MAHA Global and IPR: Do Actions Speak Louder Than Words?
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detail
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted Version
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Innovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdfInnovation Conference 5th March 2024.pdf
Innovation Conference 5th March 2024.pdf
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 

Ec305.13 buses mgl

  • 1. EC305 Computer Architecture Topic: компьютерийн систем ба интерфейс болон түгээгүүрүүд week13
  • 2. Өгөгдлийн шугам түүний үндсэн үзүүлэлтүүд • Хэд хэдэн төхөөрөмжүүд холболтын нэгж багцаар холбогдоно. • Өгөгдөл дамжуулалтын хугацаанд зөвхөн нэг төхөөрөмж идэвхжинэ. • Өгөгдлийн түгээгүүрийн нэгж шугам бүр нэг бит сигнал авах ба түгээгүүрээр битийн багц урсгал дамжигдана. • Өгөгдлийн түгээгүүрийн шугам нь ихэнхдээ мэдээллийг зэрэгцээгээр дамжуулна. • Компьютерийн систем нь хэд хэдэн өгөгдлийн түгээгүүрээс тогтддог.
  • 3. Түгээрийн бүтэц – Structure • Цуваа болон зэрэгцээ • Өгөгдөл тавилтын зориулалт бүрд ойролцоогоор 50-100 шугам багцлагдана. • Өгөгдлийн дамжуулах шугамуудын ангилал – Өгөгдлийн шугам – Хаягийн шугам – Удирдлагын сигналын шугам – Тэжээлийн шугам
  • 4. Buses – Structure (continued) • Зэрэгцээ түгээгүүрийн бүтэц – – – – Data Address Control Power • Цуваа - Bus lines (serial) – Өгөгдөл, хаяг болон удирдлагын битүүд цуваагаар дараалан нэгж шугам дээр тавигдана. – зарим тохиолдолд удирдлагын битийг авах нэмэлт шугам байдаг. – Тэжээл
  • 5. Buses – Structure (continued) • Өгөгдлийн шугам – Өгөгдлүүд уншигдах болон бичигдэнэ. – Шугамын тоо нь түгээгүүрийн өргөнөөр тодорхойлогдоно. • Хаягийн шугам – өгөгдлийн унших болох бичигдэх талбарын хаягийг заана. – Хаягийн шугамын өргөн нь санах байгууламжийн хэмжээгээр тодорхойлогдоно. – Ахлах битээр хаягийн модуль, бага битээр талбарын модулиуд тус тус тавигдана.
  • 6. Удирдлагын шугам • Хэд хэдэн төхөөрөмжүүд нэгж түгээгүүгээр холбогдоход удирдлагын бит шаардагдана. • Хугацааны • Typical lines include: – – – – – – – – – Memory Read or Write I/O Read or Write Transfer ACK Bus request Bus grant Interrupt request Interrupt acknowledgement Clock Reset
  • 7. Operation – Sending Data • Obtain the use of the bus • Transfer the data via the bus • Possible acknowledgement
  • 8. Operation – Requesting Data • • • • Obtain the use of the bus Transfer the data request via the bus Wait for other module to send data Possible acknowledgement
  • 9. Classic Bus Arrangement • All components attached to bus (STD bus) • Due to Moore's law, more and more functionality exists on a single board, so major components are now on same board or even the same chip
  • 10. Physical Implementations • Parallel lines on circuit boards (ISA or PCI) • Ribbon cables (IDE)
  • 11. Physical Implementations (continued) • Strip connectors on mother boards (PC104) • External cabling (USB or Firewire)
  • 12. Single Bus Problems Lots of devices on one bus leads to: • Physically long buses – Propagation delays – Long data paths mean that coordination of bus use can adversely affect performance – Reflections/termination problems • Aggregate data transfer approaches bus capacity • Slower devices dictate the maximum bus speed
  • 13. Multiple Buses • Most systems use multiple buses to overcome these problems • Requires bridge to buffer (FIFO) data due to differences in bus speeds • Sometimes I/O devices also contain buffering (FIFO)
  • 14. Multiple Buses – Benefits • Isolate processor-to-memory traffic from I/O traffic • Support wider variety of interfaces • Processor has bus that connects as direct interface to chip, then an expansion bus interface interfaces it to external devices (ISA) • Cache (if it exists) may act as the interface to system bus
  • 16. Mezzanine Approach • Differences in I/O speeds demands separating devices. • Separate items that are high-speed and those that are not • An additional high-speed bus is added to communicate with the faster devices and also the slower expansion bus • Advantage is that high-speed devices are brought closer to processor
  • 19. Bus Types Dedicated vs. Time Multiplexed • Dedicated – Separate data & address lines • Time multiplexed – Shared lines – Address valid or data valid control line – Advantage - fewer lines – Disadvantages • More complex control • Degradation of performance
  • 20. Bus Types Physical Dedication – Physically separating buses and controlling them with a "channel changer“ – Advantages – faster – Disadvantages – physically larger
  • 21. Bus Arbitration • Listening to the bus is not usually a problem • Talking on the bus is a problem – need arbitration to allow more than one module to control the bus at one time • Arbitration may be centralised or distributed
  • 22. Centralised vs. Distributed Arbitration • Centralised Arbitration – Single hardware device controlling bus access – Bus Controller/Arbiter – May be part of CPU or separate • Distributed Arbitration – Each module may claim the bus – Access control logic is on all modules – Modules work together to control bus
  • 23. Bus Timing • Co-ordination of events on bus • Synchronous – controlled by a clock • Asynchronous – timing is handled by welldefined specifications, i.e., a response is delivered within a specified time after a request
  • 24. Synchronous Bus Timing • • • • • • • • Events determined by clock signals Control Bus includes clock line A single 1-0 cycle is a bus cycle All devices can read clock line Usually sync on leading/rising edge Usually a single cycle for an event Analogy – Orchestra conductor with baton Usually stricter in terms of its timing requirements
  • 26. Asynchronous Timing • Devices must have certain tolerances to provide responses to signal stimuli • More flexible allowing slower devices to communicate on same bus with faster devices. • Performance of faster devices, however, is limited to speed of bus
  • 29. Bus Width • Wider the bus the better the data transfer rate or the wider the addressable memory space • Serial “width” is determined by length/duration of frame
  • 30. Peripheral Component Interconnection (PCI) Bus Brief history • Original PC came out with 8-bit ISA bus which was slow, but had enormous amount of existing equipment. • For AT, IBM expanded ISA bus to 16-bit by adding connector • Many PC board manufacturers started making higher speed, proprietary buses • Intel released the patents to its PCI and this soon took over as the standard
  • 31. PCI Bus (continued) Brief list of PCI 2.2 characteristics • General purpose • Mezzanine or peripheral bus • Supports single- and multi-processor architectures • 32 or 64 bit – multiplexed address and data • Synchronous timing • Centralized arbitration (requires bus controller) • 49 mandatory lines (see Table 3.3)
  • 32. Required PCI Bus Lines (Table 3.3) • Systems lines – clock and reset • Address & Data – 32 time multiplexed lines for address/data – Parity lines • Interface Control – Hand shaking lines between bus controller and devices – Selects devices – Allows devices to indicates when they are ready
  • 33. Required PCI Bus Lines (continued) • Arbitration – Not shared – Direct connection to PCI bus arbiter • Error lines – parity and critical/system
  • 34. Optional PCI Bus Lines There are 51 optional PCI 2.2 bus lines • Interrupt lines – Not shared – Multiple lines for multiple interrupts on a single device • Cache support • 64-bit Bus Extension – Additional 32 lines – Time multiplexed – 2 lines to enable devices to agree to use 64-bit transfer • JTAG/Boundary Scan – For testing procedures
  • 35. PCI Commands • Transaction between initiator (master) and target • Master claims bus • During address phase of write, 4 C/BE lines signal the transaction type • One or more data phases
  • 36. PCI Transaction Types • Interrupt acknowledge – prompts identification from interrupting device • Special cycle – message broadcast • I/O read – read to I/O address space • I/O write – write to I/O address space • Memory read – 1 or 2 data transfer cycles • Memory read line – 3 to 12 data transfer cycles • Memory read multiple – more than 12 data transfers
  • 37. PCI Transaction Types (continued) • Memory write – writing 1 or more cycles to memory • Memory write and invalidate – writing 1 or more cycles to memory allowing for cache write-back policy • Configuration read – reading PCI device's configuration (up to 256 configuration registers per device) • Configuration write – writing PCI device's configuration (up to 256 configuration registers per device) • Dual address cycle – indication of 64-bit addressing on 32 bit lines
  • 38. PCI Read Timing Diagram
  • 40. PCI Bus Arbitration Between Two Masters
  • 41. Higher Performance External Buses • Historically, parallel has been used for high speed peripherals (e.g., SCSI, parallel port zip drives rather than serial port). High speed serial, however, has begun to replace this need • Serial communication also used to be restricted to point-to-point communications. Now there's an increasing prevalence of multipoint
  • 42. IEEE 1394 FireWire • Inexpensive alternative needed for SCSI • High performance serial bus • Serial implies cheaper cabling (fewer wires, less shielding, less synchronization) • Small connectors for smaller devices • Fast • Low cost • Easy to implement • Also being used in digital cameras, VCRs and TVs
  • 43. FireWire Configuration • Daisy chain/tree structure (Mac O/S Help indicates that daisy chain is preference for up to 16 devices) • Up to 63 devices on single port – really 64 of which one is the interface itself • Up to 1022 buses can be connected with bridges • Automatic configuration for addressing • No bus terminators • Hot swappable
  • 45. FireWire 3 Layer Stack Physical Layer • Transmission medium, electrical and signaling characteristics • Up to 400 Mbps • Arbitration – basic form – Fair arbitration – Urgent arbitration • Link layer packet transmission – Asynchronous – Isochronous
  • 46. Arbitration – Basic form • Upon automatic configuration, each tree designates a root • Parent/child relationship forms tree topology • Root acts as central arbitrator • Requests are first-come-first-serve • Simultaneous requests are granted first to the closest node to the root and second to the lower ID number • Two additional functions are used to best allocate the use of the bus – Fair arbitration – Urgent arbitration
  • 47. Fair arbitration • Keeps one device from monopolizing the bus by allowing only one request during a set fairness interval • At beginning of interval, all devices set arbitration_enable flag • Each device may compete for bus access • If bus access is granted, arbitration_enable flag is cleared prohibiting bus access until next fairness interval
  • 48. Urgent arbitration • Allows overriding of fairness interval by nodes configured as having an urgent priority • Provides support for devices with severe latency requirements or high throughput such as video • They may use the bus up to 75% of the time, i.e., for each non-urgent packet, three urgent packets may be sent
  • 49. FireWire 3 Layer Stack Link Layer • Transmission of data in packets • Two types of transmission supported: – Asynchronous – Isochronous
  • 50. Asynchronous Packets contain • Variable amount of data • Several bytes of transaction layer information • Addressing information • Acknowledgement
  • 52. Asynchronous Sequence (continued) • Arbitration sequence – gives one device control of the bus • Packet transmission – packet contains source and destination IDs, type, CRC, and possible data • Acknowledgement gap – allows destination to receive and process message • Acknowledgement – destination sends packet containing source and destination IDs and code indicating action taken • Subaction gap – idle period between packets to avoid bus contention
  • 53. Isochronous • • • • Fixed packet size w/variable amount of data Simplified addressing No acknowledgement Periodically, cycle_start packet is sent indicating period where only isochronous packets are transmitted • Transaction – Request-response protocol (This is what your code sees. It separates the programmer from the packet-level stuff)
  • 55. Foreground Reading • Stallings, chapter 3 (all of it) • www.pcguide.com/ref/mbsys/buses/ • In fact, read the whole site! • www.pcguide.com/