SBS Technologies 466-1 User manual

Model 466-1 Adapter
Hardware Manual
Connects a SBus Computer
to a VMEbus System

Model 466-1 Adapter
ii

Model 466-1 Adapter
iii
Disclaimer
Please read and abide by the following paragraphs. Questions and comments
should be directed to:
Technical Publications Department
SBS Technologies, Inc.
Connectivity Products
1284 Corporate Center Drive
St. Paul, MN 55121-1245
651-905-4700
SBS Technologies does not authorize the use of its components in life support
applications where failure or malfunction of the component may result in
injury or death. In accordance with SBS's terms and conditions of sale, the
user of SBS components in any and all life support applications assumes all
risks arising out of such use and further agrees to indemnify and hold SBS
harmless against any and all claims of whatsoever kind or nature (including
claims of culpable conduct [strict liability, negligence or breach of warranty]
on the part of SBS) for all costs of defending any such claims.
SBS does not authorize the use of its components in control and process
applications where failure or malfunction of the component may result in
radioactive releases, explosions, environmental damage/contamination,
personal injury or death. In accordance with SBS's terms and conditions of
sale, the user of SBS components in any and all control and process
applications assumes all risks arising out of such use and further agrees to
indemnify and hold SBS harmless against any and all claims of whatsoever
kind or nature (including claims of culpable conduct [strict liability,
negligence or breach of warranty] on the part of SBS) for all costs of
defending any such claims.
SBS makes no warranty of any kind with regard to this material, including,
but not limited to, the implied warranties of merchantability and fitness for a
particular purpose. SBS assumes no responsibility for any errors that may
appear in this document. The information in this document is subject to
change without notice.

Model 466-1 Adapter
iv
U.S. GOVERNMENT LIMITED RIGHTS
This documentation is provided with limited rights. Use, duplication or
disclosure by the Government is subject to the restrictions as set forth in
subdivision (b) (3) (iii) of the Rights in Technical Data and Computer
Software Clause of DFAR 252.227-7013 (October 1988) and in similar clauses
in the FAR and NASA FAR Supplement. Manufacturer is SBS Technologies,
Inc., Connectivity Products, 1284 Corporate Center Drive, St. Paul, MN
55121-1245.
Manual copyright (c) 1998, 1999 by SBS Technologies, Inc.
SBus, SunOS, and SPARCstation are registered trademarks of Sun Microsystems, Inc. UNIX is a
trademark of AT&T.
Revision 1.2 1/99
Pub. No. 85155020

Model 466-1 Adapter
v
Preface
This manual describes the SBS Model 466-1 adapter that connects a Sun SBus
computer, such as a SPARCstation®, to a VMEbus system. It includes
information about the adapter's operation, installation, configuration, and
control registers.
To simplify installation and eliminate operation problems, SBS recommends
that you review this manual before beginning to install your new adapter
cards. Please pay close attention to the sections on card configuration and
adapter registers.
Chapter 1 provides an executive overview of the adapter, product
description, specifications, and requirements.
Chapter 2 gets you started with information about the adapter package
and cable.
Chapter 3 gives a detailed description of the SBus adapter card
configuration.
Chapter 4 describes VMEbus adapter card configuration.
Chapter 5 includes installation instructions.
Chapter 6 contains information about adapter registers accessed from the
SBus.
Chapter 7 provides information about adapter registers accessed from the
VMEbus.
Chapter 8 describes common procedures and programming sequences.
Chapter 9 provides suggestions and solutions for common problems with
setting up and using the adapter.
Appendix A is a glossary of terms used throughout this manual.

Model 466-1 Adapter
vi
Appendix B describes VMEbus addressing.
Appendix C shows the differences between the Model 466 and Model
466-1 VMEbus adapter cards, including the default jumper settings and
jumper block changes.
Appendix D contains jumper configuration worksheets.
Important Notes:
Make sure you follow proper ESD handling procedures (refer to EIA-625,
ESD Association Handbook, or MIL-HDBK-263) when working cards
and components.
Be sure power is OFF before installing adapter cards.

Model 466-1 Adapter
vii
Table Of Contents
Chapter 1: Adapter Functions...............................................................1
1.0 Overview........................................................................................1
1.1 Card Specifications.........................................................................3
1.1.1 SBus Adapter Card Notes...............................................5
1.1.2 VMEbus Adapter Card Notes.........................................5
1.2 VMEbus Address Modifier Types Supported ..................................6
1.3 Bus-To-Bus Mapping .....................................................................6
1.4 Dual Port RAM ..............................................................................7
1.5 System Controller Operation ..........................................................7
1.6 Adapter CSR..................................................................................8
1.7 Interrupt And Error Handling.........................................................9
1.7.1 Backplane Interrupts......................................................9
1.7.2 Interface Error Interrupt.................................................9
1.7.3 Programmed Interrupts..................................................10
1.7.3.1 Programmed Interrupt To Transmitter (PT)...10
1.7.3.2 Programmed Interrupt to Receiver (PR).........11
1.8 IACK Read Operation ....................................................................12
1.9 Page Mode Operation.....................................................................12
1.10 Address Biasing............................................................................13
Chapter 2: Getting Started.....................................................................15
2.0 Unpacking......................................................................................15
2.1 Adapter Cables...............................................................................15
2.2 Options...........................................................................................15
2.3 Help!..............................................................................................16
2.4 Additional References.....................................................................16
Chapter 3: SBus Adapter Card Configuration......................................17
3.0 Introduction....................................................................................17
3.1 SBus Adapter Card Diagram ..........................................................17
3.1.1 Configuration Notes........................................................18
3.2 SBus Addressing ............................................................................18
3.3 SBus Adapter Address Map............................................................19
3.4 SBus Adapter Card Factory Settings...............................................20
3.5 Jumpers In Jumper Block J1...........................................................20
3.5.1 D16/D32 Data Transfer Size Jumper (Jumper 1)............21

Model 466-1 Adapter
viii
3.5.2 Address Map Disable Jumper (Jumper 2) .......................21
3.5.3 Remote Address A24/A32 Select Jumper (Jumper 3)......21
3.5.4 Jumper 4 ........................................................................22
3.6 SBus Adapter Card LEDs ...............................................................22
Chapter 4: VMEbus Adapter Card Configuration.................................23
4.0 Introduction....................................................................................23
4.1 VMEbus Adapter Card Diagram.....................................................23
4.1.1 Configuration Notes.......................................................24
4.2 Configuring For VMEbus System Controller Mode.........................24
4.3 VMEbus Adapter Card Factory Settings..........................................25
4.4 System (SYS) Jumpers....................................................................26
4.5 Transmitted Interrupt Jumpers........................................................28
4.6 Received Interrupt Jumpers.............................................................29
4.7 Bus Grant And Bus Request Jumpers..............................................30
4.8 I/O Range Jumpers .........................................................................33
4.9 Dual-Port RAM Jumpers.................................................................34
4.10 Unused Remote RAM Jumpers......................................................37
4.11 Address Bias Jumpers...................................................................38
4.12 VMEbus Adapter Card LEDs........................................................41
Chapter 5: Installation...........................................................................43
5.0 Caution!..........................................................................................43
5.1 Configure The Adapter Cards.........................................................43
5.2 Installing The SBus Adapter Card ..................................................43
5.3 Installing The VMEbus Adapter Card.............................................44
5.4 Connecting The Adapter Cable.......................................................44
Chapter 6: CSR Accessed From The SBus ..........................................45
6.0 Introduction....................................................................................45
6.1 Local Node Registers ......................................................................46
6.1.1 Local Command Register ...............................................46
6.1.2 Local Status Register......................................................47
6.1.3 Interrupt Control Register ..............................................49
6.2 Remote Node Registers...................................................................50
6.2.1 Remote Command Register 2 .........................................51
6.2.2 Remote Command Register 1 .........................................52
6.2.3 Remote Status Register...................................................55
6.2.4 VMEbus Page Registers .................................................56
6.2.5 Address Modifier Register..............................................57
6.2.6 Adapter ID Register .......................................................58

Model 466-1 Adapter
ix
6.2.7 Remote IACK Read Register..........................................59
Chapter 7: CSR Accessed From The VMEbus......................................61
7.0 Introduction....................................................................................61
7.1 Local Node Registers......................................................................61
7.1.1 VMEbus Command Register..........................................62
7.1.2 VMEbus Status Register ................................................63
7.1.3 Interrupt Vector Register................................................64
Chapter 8: Common Procedures And Programming Sequences........65
8.0 Introduction....................................................................................65
8.1 Adapter Initialization And Testing.................................................65
8.2 Making A Page Mode Access To VMEbus Or Dual Port RAM.......66
8.3 Making A Direct Mode Access To VMEbus Or Dual Port RAM.....66
8.4 How To Acknowledge A VMEbus Backplane Interrupt ..................67
8.5 How To Acknowledge A Programmed Interrupt (PT) From
VMEbus................................................................................................67
8.6 How To Cause A VMEbus Interrupt...............................................68
8.7 Using The Lock VMEbus Bit To Simulate Atomic (Indivisible
Cycle) Operations..................................................................................69
8.8 Modifying The Control Registers....................................................70
Chapter 9: Common Problems And Solutions.....................................71
9.0 Introduction....................................................................................71
9.1 Runtime Symptoms Of Address Conflicts.......................................71
9.2 Data Transfer Errors.......................................................................72
9.2.1 Local Status Register Bit 7: Interface Parity Error.........72
9.2.2 Local Status Register Bit 6: Remote VMEbus Error ......73
9.2.3 Local Status Register Bit 2: Interface Timeout ..............74
9.3 Dual Port RAM Alignment.............................................................75
9.4 Bus Error Or Unexpected Status ID (Interrupt Vector) Returned
When Reading IACK Read Register......................................................76
9.5 Using The VMEbus Adapter Card LEDs As Diagnostic Tools........77
Appendix A: Glossary............................................................................79
Appendix B: VMEbus Addressing.........................................................83
Appendix C: Changes To VMEbus Adapter Card Default Jumper
Settings And Jumper Blocks..................................................................87
C.1 VMEbus Adapter Card Jumper Blocks...........................................88

Model 466-1 Adapter
x
C.1.1 System Jumpers.............................................................88
C.1.2 Received Interrupt Jumpers............................................89
C.1.3 Bus Grant And Bus Request Jumpers.............................90
C.1.4 Remote RAM Jumpers...................................................91
C.1.5 Dual Port RAM Jumpers................................................93
Appendix D: Jumper Configuration Worksheets.................................95
D.1 SBus Adapter Card Worksheet.......................................................97
D.2 VMEbus Adapter Card Worksheet.................................................99

Model 466-1 Adapter
Adapter Functions 1
Chapter 1: Adapter Functions
1.0 Overview
The SBS Model 466-1 adapter is an easy-to-use, cost-effective way to share
memory and special purpose cards between a SBus computer and a VMEbus
system. The Model 466-1 adapter provides high-speed data transfers between
the two systems, and requires minimal software support. It permits the SBus
computer to be a bus master on the VMEbus, but does not support VMEbus
mastering into the SBus. The SBS Model 467-1 adapter provides bi-
directional bus mastering.
Model 466-1 interconnects the SBus and VMEbus systems at the physical
layer. Working at the lowest level, the bus, the adapter allows the two systems
to share memory; memory appears to and is treated by each system as if it
were its own. In addition, a card only available on one bus may be directly
controlled by a device on another bus. For example, an Array Processor board
in a VMEbus chassis can be directly controlled by the SBus processor.
Model 466-1 supports Memory Mapped inter-system communications.
Memory Mapping controls random access (PIO transfers) to VMEbus RAM,
dual-port memory and VMEbus I/O, and provides an easy-to-use, flexible
interface with low overhead. A SBus bus master can access memory in the
VMEbus system through a window in SBus slot I/O address space.
Two Memory Mapping techniques are supported: Direct Mode (with address
biasing) and Page Mode. Either technique can be used to control access to
remote bus memory and dual-port memory. Access to VMEbus I/O is not
affected by the mapping mode.
Direct Mode has a one-to-one relationship between address windows. Data
are transferred through one window directly into an equal size window on the
other bus.
In Page Mode, a window in the SBus address space is coupled with a 16-bit
programmable Page Register. The SBus address within the window provides
the lower 16-20 address bits. The Page Register provides the upper 16-12 bits
of the 32-bit VMEbus address.

Model 466-1 Adapter
2Adapter Functions
Memory Mapping also controls access to dual-port memory (Dual Port RAM).
Dual Port RAM is an optional card installed on the VMEbus adapter card. It
provides a memory buffer; saves the cost of additional memory cards; and
requires no additional VMEbus card slots.
SBS's Dual Port RAM is a printed circuit card that plugs into the VMEbus
adapter card as a daughter card. The following memory sizes are currently
available: 128K and 8M bytes.
Optional Dual Port RAM provides shared memory space that is accessible
from either system. Dual Port RAM access uses only the bandwidth of the
accessing bus. Consequently, data can be exchanged with minimal impact on
the performance of the other system's bus. Both systems can access Dual Port
RAM simultaneously; the adapter arbitrates accesses.
Model 466-1 adapter does not link the timing of the two buses (so that activity
on one bus slows down the other). Instead, the adapter permits each bus to
operate independently. The buses are linked only when a memory or I/O
reference is made to an address on one system that translates to a reference on
the other.
The Model 466-1 adapter consists of two cards: a SBus card and a 6U size
VMEbus card. The two cards are connected by a round EMI-shielded copper-
conductor cable purchased separately from SBS.
Cable is available in standard 8-foot or 25-foot lengths and custom lengths.
Fiber-Optic Interface Modules are also available from SBS.
Software drivers are available on the CD-ROM included with the adapter.
The software provides a SBus device driver and example programs that
demonstrate use of the Model 466-1 adapter.

Model 466-1 Adapter
Adapter Functions 3
1.1 Card Specifications
Bus Communication Specifics:
The SBus adapter card acts as a bus slave to the SPARCstation and can access
either the optional Dual Port RAM or the VMEbus through the VMEbus
adapter card. The VMEbus adapter card can act as a VMEbus master or as a
VMEbus slave via optional Dual Port RAM.
Accesses from the SBus to the VMEbus are A32, A24, or A16; data accesses
are D32, D16, or D8.
Bus Arbitration:
Provides single-level (SGL) or four-level Priority / Round-Robin (PRI/RRS)
arbitration.
Release-on-Request (ROR);
Release-on-Bus-Clear.
Access Times:
SBus read/write access to VMEbus RAM: 2.1 µsec.
SBus read/write access to remote Dual Port RAM: 2.1 µsec.
VMEbus read/write access to local Dual Port RAM: 500 nsec.
Block Mode Transfers:
Not supported.
Interrupt Passing:
Up to four interrupts can be sent from the VMEbus system to the SBus. These
interrupts are selected from eight possible sources: VMEbus IRQ1 - IRQ7 and
the PT Interrupt.
Although there are several potential VMEbus interrupt sources, only one SBus
interrupt signal is available. Therefore, an 8-bit status register and an
interrupt control register are provided for the SBus interrupt handling routine
to use to determine the VMEbus interrupt source.
Two types of programmed interrupts, PT and PR Interrupts, can be exchanged
between the SBus and the VMEbus.
Interrupt Acknowledgment:
SBus acknowledgment of VMEbus interrupts and VMEbus vector passing is
provided through an adapter card control register.

Model 466-1 Adapter
4Adapter Functions
SBus - VMEbus Timeout:
SBus to VMEbus transfer cycles timeout within 720 SBus clock cycles (28.8
µsec with 25 MHz SBus clock, or 36 µsec with a 20 MHz SBus clock). This
results in an error bit being set and an interrupt generated if enabled.
The timeout period is implemented by asserting a retry acknowledgment at
240 SBus clock cycles after the SBus system initiates a VMEbus access. After
two retries, if there is still no response from the VMEbus, the adapter issues a
false acknowledgment, sets an error status bit, and generates an interrupt.
VMEbus System Controller Capability:
If configured as the system controller, the VMEbus adapter card provides level
3 bus arbitration, generates the VMEbus system clock and reset, and detects
VMEbus timeout.
SBus Configuration ROM:
The SBus Configuration ROM includes driver and card information.
Read-Modify-Write:
Read-modify-write transactions from VMEbus to local dual-port memory are
indivisible.
Read-modify-write to the VMEbus system is simulated by a bus-lock control
bit in an adapter control register.
Conformance:
The VMEbus adapter card meets IEEE 1014C specifications.
The SBus adapter card meets Revision B.0 of the SBus specification and does
not use any of the extensions.
Power Requirements:
The VMEbus adapter card draws 3.5A at 5V.
The SBus adapter card draws 1.0A at 5V.
Environment:
Temperature: 0º to 60º C operating;
-40º to 85º C storage.
Humidity: 0% to 90% non-condensing.

Model 466-1 Adapter
Adapter Functions 5
1.1.1 SBus Adapter Card Notes
Configuration is accomplished via jumper settings and control registers.
Fixed window size of 32M bytes.
rLocal and remote node I/O registers.
rVMEbus I/O window is always 64K bytes.
rVMEbus A24 only memory window is always 2M bytes.
rVMEbus A24/A32 memory window is always 16M bytes.
rDual Port RAM window is always 8M bytes.
Interrupts are grouped on exactly one interrupt line.
Possible sources of interrupts:
rPending VMEbus interrupts IRQ1 - IRQ7,
rError Interrupt,
rPR Programmed Interrupt,
rPT Programmed Interrupt.
Interrupt enable control bit.
The SBus uses geographic addressing.
Depending on configuration, the SBus adapter card responds to memory
cycles as a 32-bit or 16-bit device.
1.1.2 VMEbus Adapter Card Notes
All configuration is accomplished via jumpers.
Adjustable VMEbus Dual Port RAM window size.
rLocal and remote node I/O registers.
rDual Port RAM window size is adjustable to 16M bytes in increments
of 64K bytes.
Multiple interrupts are independently jumpered.

Model 466-1 Adapter
6Adapter Functions
1.2 VMEbus Address Modifier Types Supported
For SBus random access to the VMEbus, any address modifier, except
VME64, can be supported via the VMEbus adapter card Address Modifier
Register. If the Address Modifier Register is not used, then the default
values are:
r2D for VMEbus I/O.
r3D for A24 access.
r0D for A32 access.
For VMEbus access to Dual Port RAM, all A24 and A32 address
modifiers are accepted.
In 32-bit mode, Dual Port RAM responds to address modifiers 09, 0A,
0D, and 0E.
In 24-bit mode, Dual Port RAM responds to address modifiers 39, 3A,
3D, and 3E.
For VMEbus access to adapter control and status register I/O space:
r2D for Short Supervisory access.
r29 for Short Non-Privileged access.
1.3 Bus-To-Bus Mapping
The Model 466-1 adapter works by mapping a portion of memory address
space in the SPARCstation into memory address space on the VMEbus. The
SBus adapter card maps sections of its SBus slot to memory or I/O accesses on
the VMEbus. The VMEbus address spaces appear to a SBus processor as
though they were present in the SBus chassis and behave as if they were local
memory.

Model 466-1 Adapter
Adapter Functions 7
1.4 Dual Port RAM
Dual Port RAM is an optional memory card that attaches to the VMEbus
adapter card and appears to both systems as simply more memory. The
address of Dual Port RAM is independently set on each adapter card, and may
be set to respond to one address range in one system and a different range in
the other. Both systems can access the memory at the same time with the
adapter arbitrating simultaneous accesses.
The following sizes of Dual Port RAM are available from SBS: 128K and 8M
byte cards.
All Dual Port RAM cards are designed to ignore unused upper address
bits. However, bits A23 and above must select the Dual Port RAM
window. Therefore, for a 1M byte memory Dual Port RAM card, only
Address Lines A19 - A0 are significant; Address Lines A19 and above
are ignored.
1.5 System Controller Operation
The Model 466-1 adapter has the ability to act as a link between the two
chassis even when the VMEbus chassis has no processor present. This form
of operation is called System Controller Mode.
System Controller Mode is selected on the adapter card installed in slot one of
the chassis that has no processor.
System Controller Mode is configured by setting the SYS jumper block to
drive the system clock, system reset, and the Bus Error (BERR) global
timeout. An adapter card may be configured to be a single-level (SGL) bus
arbiter or a four-level bus arbiter in priority (PRI) or round-robin (RRS) mode.
A priority arbiter provides requesters preferential control of the data transfer
bus over other levels. By definition, BR3 has highest priority, and BR0 is the
lowest. When two or more requests are pending, the arbiter assigns control of
the bus in the appropriate order by granting the bus in this sequence.

Model 466-1 Adapter
8Adapter Functions
The priority arbiter must assert BCLR when a bus master of higher priority
than the one in control of the bus initiates a request. When BBSY is asserted
and a request is pending, the arbiter will drive BCLR if the pending request is
of higher priority than the bus grant of the previous arbitration. Although the
current bus master is not required to relinquish control of the bus in any
prescribed time limit, it can continue transferring data until it reaches an
appropriate stopping point.
A round-robin arbiter gives equal priority to all bus request levels. It grants
control of the bus on a rotating basis. Upon release of the bus, the arbiter steps
one level and tests for an active request and asserts a bus grant. If no request
is active, it continues stepping through the levels until a request is found.
The RRS arbiter can drive the BCLR signal. In RRS mode BCLR is asserted
whenever a master requests the bus on a level other than the last one granted.
It does not assert BCLR if a master on the same level requests the bus.
1.6 Adapter CSR
Access from the VMEbus to the adapter Control and Status Registers (CSR)
requires a minimum of 32 bytes of VMEbus I/O space. The SBus has a fixed
window size of 64K to access the adapter's CSR. Only the first 16 bytes of
this space are actually used.

Model 466-1 Adapter
Adapter Functions 9
1.7 Interrupt And Error Handling
Four cable interrupt (CINTx) lines are used to pass the various types of
interrupts between cards. A cable interrupt is the latched representation of the
backplane or programmed interrupt to be passed across the cable.
There are three sources of interrupts from the adapter:
Cable interrupts from the VMEbus (backplane interrupts).
An interface error interrupt.
Programmed interrupts.
1.7.1 Backplane Interrupts
Up to four of seven VMEbus interrupts (IRQ1 - IRQ7) may be passed to the
SBus backplane. VMEbus interrupts are passed across the cable interrupt
lines to the SBus adapter card. The SBus adapter card always interrupts at
exactly one level.
1.7.2 Interface Error Interrupt
The error interrupt is active when a timeout, parity error, or remote node bus
error is detected on the adapter card. It remains active until cleared with a
reset status error command. The interface error interrupt and status bit are
meaningful only if the adapter card initiates communication over the cable to
the other adapter card.
For the SBus adapter card, an error interrupt occurs only if both card
interrupts are enabled and error interrupts are enabled.

Model 466-1 Adapter
10 Adapter Functions
1.7.3 Programmed Interrupts
Two types of programmed interrupts may be exchanged: PT (Programmed
interrupt to Transmitter / SBus) and PR (Programmed interrupt to Receiver /
VMEbus). See section 1.7.3.1 for information on PT Interrupts. See section
1.7.3.2 for a description of PR Interrupts.
1.7.3.1 Programmed Interrupt To Transmitter (PT)
The PT Interrupt is used when a VMEbus processor sends a programmed
interrupt to the SBus.
VMEbus Adapter Card (receiver) SBus Adapter Card (transmitter)
PT
PT
FF
CINTx
VMEbus
Processor SBus
Interrupt
SPARCstation
(Cable Interrupt)
(Reset PT Flip-Flop)
>
<<
>
>
Programmed Interrupt To Transmitter (SBus)
-- PT Interrupt --
PT Interrupts work as follows:
1. A VMEbus processor writes to the adapter card Local Command Register
and sets the PT Interrupt flip-flop on the adapter card in its chassis.
2. The PT Interrupt line can be connected to any unused cable interrupt line
(CINTx) that sends the interrupt to the SBus chassis.
3. When the SBus processor sees the PT Interrupt, it can clear the PT
flip-flop by setting bit 6 of Remote Command Register 1.
Table of contents