Difference between revisions of "Bus"

From Computer History Wiki
Jump to: navigation, search
m (Make 'S-100 bus' link to the S-100 page.)
m (arg syntax err)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{wp-orig}}
+
In computer [[architecture]], a '''bus''' is a subsystem that transfers data or power between computer components inside a computer or between computers and typically is controlled by [[device driver]] software. Unlike a [[Point-to-point link|point-to-point connection]], a bus can logically connect several [[peripheral]]s over the same set of wires. Each bus defines its set of [[connector]]s to physically plug devices, cards or cables together.
 
 
In [[computer architecture]], a '''bus''' is a subsystem that transfers data or power between computer components inside a [[computer]] or between computers and typically is controlled by [[device driver]] software. Unlike a [[Point-to-point link|point-to-point connection]], a bus can logically connect several [[peripheral]]s over the same set of wires. Each bus defines its set of [[connector]]s to physically plug devices, cards or cables together.
 
  
 
Early computer buses were literally parallel [[electrical bus]]es with multiple connections, but the term is now used for any physical arrangement that provides the same logical functionality as a parallel electrical bus. Modern computer buses can use both parallel and bit-serial connections, and can be wired in either a [[multidrop]] (electrical parallel) or [[daisy chain]] topology, or connected by switched hubs, as in the case of [[Universal Serial Bus|USB]].
 
Early computer buses were literally parallel [[electrical bus]]es with multiple connections, but the term is now used for any physical arrangement that provides the same logical functionality as a parallel electrical bus. Modern computer buses can use both parallel and bit-serial connections, and can be wired in either a [[multidrop]] (electrical parallel) or [[daisy chain]] topology, or connected by switched hubs, as in the case of [[Universal Serial Bus|USB]].
  
 
===First generation===                     
 
===First generation===                     
Early [[computer]] buses were bundles of wire that attached [[Computer storage|memory]] and peripherals. They were named after [[Electrical bus|electrical buses]], or busbars.  Almost always, there was one bus for memory, and another for peripherals, and these were accessed by separate instructions, with completely different timings and protocols.
+
Early [[computer]] buses were bundles of wire that attached [[Computer storage|memory]] and peripherals. They were named after electrical buses, or busbars.  Almost always, there was one bus for memory, and another for peripherals, and these were accessed by separate instructions, with completely different timings and protocols.
  
 
One of the first complications was the use of [[interrupt]]s.  Early computers performed [[Input/output|I/O]] by waiting in a loop for the peripheral to become ready.  This was a waste of time for programs that had other tasks to do.  Also, if the program attempted to perform those other tasks, it might take too long for the program to check again, resulting in lost data.  Engineers thus arranged for the peripherals to interrupt the CPU.  The interrupts had to be prioritized, because the CPU can only execute code for one peripheral at a time, and some devices are more time-critical than others.
 
One of the first complications was the use of [[interrupt]]s.  Early computers performed [[Input/output|I/O]] by waiting in a loop for the peripheral to become ready.  This was a waste of time for programs that had other tasks to do.  Also, if the program attempted to perform those other tasks, it might take too long for the program to check again, resulting in lost data.  Engineers thus arranged for the peripherals to interrupt the CPU.  The interrupts had to be prioritized, because the CPU can only execute code for one peripheral at a time, and some devices are more time-critical than others.
Line 16: Line 14:
 
[[Digital Equipment Corporation|DEC]] noted that having two buses seemed wasteful and expensive for small, mass-produced computers, and mapped peripherals into the memory bus, so that the devices appeared to be memory locations.  At the time, this was a very daring design.  Cynics predicted failure.
 
[[Digital Equipment Corporation|DEC]] noted that having two buses seemed wasteful and expensive for small, mass-produced computers, and mapped peripherals into the memory bus, so that the devices appeared to be memory locations.  At the time, this was a very daring design.  Cynics predicted failure.
  
Early [[microcomputer]] bus systems were essentially a passive [[backplane]] connected to the pins of the [[Central processing unit|CPU]]. Memory and other devices would be added to the bus using the same address and data pins as the CPU itself used, connected in parallel. In some instances, such as the [[IBM PC]], instructions still generated signals at the CPU that could be used to implement a true I/O bus.   
+
Early [[microcomputer]] bus systems were essentially a passive [[backplane]] connected to the pins of the [[Central Processing Unit|CPU]]. Memory and other devices would be added to the bus using the same address and data pins as the CPU itself used, connected in parallel. In some instances, such as the [[IBM PC]], instructions still generated signals at the CPU that could be used to implement a true I/O bus.   
  
In many microcontrollers and [[embedded systems]], an I/O bus still does not exist.  Communication is controlled by the [[Central processing unit|CPU]], which reads and writes data from the devices as if they are blocks of memory (in most cases), all timed by a central clock controlling the speed of the CPU. Devices ask for service by signalling on other CPU pins, typically using some form of [[interrupt]].  
+
In many microcontrollers and [[embedded system]]s, an I/O bus still does not exist.  Communication is controlled by the CPU, which reads and writes data from the devices as if they are blocks of memory (in most cases), all timed by a central clock controlling the speed of the CPU. Devices ask for service by signalling on other CPU pins, typically using some form of [[interrupt]].  
  
For instance, a [[disk drive]] controller would signal the CPU that new data was ready to be read, at which point the CPU would move the data by reading the memory that corresponded to the disk drive. Almost all early computers were built in this fashion, starting with the [[S-100|S-100 bus]] in the [[Altair 8800|Altair]], and continuing through the [[IBM PC]] in the [[1980s]].
+
For instance, a [[disk drive]] controller would signal the CPU that new data was ready to be read, at which point the CPU would move the data by reading the memory that corresponded to the disk drive. Almost all early computers were built in this fashion, starting with the [[S-100|S-100 bus]] in the [[Altair 8800|Altair]], and continuing through the [[IBM PC]] in the 1980s.
  
 
These simple bus systems had a serious drawback for general-purpose computers.  All the equipment on the bus has to talk at the same speed, and thus shares a single clock.
 
These simple bus systems had a serious drawback for general-purpose computers.  All the equipment on the bus has to talk at the same speed, and thus shares a single clock.
Line 35: Line 33:
 
However these newer systems shared one quality with their earlier cousins, in that everyone on the bus had to talk at the same speed. While the CPU was now isolated and could increase speed without fear, CPUs and memory continued to increase in speed much faster than the buses they talked to. The result was that the bus speeds were now very much slower than what a modern system needed, and the machines were left starved for data. A particularly common example of this problem was that [[video card]]s quickly outran even the newer bus systems like '''[[Peripheral Component Interconnect|PCI]]''', and computers began to include '''[[Accelerated Graphics Port|AGP]]''' just to drive the video card. By [[2004]] AGP was outgrown again by high-end video cards and is being replaced with the new '''[[PCI Express]]''' bus.
 
However these newer systems shared one quality with their earlier cousins, in that everyone on the bus had to talk at the same speed. While the CPU was now isolated and could increase speed without fear, CPUs and memory continued to increase in speed much faster than the buses they talked to. The result was that the bus speeds were now very much slower than what a modern system needed, and the machines were left starved for data. A particularly common example of this problem was that [[video card]]s quickly outran even the newer bus systems like '''[[Peripheral Component Interconnect|PCI]]''', and computers began to include '''[[Accelerated Graphics Port|AGP]]''' just to drive the video card. By [[2004]] AGP was outgrown again by high-end video cards and is being replaced with the new '''[[PCI Express]]''' bus.
  
An increasing number of external devices started employing their own bus systems as well. When disk drives were first introduced, they would be added to the machine with a card plugged into the bus, which is why computers have so many slots on the bus. But through the [[1980s]] and [[1990s]], new systems like '''[[SCSI]]''' and '''[[Integrated Drive Electronics|IDE]]''' were introduced to serve this need, leaving most slots in modern systems empty. Today there are likely to be about five different buses in the typical machine, supporting various devices.
+
An increasing number of external devices started employing their own bus systems as well. When disk drives were first introduced, they would be added to the machine with a card plugged into the bus, which is why computers have so many slots on the bus. But through the 1980s and 1990s, new systems like '''[[SCSI]]''' and '''[[Integrated Drive Electronics|IDE]]''' were introduced to serve this need, leaving most slots in modern systems empty. Today there are likely to be about five different buses in the typical machine, supporting various devices.
  
 
A useful differentiation then became popular, the concept of the '''local bus''' as opposed to '''external bus'''. The former referred to bus systems that were designed to be used with internal devices, such as graphics cards, and the latter to buses designed to add external devices such as [[image scanner|scanner]]s. Note, though, that "local" also referred to the greater proximity to the processor of VL-Bus and PCI than ISA. IDE is an external bus in terms of how it is used, but is almost always found inside the machine.
 
A useful differentiation then became popular, the concept of the '''local bus''' as opposed to '''external bus'''. The former referred to bus systems that were designed to be used with internal devices, such as graphics cards, and the latter to buses designed to add external devices such as [[image scanner|scanner]]s. Note, though, that "local" also referred to the greater proximity to the processor of VL-Bus and PCI than ISA. IDE is an external bus in terms of how it is used, but is almost always found inside the machine.
Line 49: Line 47:
 
Buses can be [[parallel communications|parallel buses]], which carry data words striped across multiple wires, or [[serial bus]]es, which carry data in bit-serial form. The addition of extra power and control connections, differential drivers, and data connections in each direction usually means that most serial buses have more conductors than the minimum of two used in the [[I²C]] serial bus. As data rates increase, the problems of [[timing skew]] and [[crosstalk]] across parallel buses become more and more difficult to circumvent. One partial solution to this problem has been to [[double pumped|double pump]] the bus. Often, a serial bus can actually be operated at higher overall data rates than a parallel bus, despite having fewer electrical connections, because a serial bus inherently has no timing skew or crosstalk.  [[Universal Serial Bus|USB]], [[FireWire]], and [[Serial ATA]] are examples of this.  [[Multidrop]] connections do not work well for fast serial buses, so most modern serial buses use [[daisy-chain]] or hub designs.
 
Buses can be [[parallel communications|parallel buses]], which carry data words striped across multiple wires, or [[serial bus]]es, which carry data in bit-serial form. The addition of extra power and control connections, differential drivers, and data connections in each direction usually means that most serial buses have more conductors than the minimum of two used in the [[I²C]] serial bus. As data rates increase, the problems of [[timing skew]] and [[crosstalk]] across parallel buses become more and more difficult to circumvent. One partial solution to this problem has been to [[double pumped|double pump]] the bus. Often, a serial bus can actually be operated at higher overall data rates than a parallel bus, despite having fewer electrical connections, because a serial bus inherently has no timing skew or crosstalk.  [[Universal Serial Bus|USB]], [[FireWire]], and [[Serial ATA]] are examples of this.  [[Multidrop]] connections do not work well for fast serial buses, so most modern serial buses use [[daisy-chain]] or hub designs.
  
Most computers have both internal and external buses.  An ''internal bus'' connects all the internal components of a computer to the motherboard (and thus, the [[Central processing unit|CPU]] and [[internal memory]]). These types of buses are also referred to as a [[local bus]], because they are intended to connect to local devices, not to those in other machines or external to the computer. An ''external bus'' connects external peripherals to the motherboard.
+
Most computers have both internal and external buses.  An ''internal bus'' connects all the internal components of a computer to the motherboard (and thus, the CPU and [[main memory]]). These types of buses are also referred to as a [[local bus]], because they are intended to connect to local devices, not to those in other machines or external to the computer. An ''external bus'' connects external peripherals to the motherboard.
  
 
[[computer network|Network]] connections such as [[Ethernet]] are not generally regarded as buses, although the difference is largely conceptual rather than practical. The arrival of technologies such as [[InfiniBand]] and [[HyperTransport]] is further blurring the boundaries between networks and buses. Even the lines between internal and external are sometimes fuzzy, [[I²C]] can be used as both an internal bus, or an external bus (where it is known as [[ACCESS.bus]]), and InfiniBand is intended to replace both internal buses like [[Peripheral Component Interconnect|PCI]] as well as external ones like [[Fibre Channel]].
 
[[computer network|Network]] connections such as [[Ethernet]] are not generally regarded as buses, although the difference is largely conceptual rather than practical. The arrival of technologies such as [[InfiniBand]] and [[HyperTransport]] is further blurring the boundaries between networks and buses. Even the lines between internal and external are sometimes fuzzy, [[I²C]] can be used as both an internal bus, or an external bus (where it is known as [[ACCESS.bus]]), and InfiniBand is intended to replace both internal buses like [[Peripheral Component Interconnect|PCI]] as well as external ones like [[Fibre Channel]].
Line 78: Line 76:
 
* [[OPTi local bus]] used on early [[Intel 80486]] motherboards.
 
* [[OPTi local bus]] used on early [[Intel 80486]] motherboards.
 
* [[Peripheral Component Interconnect]] or PCI  
 
* [[Peripheral Component Interconnect]] or PCI  
* [[S100]] bus or IEEE 696, used in the [[Altair]] and similar [[microcomputers]]
+
* [[S100]] bus or IEEE 696, used in the [[Altair]] and similar [[microcomputer]]s
 
* [[SBus]] or IEEE 1496
 
* [[SBus]] or IEEE 1496
 
* [[VESA Local Bus]] or VLB or VL-bus
 
* [[VESA Local Bus]] or VLB or VL-bus
Line 115: Line 113:
 
== External links ==
 
== External links ==
 
* Chip Weems' [http://www.cs.umass.edu/~weems/CmpSci635/635lecture12.html Lecture 12: Buses]
 
* Chip Weems' [http://www.cs.umass.edu/~weems/CmpSci635/635lecture12.html Lecture 12: Buses]
* {{dmoz|Computers/Hardware/Buses/|Computer hardware buses}}
 
  
[[Category:Computer buses|*Computer bus]]
+
{{Wikipedia|Bus_(computing)}}
 +
 
 +
[[Category: Hardware Basics]]

Latest revision as of 04:09, 5 September 2019

In computer architecture, a bus is a subsystem that transfers data or power between computer components inside a computer or between computers and typically is controlled by device driver software. Unlike a point-to-point connection, a bus can logically connect several peripherals over the same set of wires. Each bus defines its set of connectors to physically plug devices, cards or cables together.

Early computer buses were literally parallel electrical buses with multiple connections, but the term is now used for any physical arrangement that provides the same logical functionality as a parallel electrical bus. Modern computer buses can use both parallel and bit-serial connections, and can be wired in either a multidrop (electrical parallel) or daisy chain topology, or connected by switched hubs, as in the case of USB.

First generation

Early computer buses were bundles of wire that attached memory and peripherals. They were named after electrical buses, or busbars. Almost always, there was one bus for memory, and another for peripherals, and these were accessed by separate instructions, with completely different timings and protocols.

One of the first complications was the use of interrupts. Early computers performed I/O by waiting in a loop for the peripheral to become ready. This was a waste of time for programs that had other tasks to do. Also, if the program attempted to perform those other tasks, it might take too long for the program to check again, resulting in lost data. Engineers thus arranged for the peripherals to interrupt the CPU. The interrupts had to be prioritized, because the CPU can only execute code for one peripheral at a time, and some devices are more time-critical than others.

Some time after this, some computers began to share memory between several CPUs. On these computers, access to the bus had to be prioritized, as well.

The classic, simple way to prioritize interrupts or bus access was with a daisy chain.

DEC noted that having two buses seemed wasteful and expensive for small, mass-produced computers, and mapped peripherals into the memory bus, so that the devices appeared to be memory locations. At the time, this was a very daring design. Cynics predicted failure.

Early microcomputer bus systems were essentially a passive backplane connected to the pins of the CPU. Memory and other devices would be added to the bus using the same address and data pins as the CPU itself used, connected in parallel. In some instances, such as the IBM PC, instructions still generated signals at the CPU that could be used to implement a true I/O bus.

In many microcontrollers and embedded systems, an I/O bus still does not exist. Communication is controlled by the CPU, which reads and writes data from the devices as if they are blocks of memory (in most cases), all timed by a central clock controlling the speed of the CPU. Devices ask for service by signalling on other CPU pins, typically using some form of interrupt.

For instance, a disk drive controller would signal the CPU that new data was ready to be read, at which point the CPU would move the data by reading the memory that corresponded to the disk drive. Almost all early computers were built in this fashion, starting with the S-100 bus in the Altair, and continuing through the IBM PC in the 1980s.

These simple bus systems had a serious drawback for general-purpose computers. All the equipment on the bus has to talk at the same speed, and thus shares a single clock.

Increasing the speed of the CPU is not a simple matter, because the speed of all the devices must increase as well. This often leads to odd situations where very fast CPUs have to "slow down" in order to talk to other devices in the computer. While acceptable in embedded systems, this problem was not tolerated for long in commercial computers.

Another problem is that the CPU is required for all operations, so if it becomes busy with other tasks, the real throughput of the bus could suffer dramatically.

Such bus systems are difficult to configure when constructed from common off-the-shelf equipment. Typically each added PC board requires many jumpers in order to set memory addresses, I/O addresses, interrupt priorities, and interrupt numbers.

Second generation

"Second generation" bus systems like NuBus addressed some of these problems. They typically separated the computer into two "worlds", the CPU and memory on one side, and the various devices on the other, with a bus controller in between. This allowed the CPU to increase in speed without affecting the bus. This also moved much of the burden for moving the data out of the CPU and into the cards and controller, so devices on the bus could talk to each other with no CPU intervention. This led to much better "real world" performance, but also required the cards to be much more complex. These buses also often addressed speed issues by being "bigger" in terms of the size of the data path, moving from 8-bit parallel buses in the first generation, to 16 or 32-bit in the second, as well as adding software setup (now standardised as Plug-n-play) to supplant or replace the jumpers.

However these newer systems shared one quality with their earlier cousins, in that everyone on the bus had to talk at the same speed. While the CPU was now isolated and could increase speed without fear, CPUs and memory continued to increase in speed much faster than the buses they talked to. The result was that the bus speeds were now very much slower than what a modern system needed, and the machines were left starved for data. A particularly common example of this problem was that video cards quickly outran even the newer bus systems like PCI, and computers began to include AGP just to drive the video card. By 2004 AGP was outgrown again by high-end video cards and is being replaced with the new PCI Express bus.

An increasing number of external devices started employing their own bus systems as well. When disk drives were first introduced, they would be added to the machine with a card plugged into the bus, which is why computers have so many slots on the bus. But through the 1980s and 1990s, new systems like SCSI and IDE were introduced to serve this need, leaving most slots in modern systems empty. Today there are likely to be about five different buses in the typical machine, supporting various devices.

A useful differentiation then became popular, the concept of the local bus as opposed to external bus. The former referred to bus systems that were designed to be used with internal devices, such as graphics cards, and the latter to buses designed to add external devices such as scanners. Note, though, that "local" also referred to the greater proximity to the processor of VL-Bus and PCI than ISA. IDE is an external bus in terms of how it is used, but is almost always found inside the machine.

Third generation

"Third generation" buses are now in the process of coming to market, including HyperTransport and InfiniBand. They typically include features that allow them to run at the very high speeds needed to support memory and video cards, while also supporting lower speeds when talking to slower devices such as disk drives. They also tend to be very flexible in terms of their physical connections, allowing them to be used both as internal buses, as well as connecting different machines together. This can lead to complex problems when trying to service different requests, so much of the work on these systems concerns software design, as opposed to the hardware itself. In general, these third generation buses tend to look more like a network than the original concept of a bus, with a higher protocol overhead needed than early systems, while also allowing multiple devices to use the bus at once.

On another track, integrated circuits are increasingly being designed from predesigned logic, "intellectual property." Buses such as Wishbone have been developed to permit devices on integrated circuits to talk to one another.

Description of a bus

At one time, "bus" meant an electrically parallel system, with electrical conductors similar or identical to the pins on the CPU. This is no longer the case, and modern systems are blurring the lines between buses and networks.

Buses can be parallel buses, which carry data words striped across multiple wires, or serial buses, which carry data in bit-serial form. The addition of extra power and control connections, differential drivers, and data connections in each direction usually means that most serial buses have more conductors than the minimum of two used in the I²C serial bus. As data rates increase, the problems of timing skew and crosstalk across parallel buses become more and more difficult to circumvent. One partial solution to this problem has been to double pump the bus. Often, a serial bus can actually be operated at higher overall data rates than a parallel bus, despite having fewer electrical connections, because a serial bus inherently has no timing skew or crosstalk. USB, FireWire, and Serial ATA are examples of this. Multidrop connections do not work well for fast serial buses, so most modern serial buses use daisy-chain or hub designs.

Most computers have both internal and external buses. An internal bus connects all the internal components of a computer to the motherboard (and thus, the CPU and main memory). These types of buses are also referred to as a local bus, because they are intended to connect to local devices, not to those in other machines or external to the computer. An external bus connects external peripherals to the motherboard.

Network connections such as Ethernet are not generally regarded as buses, although the difference is largely conceptual rather than practical. The arrival of technologies such as InfiniBand and HyperTransport is further blurring the boundaries between networks and buses. Even the lines between internal and external are sometimes fuzzy, I²C can be used as both an internal bus, or an external bus (where it is known as ACCESS.bus), and InfiniBand is intended to replace both internal buses like PCI as well as external ones like Fibre Channel.

Modern trends in personal computers, especially laptops, have been moving towards eliminating all external connections except for modem jack, Cat5, USB, headphone jack, and optional VGA or FireWire.

Bus topology

In a network, the master scheduler controls the data traffic. If data is to be transferred the requesting computer sends a message to the scheduler, which puts the request into a queue. The message contains an identification code which is broadcast to all nodes of the network. The scheduler works out priorities and notifies the receiver as soon as the bus is available.

The identified node takes the message and performs the data transfer between the two computers. Having completed the data transfer the bus becomes free for the next request in the scheduler's queue.

Bus benefit: any computer can be accessed directly and message can be sent in a relatively simple and fast way. Disadvantage: needs a scheduler to assign frequencies and priorities to organize the traffic.

See also: Bus network

Examples of internal computer buses

Parallel

Serial

Examples of external computer buses

Parallel

  • IEEE-488 (aka GPIB, General-Purpose Instrumentation Bus, and HPIB, Hewlett-Packard Instrumentation Bus)
  • SCSI Small Computer System Interface, disk/tape peripheral attachment bus

Examples of internal/external computer buses

See also

External links

This page contains content from Wikipedia, article Bus_(computing), under the Creative Commons license.