Difference between revisions of "UNIBUS"
(→Technical details: Add details on grants) |
m (→See also: +UniBone/QBone) |
||
(37 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | The '''UNIBUS''' (or '''Unibus''' - the capitalization style changed over time) was the earliest of two [[bus]] technologies used with [[PDP-11]]s manufactured by [[Digital Equipment Corporation|DEC]]; it was first seen in the [[PDP-11/20]], in 1970. Later, early [[VAX]] systems from that company used the UNIBUS as an I/O bus; it was also used in the small [[KS10]]-based model of the [[DECSYSTEM-20]] [[mainframe]], to furnish it with inexpensive [[peripheral]]s. | |
− | + | It was the only bus in most PDP-11 systems, until the arrival of the [[QBUS]], and thus supported several capabilities: the ability of the [[Central Processing Unit|CPU]] to read and write [[main memory]], and device [[register]]s; and the ability for devices to do [[Direct Memory Access|DMA]] transfers to memory, and to [[interrupt]] the CPU. | |
− | + | The UNIBUS contained 16 data lines, and 18 [[address]] lines, as well as a number of control lines. The 18 address lines allowed the direct addressing of a maximum of 256 Kbytes. Typically, the top 8 Kbytes of [[address space]] was reserved for the registers of the memory mapped I/O devices used in the [[PDP-11 architecture]]; this block is often referred to as the '''I/O page'''. | |
− | + | The limit of 18 address lines, while generally adequate in the days of [[core memory]], was to prove a severe handicap in the later phases of the UNIBUS' operational life. On machines with more main memory than could be addressed directly with 18 [[bit]]s, it was necessary to provide a [[UNIBUS map]] to allows DMA devices to 'see' all of main memory. | |
− | The | + | The bus was completely [[asynchronous]], allowing a mixture of fast and slow devices. It also allowed arbitration (selection of the next ''bus master'') while the current bus master was still performing data transfers, overlapping the two functions. |
− | The | + | The design deliberately minimized the amount of redundant logic required in the system. For example, a system always contained more slave devices than master devices, so most of the complex logic required to implement asynchronous data transfers was forced into the relatively few master devices. For interrupts, only the ''interrupt-fielding processor'' needed to contain the complicated timing logic. The end result was that most I/O controllers could be implemented with very simple [[logic]]; most of the critical logic was later implemented as a custom [[MSI]] [[integrated circuit|IC]]. |
− | + | In [[analog]] terms, most of the [[signal]]s of the UNIBUS were [[broadcast]] on [[wired-OR]] [[transmission line]]s. Most were held at a low [[voltage]] by the lines' [[terminator]]s when idle; they were then driven to [[ground]] by the transmitter to assert a signal. | |
− | + | It could exist on a cable (the original physical form of implementation), and later, within a [[backplane]] (in '[[Small Peripheral Controller]] (SPC)' or '[[Modified UNIBUS Device]] (MUD)' slots). Up to approximately 20 nodes (devices) could be connected to a single UNIBUS segment; additional segments could be connected via a [[bus repeater]]. | |
==Operation== | ==Operation== | ||
Line 20: | Line 20: | ||
* DATI (Data In, a read) | * DATI (Data In, a read) | ||
− | * DATIP (Data In/Pause, the first portion of a Read-Modify-Write operation | + | * DATIP (Data In/Pause, the first portion of a Read-Modify-Write operation; a DATO or DATOB operation completes this.) |
− | * DATO (Data Out, a word write) | + | * DATO (Data Out, a [[word]] write) |
* DATOB (Data Out/Byte, a byte write) | * DATOB (Data Out/Byte, a byte write) | ||
− | During these operations, several signals ( | + | During these operations, several signals (MSYN - Master Sync; SSYN - Slave Sync; and BBSY - Bus Busy) are used to synchronize between the master and slave, to indicate when the data is ready to be read (during a DATI/DATIP), or has been written (during a DATO/DATOB). |
+ | |||
+ | During an interrupt cycle, a fifth style of transfer was used to convey an [[interrupt vector]] from the interrupting device to the ''interrupt-fielding processor''. | ||
+ | |||
+ | ===DMA and Interrupts=== | ||
+ | |||
+ | Both DMA (in which a device must request control of the bus, so that it can perform a normal master/slave cycle, only with itself as the master), and interrupts, use the same mechanism for the device to communicate with the CPU to request something, and for the CPU to communicate with the device that it has granted the device's request. | ||
− | + | There are [[bus request line]]s (NPR for DMA, and BR4-BR7 for interrupts), and [[bus grant line]]s (NPG for DMA, and BG4-7 for interrupts). The request lines are normal 'wired-OR' broadcast bus lines, but the grant lines are special; they are wired in series - one device's 'grant out' line is connected to the next device's 'grant in' line, starting with the CPU's 'grant out' line. | |
− | + | When a device receives a grant, it uses another bus line (SACK) to indicate that it received its grant; if the CPU sends a grant, and does not see a SACK in response, it knows there was [[M8264 No-SACK Timeout Module#Functionality discussion|some sort of error]]. | |
− | + | ===Parity=== | |
− | + | The UNIBUS had provisions for [[parity]], but the details [[UNIBUS parity|changed over time]]. | |
− | + | In the final, and lasting version, a slave which stored data along with parity (usually main memory) could indicate to a master, during a DATI/DATIP operation, that there had been a parity error seen when retrieving the data. The master could then take whatever action it deemed appropriate; most PDP-11 CPU's would perform a [[trap]]. | |
− | + | ==Implementation== | |
===Lines=== | ===Lines=== | ||
− | The UNIBUS is usually described as containing 56 lines. In its initial BC11A cable instantiation, the UNIBUS was composed of 72 wires (2 standard DEC board edge connectors, with 36 lines per connector); when not counting the power and ground lines, this was reduced to the canonical 56. | + | The UNIBUS is usually described as containing 56 lines. In its initial [[BC11A UNIBUS cable]] instantiation, the UNIBUS was composed of 72 wires (2 standard DEC board edge connectors, with 36 lines per connector); when not counting the power and ground lines, this was reduced to the canonical 56. |
Among the UNIBUS signals are: | Among the UNIBUS signals are: | ||
Line 55: | Line 61: | ||
* C0, C1 - Cycle Control | * C0, C1 - Cycle Control | ||
− | ==Cables== | + | The values on the C0 and C1 lines specify the cycle type; this table shows them: |
+ | |||
+ | {| class="wikitable" | ||
+ | ! C1 !! C0 !! Cycle type | ||
+ | |- | ||
+ | | 0 || 0 || DATI | ||
+ | |- | ||
+ | | 0 || 1 || DATIP | ||
+ | |- | ||
+ | | 1 || 0 || DATO | ||
+ | |- | ||
+ | | 1 || 1 || DATOB | ||
+ | |} | ||
+ | |||
+ | ===Cables=== | ||
− | For many years, the cable used to carry the UNIBUS from one backplane to another was the BC11A cable, a pair of wide (3-3/4 inch) white | + | For many years, the cable used to carry the UNIBUS from one backplane to another was the [[BC11A UNIBUS cable]], a pair of wide (3-3/4 inch) white [[Flexprint cable]]s, separated by a thin foam layer, with small [[printed circuit board]]s with edge connector fingers on each end of the cable. The latter plugged into 'UNIBUS In' and 'UNIBUS out' slots in backplanes. The flat cables actually contained 64 connectors each; every other trace was grounded, to prevent [[cross-talk]] between the signal lines. |
− | DEC later developed a series of cards (the M9014, an [[DEC card form factor|extended height dual card]], and the M9042 short dual card) which plug into the same slots, and contain three 2x20 | + | DEC later developed a series of cards (the M9014, an [[DEC card form factor|extended height dual card]], and the M9042 short dual card) which plug into the same slots, and contain three 2x20 [[Berg connector|Berg header]]s for 40-conductor [[flat cable]]s (known as H854 cables in DEC parlance); a pair of these cards, and three cables, perform the same role as a BC11A cable. Both of these cards use the [[UNIBUS H854 header pinout|same header pinout]], so they may be used interchangeably. |
− | ==Pinout== | + | ===Pinout=== |
− | The following table gives the pinout for the flat cable | + | The following table gives the pinout for the flat cable form. Pins are identified in the [[DEC edge connector contact identification|standard DEC manner]]. There are two connectors on the cable, A and B; pins on the component side are 1, those on the solder side are 2. Pins are identified by the '[[DEC alphabet]]', A-V, with G, I, O and Q dropped. |
{| class="wikitable" | {| class="wikitable" | ||
− | ! Signal !! Assertion !! Termination !! | + | ! Signal !! Assertion !! Termination !! Pin |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Initialization and Shutdown |
|- | |- | ||
− | | DC LO || L || Slow || BF2 | + | | DC LO || L || Slow || BF2 |
|- | |- | ||
− | | AC LO || L || Slow || BF1 | + | | AC LO || L || Slow || BF1 |
|- | |- | ||
− | | INIT || L || Fast || AA1 | + | | INIT || L || Fast || AA1 |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Arbitration |
|- | |- | ||
− | | NPR || L || Fast || AS2 | + | | NPR || L || Fast || AS2 |
|- | |- | ||
− | | BR7 || L || Fast || AT2 | + | | BR7 || L || Fast || AT2 |
|- | |- | ||
− | | BR6 || L || Fast || AU2 | + | | BR6 || L || Fast || AU2 |
|- | |- | ||
− | | BR5 || L || Fast || BC1 | + | | BR5 || L || Fast || BC1 |
|- | |- | ||
− | | BR4 || L || Fast || BD2 | + | | BR4 || L || Fast || BD2 |
|- | |- | ||
− | | NPG || H || Grant || AU1 | + | | NPG || H || Grant || AU1 |
|- | |- | ||
− | | BG7 || H || Grant || AV1 | + | | BG7 || H || Grant || AV1 |
|- | |- | ||
− | | BG6 || H || Grant || BA1 | + | | BG6 || H || Grant || BA1 |
|- | |- | ||
− | | BG5 || H || Grant || BB1 | + | | BG5 || H || Grant || BB1 |
|- | |- | ||
− | | BG4 || H || Grant || BE2 | + | | BG4 || H || Grant || BE2 |
|- | |- | ||
− | | SACK || L || Fast || AR2 | + | | SACK || L || Fast || AR2 |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Addressing |
|- | |- | ||
− | | A00 || L || Fast || BH2 | + | | A00 || L || Fast || BH2 |
|- | |- | ||
− | | A01 || L || Fast || BH1 | + | | A01 || L || Fast || BH1 |
|- | |- | ||
− | | A02 || L || Fast || BJ2 | + | | A02 || L || Fast || BJ2 |
|- | |- | ||
− | | A03 || L || Fast || BJ1 | + | | A03 || L || Fast || BJ1 |
|- | |- | ||
− | | A04 || L || Fast || BK2 | + | | A04 || L || Fast || BK2 |
|- | |- | ||
− | | A05 || L || Fast || BK1 | + | | A05 || L || Fast || BK1 |
|- | |- | ||
− | | A06 || L || Fast || BL2 | + | | A06 || L || Fast || BL2 |
|- | |- | ||
− | | A07 || L || Fast || BL1 | + | | A07 || L || Fast || BL1 |
|- | |- | ||
− | | A08 || L || Fast || BM2 | + | | A08 || L || Fast || BM2 |
|- | |- | ||
− | | A09 || L || Fast || BM1 | + | | A09 || L || Fast || BM1 |
|- | |- | ||
− | | A10 || L || Fast || BN2 | + | | A10 || L || Fast || BN2 |
|- | |- | ||
− | | A11 || L || Fast || BN1 | + | | A11 || L || Fast || BN1 |
|- | |- | ||
− | | A12 || L || Fast || BP2 | + | | A12 || L || Fast || BP2 |
|- | |- | ||
− | | A13 || L || Fast || BP1 | + | | A13 || L || Fast || BP1 |
|- | |- | ||
− | | A14 || L || Fast || BR2 | + | | A14 || L || Fast || BR2 |
|- | |- | ||
− | | A15 || L || Fast || BR1 | + | | A15 || L || Fast || BR1 |
|- | |- | ||
− | | A16 || L || Fast || BS2 | + | | A16 || L || Fast || BS2 |
|- | |- | ||
− | | A17 || L || Fast || BS1 | + | | A17 || L || Fast || BS1 |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Data |
|- | |- | ||
− | | D00 || L || Fast || AC1 | + | | D00 || L || Fast || AC1 |
|- | |- | ||
− | | D01 || L || Fast || AD2 | + | | D01 || L || Fast || AD2 |
|- | |- | ||
− | | D02 || L || Fast || AD1 | + | | D02 || L || Fast || AD1 |
|- | |- | ||
− | | D03 || L || Fast || AE2 | + | | D03 || L || Fast || AE2 |
|- | |- | ||
− | | D04 || L || Fast || AE1 | + | | D04 || L || Fast || AE1 |
|- | |- | ||
− | | D05 || L || Fast || AF2 | + | | D05 || L || Fast || AF2 |
|- | |- | ||
− | | D06 || L || Fast || AF1 | + | | D06 || L || Fast || AF1 |
|- | |- | ||
− | | D07 || L || Fast || AH2 | + | | D07 || L || Fast || AH2 |
|- | |- | ||
− | | D08 || L || Fast || AH1 | + | | D08 || L || Fast || AH1 |
|- | |- | ||
− | | D09 || L || Fast || AJ2 | + | | D09 || L || Fast || AJ2 |
|- | |- | ||
− | | D10 || L || Fast || AJ1 | + | | D10 || L || Fast || AJ1 |
|- | |- | ||
− | | D11 || L || Fast || AK2 | + | | D11 || L || Fast || AK2 |
|- | |- | ||
− | | D12 || L || Fast || AK1 | + | | D12 || L || Fast || AK1 |
|- | |- | ||
− | | D13 || L || Fast || AL2 | + | | D13 || L || Fast || AL2 |
|- | |- | ||
− | | D14 || L || Fast || AL1 | + | | D14 || L || Fast || AL1 |
|- | |- | ||
− | | D15 || L || Fast || AM2 | + | | D15 || L || Fast || AM2 |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Control |
|- | |- | ||
− | | C0 || L || Fast || BU2 | + | | C0 || L || Fast || BU2 |
|- | |- | ||
− | | C1 || L || Fast || BT2 | + | | C1 || L || Fast || BT2 |
|- | |- | ||
− | | PA || L || Fast || AM1 | + | | PA || L || Fast || AM1 |
|- | |- | ||
− | | PB || L || Fast || AN2 | + | | PB || L || Fast || AN2 |
|- | |- | ||
− | | BBSY || L || Fast || AP2 | + | | BBSY || L || Fast || AP2 |
|- | |- | ||
− | | MSYN || L || Fast || BV1 | + | | MSYN || L || Fast || BV1 |
|- | |- | ||
− | | INTR || L || Fast || AB1 | + | | INTR || L || Fast || AB1 |
|- | |- | ||
− | | SSYN || L || Fast || BU1 | + | | SSYN || L || Fast || BU1 |
|- | |- | ||
− | | colspan=" | + | | colspan="4" style="text-align:center;" | Power |
|- | |- | ||
| Ground || N/A || N/A || AB2 | | Ground || N/A || N/A || AB2 | ||
|- | |- | ||
− | | Ground || N/A || N/A || AC2 | + | | Ground || N/A || N/A || AC2 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AN1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AP1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AR1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AS1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AT1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || AV2 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BB2 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BC2 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BD1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BE1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BT1 |
|- | |- | ||
− | | Ground || N/A || N/A | + | | Ground || N/A || N/A || BV2 |
|- | |- | ||
− | | +5 || | + | | +5 || N/A || N/A || AA2 |
|- | |- | ||
− | | +5 || N/A || N/A | + | | +5 || N/A || N/A || BA2 |
|- | |- | ||
− | |||
|} | |} | ||
− | + | ===FLIP CHIPs=== | |
+ | |||
+ | Early on in the life of the UNIBUS, at a time when DEC was making extensive use of small [[FLIP CHIP]]s to build computers and peripherals, DEC produced a series of FLIP CHIPs (most of them single height) to be used in connecting peripherals to the UNIBUS. They were: | ||
+ | |||
+ | * M783 UNIBUS Transmitter | ||
+ | * M784 UNIBUS Receiver | ||
+ | * M785 UNIBUS Transceiver | ||
+ | * M798 UNIBUS Drivers | ||
+ | * [[M105 Address Selector]] | ||
+ | * M795 Word Count and Bus Address Module | ||
+ | * M796 UNIBUS Master Control Module | ||
+ | * [[M782 Interrupt Control]] | ||
+ | |||
+ | ==Documentation== | ||
− | + | Details of the operation of the UNIBUS may be found in the DEC publications "pdp11 peripherals handbook" (various editions from 1972 to 1977), and the "pdp11 bus handbook" (1979), all below. | |
− | == See also == | + | '''''NOTE:''''' There is a serious editing error in the latter volume, in the description of UNIBUS arbitration. On page 38, immediately after step 13 of the NPR Arbitration Sequence ("13. .... SACK must be negated before BBSY may be negated."), it says "A bus master may issue an interrupt command to the interrupt fielding processor." |
+ | |||
+ | Despite its location in the text, this does '''''not''''' apply to the "NPR arbitration sequence" being discussed above. There is an editing error - this text is (or ''should be'') separate from the "NPR Arbitration Sequence" section just before it; it belongs with "BR Interrupt Arbitration Sequence" - that header (on pg. 39) was put in the wrong place. | ||
+ | |||
+ | The 1975 "peripherals handbook" has very similar text, but it ''does'' have a section header after the NPR details (line 13 is identical), and before the start of the (very similar) BR text ("A bus master that has gained control ... through a BRn/BGn arbitration transaction may issue an interrupt command to the processor."). | ||
+ | |||
+ | {{wp-orig}} | ||
+ | |||
+ | ==See also== | ||
* [[Extended UNIBUS]] | * [[Extended UNIBUS]] | ||
− | * [[ | + | * [[UNIBUS Initialization]] |
− | * [[ | + | * [[Bus Arbitration on the Unibus and QBUS]] |
+ | * [[M8264 No-SACK Timeout Module]] - in particular, the [[M8264 No-SACK Timeout Module#Functionality discussion|Discussion]] section | ||
+ | * [[UNIBUS and QBUS termination]] | ||
+ | * [[UNIBUS Device Addresses]] | ||
+ | * [[UA11 Unibus Analyzer]] | ||
+ | * [[UNIBUS backplanes]] | ||
* [[UNIBUS memories]] | * [[UNIBUS memories]] | ||
− | * [[ | + | * [[:Category:UNIBUS ROMs|UNIBUS ROMs]] |
+ | * [[DB11-A Bus Repeater]] | ||
+ | * [[DA11-B DMA UNIBUS Link]] | ||
+ | * [[DA11-F UNIBUS Window]] | ||
+ | * [[UniBone/QBone]] | ||
+ | |||
+ | <!-- ==Further reading== --> | ||
+ | |||
+ | ==External links== | ||
− | + | * [http://www.bitsavers.org/pdf/dec/unibus/UnibusSpec1979.pdf pdp-11 UNIBUS Design Description] | |
+ | * [http://www.bitsavers.org/pdf/dec/pdp11/handbooks/PDP11_BusHandbook1979.pdf pdp11 bus handbook] (EB-17525-20/79-070-14-55) | ||
+ | * [http://www.bitsavers.org/pdf/dec/pdp11/handbooks/PDP11_PeripheralsHbk_1972.pdf pdp11 peripherals and interfacing handbook (1972 edition)] - general UNIBUS operation, and [[analog]] description, is covered in Part 2 (pp. 185-216 of the PDF); the UNIBUS FLIP CHIPs are covered in Section 2.2.3 (pp. 216-242 of the PDF) | ||
+ | * [http://www.bitsavers.org/pdf/dec/pdp11/handbooks/PDP11_PeripheralsHbk_1976.pdf pdp11 peripherals handbook (1976 edition)] - has a very detailed description of master/slave operations, bus requests and interrupts, in chapter 5, "UNIBUS Theory and Operation" | ||
+ | * [http://www.bitsavers.org/pdf/dec/pdp11/memos/690402_PDP-11_Uni-Bus.pdf PDP-11 Bus Technical Description] - internal memo describing an earlier design | ||
− | [[Category: | + | [[Category: UNIBUS]] |
+ | [[Category: DEC Buses]] | ||
+ | [[Category: DEC Documentation Errors]] |
Latest revision as of 22:26, 14 January 2024
The UNIBUS (or Unibus - the capitalization style changed over time) was the earliest of two bus technologies used with PDP-11s manufactured by DEC; it was first seen in the PDP-11/20, in 1970. Later, early VAX systems from that company used the UNIBUS as an I/O bus; it was also used in the small KS10-based model of the DECSYSTEM-20 mainframe, to furnish it with inexpensive peripherals.
It was the only bus in most PDP-11 systems, until the arrival of the QBUS, and thus supported several capabilities: the ability of the CPU to read and write main memory, and device registers; and the ability for devices to do DMA transfers to memory, and to interrupt the CPU.
The UNIBUS contained 16 data lines, and 18 address lines, as well as a number of control lines. The 18 address lines allowed the direct addressing of a maximum of 256 Kbytes. Typically, the top 8 Kbytes of address space was reserved for the registers of the memory mapped I/O devices used in the PDP-11 architecture; this block is often referred to as the I/O page.
The limit of 18 address lines, while generally adequate in the days of core memory, was to prove a severe handicap in the later phases of the UNIBUS' operational life. On machines with more main memory than could be addressed directly with 18 bits, it was necessary to provide a UNIBUS map to allows DMA devices to 'see' all of main memory.
The bus was completely asynchronous, allowing a mixture of fast and slow devices. It also allowed arbitration (selection of the next bus master) while the current bus master was still performing data transfers, overlapping the two functions.
The design deliberately minimized the amount of redundant logic required in the system. For example, a system always contained more slave devices than master devices, so most of the complex logic required to implement asynchronous data transfers was forced into the relatively few master devices. For interrupts, only the interrupt-fielding processor needed to contain the complicated timing logic. The end result was that most I/O controllers could be implemented with very simple logic; most of the critical logic was later implemented as a custom MSI IC.
In analog terms, most of the signals of the UNIBUS were broadcast on wired-OR transmission lines. Most were held at a low voltage by the lines' terminators when idle; they were then driven to ground by the transmitter to assert a signal.
It could exist on a cable (the original physical form of implementation), and later, within a backplane (in 'Small Peripheral Controller (SPC)' or 'Modified UNIBUS Device (MUD)' slots). Up to approximately 20 nodes (devices) could be connected to a single UNIBUS segment; additional segments could be connected via a bus repeater.
Contents
Operation
Two control lines (C0 and C1) allowed the selection of four different data transfer cycle types in normal master/slave cycles:
- DATI (Data In, a read)
- DATIP (Data In/Pause, the first portion of a Read-Modify-Write operation; a DATO or DATOB operation completes this.)
- DATO (Data Out, a word write)
- DATOB (Data Out/Byte, a byte write)
During these operations, several signals (MSYN - Master Sync; SSYN - Slave Sync; and BBSY - Bus Busy) are used to synchronize between the master and slave, to indicate when the data is ready to be read (during a DATI/DATIP), or has been written (during a DATO/DATOB).
During an interrupt cycle, a fifth style of transfer was used to convey an interrupt vector from the interrupting device to the interrupt-fielding processor.
DMA and Interrupts
Both DMA (in which a device must request control of the bus, so that it can perform a normal master/slave cycle, only with itself as the master), and interrupts, use the same mechanism for the device to communicate with the CPU to request something, and for the CPU to communicate with the device that it has granted the device's request.
There are bus request lines (NPR for DMA, and BR4-BR7 for interrupts), and bus grant lines (NPG for DMA, and BG4-7 for interrupts). The request lines are normal 'wired-OR' broadcast bus lines, but the grant lines are special; they are wired in series - one device's 'grant out' line is connected to the next device's 'grant in' line, starting with the CPU's 'grant out' line.
When a device receives a grant, it uses another bus line (SACK) to indicate that it received its grant; if the CPU sends a grant, and does not see a SACK in response, it knows there was some sort of error.
Parity
The UNIBUS had provisions for parity, but the details changed over time.
In the final, and lasting version, a slave which stored data along with parity (usually main memory) could indicate to a master, during a DATI/DATIP operation, that there had been a parity error seen when retrieving the data. The master could then take whatever action it deemed appropriate; most PDP-11 CPU's would perform a trap.
Implementation
Lines
The UNIBUS is usually described as containing 56 lines. In its initial BC11A UNIBUS cable instantiation, the UNIBUS was composed of 72 wires (2 standard DEC board edge connectors, with 36 lines per connector); when not counting the power and ground lines, this was reduced to the canonical 56.
Among the UNIBUS signals are:
- BR4-BR7 - Bus (Interrupt) Requests at priorities 4 (lowest) through 7 (highest)
- BG4-BG7 - Bus (Interrupt) Grants at priorities 4 (lowest) through 7 (highest)
- NPR - Non Processor (DMA) Request
- NPG - Non Processor (DMA) Grant
- MSYNC - Master Sync
- SSYNC - Slave Sync
- BBSY - Bus Busy
- SACK - Selection Acknowledge
- PA, PB - Parity control
- C0, C1 - Cycle Control
The values on the C0 and C1 lines specify the cycle type; this table shows them:
C1 | C0 | Cycle type |
---|---|---|
0 | 0 | DATI |
0 | 1 | DATIP |
1 | 0 | DATO |
1 | 1 | DATOB |
Cables
For many years, the cable used to carry the UNIBUS from one backplane to another was the BC11A UNIBUS cable, a pair of wide (3-3/4 inch) white Flexprint cables, separated by a thin foam layer, with small printed circuit boards with edge connector fingers on each end of the cable. The latter plugged into 'UNIBUS In' and 'UNIBUS out' slots in backplanes. The flat cables actually contained 64 connectors each; every other trace was grounded, to prevent cross-talk between the signal lines.
DEC later developed a series of cards (the M9014, an extended height dual card, and the M9042 short dual card) which plug into the same slots, and contain three 2x20 Berg headers for 40-conductor flat cables (known as H854 cables in DEC parlance); a pair of these cards, and three cables, perform the same role as a BC11A cable. Both of these cards use the same header pinout, so they may be used interchangeably.
Pinout
The following table gives the pinout for the flat cable form. Pins are identified in the standard DEC manner. There are two connectors on the cable, A and B; pins on the component side are 1, those on the solder side are 2. Pins are identified by the 'DEC alphabet', A-V, with G, I, O and Q dropped.
Signal | Assertion | Termination | Pin |
---|---|---|---|
Initialization and Shutdown | |||
DC LO | L | Slow | BF2 |
AC LO | L | Slow | BF1 |
INIT | L | Fast | AA1 |
Arbitration | |||
NPR | L | Fast | AS2 |
BR7 | L | Fast | AT2 |
BR6 | L | Fast | AU2 |
BR5 | L | Fast | BC1 |
BR4 | L | Fast | BD2 |
NPG | H | Grant | AU1 |
BG7 | H | Grant | AV1 |
BG6 | H | Grant | BA1 |
BG5 | H | Grant | BB1 |
BG4 | H | Grant | BE2 |
SACK | L | Fast | AR2 |
Addressing | |||
A00 | L | Fast | BH2 |
A01 | L | Fast | BH1 |
A02 | L | Fast | BJ2 |
A03 | L | Fast | BJ1 |
A04 | L | Fast | BK2 |
A05 | L | Fast | BK1 |
A06 | L | Fast | BL2 |
A07 | L | Fast | BL1 |
A08 | L | Fast | BM2 |
A09 | L | Fast | BM1 |
A10 | L | Fast | BN2 |
A11 | L | Fast | BN1 |
A12 | L | Fast | BP2 |
A13 | L | Fast | BP1 |
A14 | L | Fast | BR2 |
A15 | L | Fast | BR1 |
A16 | L | Fast | BS2 |
A17 | L | Fast | BS1 |
Data | |||
D00 | L | Fast | AC1 |
D01 | L | Fast | AD2 |
D02 | L | Fast | AD1 |
D03 | L | Fast | AE2 |
D04 | L | Fast | AE1 |
D05 | L | Fast | AF2 |
D06 | L | Fast | AF1 |
D07 | L | Fast | AH2 |
D08 | L | Fast | AH1 |
D09 | L | Fast | AJ2 |
D10 | L | Fast | AJ1 |
D11 | L | Fast | AK2 |
D12 | L | Fast | AK1 |
D13 | L | Fast | AL2 |
D14 | L | Fast | AL1 |
D15 | L | Fast | AM2 |
Control | |||
C0 | L | Fast | BU2 |
C1 | L | Fast | BT2 |
PA | L | Fast | AM1 |
PB | L | Fast | AN2 |
BBSY | L | Fast | AP2 |
MSYN | L | Fast | BV1 |
INTR | L | Fast | AB1 |
SSYN | L | Fast | BU1 |
Power | |||
Ground | N/A | N/A | AB2 |
Ground | N/A | N/A | AC2 |
Ground | N/A | N/A | AN1 |
Ground | N/A | N/A | AP1 |
Ground | N/A | N/A | AR1 |
Ground | N/A | N/A | AS1 |
Ground | N/A | N/A | AT1 |
Ground | N/A | N/A | AV2 |
Ground | N/A | N/A | BB2 |
Ground | N/A | N/A | BC2 |
Ground | N/A | N/A | BD1 |
Ground | N/A | N/A | BE1 |
Ground | N/A | N/A | BT1 |
Ground | N/A | N/A | BV2 |
+5 | N/A | N/A | AA2 |
+5 | N/A | N/A | BA2 |
FLIP CHIPs
Early on in the life of the UNIBUS, at a time when DEC was making extensive use of small FLIP CHIPs to build computers and peripherals, DEC produced a series of FLIP CHIPs (most of them single height) to be used in connecting peripherals to the UNIBUS. They were:
- M783 UNIBUS Transmitter
- M784 UNIBUS Receiver
- M785 UNIBUS Transceiver
- M798 UNIBUS Drivers
- M105 Address Selector
- M795 Word Count and Bus Address Module
- M796 UNIBUS Master Control Module
- M782 Interrupt Control
Documentation
Details of the operation of the UNIBUS may be found in the DEC publications "pdp11 peripherals handbook" (various editions from 1972 to 1977), and the "pdp11 bus handbook" (1979), all below.
NOTE: There is a serious editing error in the latter volume, in the description of UNIBUS arbitration. On page 38, immediately after step 13 of the NPR Arbitration Sequence ("13. .... SACK must be negated before BBSY may be negated."), it says "A bus master may issue an interrupt command to the interrupt fielding processor."
Despite its location in the text, this does not apply to the "NPR arbitration sequence" being discussed above. There is an editing error - this text is (or should be) separate from the "NPR Arbitration Sequence" section just before it; it belongs with "BR Interrupt Arbitration Sequence" - that header (on pg. 39) was put in the wrong place.
The 1975 "peripherals handbook" has very similar text, but it does have a section header after the NPR details (line 13 is identical), and before the start of the (very similar) BR text ("A bus master that has gained control ... through a BRn/BGn arbitration transaction may issue an interrupt command to the processor.").
See also
- Extended UNIBUS
- UNIBUS Initialization
- Bus Arbitration on the Unibus and QBUS
- M8264 No-SACK Timeout Module - in particular, the Discussion section
- UNIBUS and QBUS termination
- UNIBUS Device Addresses
- UA11 Unibus Analyzer
- UNIBUS backplanes
- UNIBUS memories
- UNIBUS ROMs
- DB11-A Bus Repeater
- DA11-B DMA UNIBUS Link
- DA11-F UNIBUS Window
- UniBone/QBone
External links
- pdp-11 UNIBUS Design Description
- pdp11 bus handbook (EB-17525-20/79-070-14-55)
- pdp11 peripherals and interfacing handbook (1972 edition) - general UNIBUS operation, and analog description, is covered in Part 2 (pp. 185-216 of the PDF); the UNIBUS FLIP CHIPs are covered in Section 2.2.3 (pp. 216-242 of the PDF)
- pdp11 peripherals handbook (1976 edition) - has a very detailed description of master/slave operations, bus requests and interrupts, in chapter 5, "UNIBUS Theory and Operation"
- PDP-11 Bus Technical Description - internal memo describing an earlier design