SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 SpW-10X SpaceWire Router User Manual Ref: UoD_SpW-10X_UserManual Atmel Part No.: AT7910E Document Revision: Issue 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Document Change log Date Issue Comments Author 19th-March-2004 Issue 1.0 Initial draft version Chris McClements 26th-August-2004 Issue 1.2 Timing for FPGA model added Chris McClements 16 November 2004 Issue 1.3 Register Definitions Updated Chris McClements 27 April 2004 Issue 1.4 Latency and Jitter Specifications added Chris McClements 2 May 2005 Issue 1.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 guidelines. Section added on anomalies and warnings. Section added on Technical Support. 20th January 2008 Issue 3.1 Corrections and example schematic improved. Steve Parkes 18th April 2008 Issue 3.2 Explanation of non-blocking cross bar switch added. Steve Parkes Cold sparing information added. VCO bias resistor value corrected (Section 5.7.4). Tri-state mode changed to deactivate mode.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 CONTENTS CONTENTS..............................................................................................................................................4 I LIST OF FIGURES .......................................................................................................................... 10 II LIST OF TABLES .................................................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 5.3 EXTERNAL PORT DATA SIGNALS............................................................................................ 37 5.4 TIME-CODE SIGNALS ................................................................................................................ 39 5.5 STATUS INTERFACE SIGNALS................................................................................................. 41 5.
SpW-10X SpaceWire Router User Manual 8.1.2 8.1.3 8.1.4 8.1.5 8.1.6 Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Auto-Start .................................................................................................................................. 79 Link-Start................................................................................................................................... 79 Link-Disable ..........................................................................
SpW-10X SpaceWire Router User Manual 9.5.5 9.5.6 9.5.7 9.5.8 9.5.9 9.5.10 9.5.11 9.5.12 Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Time-Code Register ................................................................................................................ 121 Device Manufacturer and Chip ID Register ............................................................................ 122 General Purpose Register..........................................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 12.2.7 External Ports........................................................................................................................ 141 12.2.8 Time-code Interface .............................................................................................................. 141 12.2.9 Status / Power On Configuration Interface .......................................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 15.16 ISSUE 1.2 TO ISSUE 1.3....................................................................................................... 154 15.17 ISSUE 1.1 TO ISSUE 1.2....................................................................................................... 155 15.18 ISSUE 1.0 TO ISSUE 1.1.......................................................................................................
SpW-10X SpaceWire Router User Manual I Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 LIST OF FIGURES FIGURE 2-1 STAND-ALONE ROUTER ...................................................................................................................... 16 FIGURE 2-2 NODE INTERFACE ................................................................................................................................ 17 FIGURE 2-3 EMBEDDED ROUTER ...................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 FIGURE 8-8 ARBITRATION OF TWO PACKETS WITH DIFFERENT PRIORITY (1).......................................................... 89 FIGURE 8-9 ARBITRATION OF TWO PACKETS WITH DIFFERENT PRIORITY (2).......................................................... 91 FIGURE 8-10 NORMAL GROUP ADAPTIVE ROUTING ................................................................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 FIGURE 13-5 LINK DISCONNECT WAVEFORMS .................................................................................................... 147 FIGURE 13-6 DATA AFTER PARITY ERROR ANOMALY ........................................................................................... 148 FIGURE 13-7 NO ERROR END OF PACKET INSERTED AFTER PARITY ERROR ...........................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 TABLE 9-6 SPACEWIRE PORT CONTROL/STATUS REGISTER FIELDS. ................................................................... 113 TABLE 9-7 EXTERNAL PORT CONTROL/STATUS FIELDS ...................................................................................... 115 TABLE 9-8 NETWORK DISCOVERY REGISTER FIELDS ..........................................................................................
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 1. INTRODUCTION This document is a technical reference for the implementation and operation of the SpW-10X SpaceWire Router device (Atmel part number AT7910E). Note: Detailed timing information for the ASIC implementation will be available in 1Q08. 1.1 TERMS, ACRONYMS AND ABBREVIATIONS 3V3 3.3 volt interface levels.
SpW-10X SpaceWire Router User Manual VCO Voltage Controlled Oscillator VDD Drain Voltage (power pin of SpW-10X device) VSS Source Voltage (ground pin of SpW-10X device) WR Write Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 1.2 DOCUMENTS In this section the documents referenced in this document are listed. Table 1-1 Applicable Documents REF Document Number Document Title AD1 ECSS-E5O-12A SpaceWire - links, nodes, routers and networks.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 2. USER APPLICATIONS The SpW-10X SpaceWire router device may be used in several different ways as described in the following sub-sections. Note: SpW-10X is pronounced “SpaceWire Ten X”. This name derives from the abbreviation for SpaceWire (SpW), the fact that the router has eight SpaceWire ports and two external ports giving ten ports in total, and the used of “X” to represent a cross-bar switch. 2.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 2.2 NODE INTERFACE The SpaceWire Router has two external ports which enable the device to be used as a node interface. The equipment to be connected to the SpaceWire network is attached to one or both external ports. One or more SpaceWire ports are used to provide the connection into the SpaceWire network. Unused SpaceWire ports may be disabled and their outputs deactivated to save power.
SpW-10X SpaceWire Router User Manual Instrument 1 Instrument 2 Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 SpaceWire Links SpW‐10X Router Processor Instrument 3 Instrument 4 SpaceWire Node with Embedded Router Instrument 5 Instrument 6 Memory Unit Figure 2-3 Embedded Router In Figure 2-3 a SpaceWire system similar to that shown in Figure 2-1 is shown with the SpW-10X router embedded in a SpaceWire node along with a processor.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 SpW‐10X Router SpaceWire Ports SpW‐10X Router Figure 2-4 Expanding the number of SpaceWire Ports (1) Figure 2-4 shows a pair of SpW-10X routers connected together using the external FIFO ports to provide a 16 port router. A small amount of external logic is required to connect the external FIFO ports in this way.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Figure 2-5 Expanding the number of SpaceWire Ports (2) Figure 2-5 shows two SpW-10X router devices interconnected using two of the SpaceWire ports on each router. This leaves twelve SpaceWire ports for connection to other SpaceWire nodes. The External FIFO ports of each router are used to connect to user logic in an FPGA or to a processing device.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 3. FUNCTIONAL OVERVIEW A SpaceWire routing switch comprises a number of SpaceWire ports and a routing matrix. The routing matrix enables packets arriving at one SpaceWire port to be transferred to and sent out of another port on the routing switch. A SpaceWire routing switch is thus able to connect together many SpaceWire nodes, providing a means of routing packets between the nodes connected to it.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 written to or read from synchronously with the 30MHz system clock. An eight-bit data interface and an extra control bit for end of packet markers are provided by each external port FIFO. Packets received by the external port are routed by the routing control logic to the configuration port, SpaceWire link ports or the other external port dependent on the packet address.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 The crossbar switch connects an input port to an output port allowing data to flow from the input port to the output port. Several input ports may be connected simultaneously to several output ports all passing data. Two or more input ports may not be connected to a single output port.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 4. PIN LOCATIONS The SpaceWire router package is a 196 pin MQFPF package. Type definition: - 3V3.................................3.3 Volt power - GND................................Ground - PIC................................ CMOS input - PRD4 ............................ pull-down resistor (min.16kΩ, max. 80kΩ) - PLL ............................... PLL pins - PFILVDSZP..................
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 5. DEVICE INTERFACE The device pins used by each interface are described in this section. There is a table for each type of interface listing the signals in that interface. These tables have the following fields: Pin No: The device pin number Signal: The name of the signal Dir: The direction of the signal; in, out or in/out Description: An explanation of what the signal does.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 5-1 Global Signals PinNo Signal Dir Description Type 2 CLK In System clock. Provides the reference clock for all modules except the interface receivers. CMOS3V3 3 RST_N In Asynchronous system reset (active low). CMOS3V3 4 TestIOEn In ASIC Test control signal; Shall be connected to logic ‘0’ during normal operation. Tie to ground.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 5-2 Data and Strobe SpaceWire Signals PinNo Signal Dir 24 DOUTPlus(1) Out 23 DOUTMinus(1) Differential output pair, data part of Data-Strobe SpaceWire port 1. LVDS+ (P Side) LVDS - (N Side) 34 DOUTPlus(2) Out 33 DOUTMinus(2) Differential output pair, data part of Data-Strobe SpaceWire port 2.
SpW-10X SpaceWire Router User Manual 17 DINPlus(1) 18 DINMinus(1) 25 DINPlus(2) 26 DINMinus(2) 35 DINPlus(3) 36 DINMinus(3) 47 DINPlus(4) 48 DINMinus(4) 60 DINPlus(5) 61 DINMinus(5) 68 DINPlus(6) 69 DINMinus(6) 78 DINPlus(7) 79 DINMinus(7) 88 DINPlus(8) 89 DINMinus(8) 19 SINPlus(1) 20 SINMinus(1) 27 SINPlus(2) 28 SINMinus(2) 37 SINPlus(3) 38 SINMinus(3) 50 SINPlus(4) 51 SINMinus(4) 62 SINPlus(5) 63 SINMinus(5) 70 SINPlus(6) 71 SINMinus(6) 80 SINPlus(
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 5.2.2 SpaceWire Input Fail Safe Resistors If a SpaceWire input becomes disconnected then no current flows through the termination resistor. The differential voltage across this resistor is then zero.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 The bias resistor values are determined as follows: 1. Determine the amount of noise protection required. E.g. if the maximum noise voltage expected is less than 10 mV then the bias current required is Ib =10 mV/100 Ω = 0.1 mA. Note: the bias current should be at least an order of magnitude lower than the 3 mA current loop used for normal LVDS operation. 2.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 5.2.3 Operation with 5V Powered LVDS Devices WARNING Since LVDS is based on a current loop it should not matter what the supply voltage is to an LVDS device connected to the SpW-10X router. However, there is a potential problem when connecting to devices with power supplies greater than 3.3 V, which is the supply voltage of the SpW-10X device.
SpW-10X SpaceWire Router User Manual 120 119 118 117 116 115 EXT9_IN_DATA(5) EXT9_IN_DATA(4) EXT9_IN_DATA(3) EXT9_IN_DATA(2) EXT9_IN_DATA(1) EXT9_IN_DATA(0) Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 (8)(7......0) – Bits (0)(dddddddd) - Data byte (1)(XXXXXXX0) - EOP. (1)(XXXXXXX1) - EEP. Bit 7 is the most significant bit of the data byte. Pull-up resistors (e.g. 4k7 Ω) should be connected to these inputs if External FIFO port 9 is not being used.
SpW-10X SpaceWire Router User Manual 146 145 144 143 Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 (0)(dddddddd) - Data byte EXT10_IN_DATA(3) EXT10_IN_DATA(2) EXT10_IN_DATA(1) EXT10_IN_DATA(0) (1)(XXXXXXX0) - EOP. (1)(XXXXXXX1) - EEP. Bit 7 is the most significant bit of the data byte. Pull-up resistors (e.g. 4k7 Ω) should be connected to these inputs if External FIFO port 10 is not being used. 152 EXT10_IN_FULL_N Out FIFO ready signal for external input port one.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 should be pulled down (e.g. 4k7 Ω). 166 165 164 163 162 161 160 159 EXT_TIME_IN(7) EXT_TIME_IN(6) EXT_TIME_IN(5) EXT_TIME_IN(4) EXT_TIME_IN(3) EXT_TIME_IN(2) EXT_TIME_IN(1) EXT_TIME_IN(0) In EXT_TIME_IN(7:0) provides the value of the timecode to be distributed by the router when an external time-code source is selected i.e. when SEL_EXT_TIME is high on the rising edge of EXT_TICK_IN.
SpW-10X SpaceWire Router User Manual 172 171 170 Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 falling edge of EXT_TICK_OUT. The EXT_TIME_OUT(7:0) value is held until the next time-code is output. EXT_TIME_OUT(2) EXT_TIME_OUT(1) EXT_TIME_OUT(0) See section 6.2 for information on the operation of the time-code interface and section 10.4 for timing details. 5.5 STATUS INTERFACE SIGNALS The status interface signals are listed in Table 5-5.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 2 3 4 5 Date: 6 UoD_SpW-10X_ 7 11th July 2008 8 CLK RST STAT_MUX_OUT POR_SIGNALS Inputs STAT_MUX_OUT Outputs Figure 5-2 Configuration interface timing specification The POR configuration signals (POR_SIGNALS) listed in Table 5-6 are loaded into the appropriate internal configuration registers of the router after RST is de-asserted.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 5-6 Reset Configuration Signals Signal Dir Description Signal Type STAT_MUX_OUT(2:0) [maps to -> POR_TX_RATE(2:0)] In Sets the transmitter maximum data rate after reset. The data rate can subsequently be changed during normal operation using port configuration commands. The values are listed below. CMOS3V3 “111” – Full data rate after link start-up. “110” – 1/2 data rate after link start-up.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 up. ‘1’ => Timeout period is ~ 60-80 us. ‘0’ => Timeout period is ~ 1.3 ms. Timeout Period is: ‘1’ => 200x(2^2)x(10 MHz clk period) ‘0’ => 200x(2^16)x(10 MHz clk period) An external pull down resistor (e.g. 4k7 Ω) is recommended on this pin to provide the longer timeout interval.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Note: The recommended method for setting the POR signals is to use external pull up/down resistors (e.g. 4k7 Ω) in which case the timing of the POR signals is not critical. See section 6.3 and 6.4 for further information on the operation of the status/ power on configuration interface and section 10.5 for timing details. 5.7 POWER, GROUND, PLL AND LVDS SIGNALS 5.7.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Figure 5-3 PLL with external components The PLL loop filter component values to be used are R = 10 kΩ C = 120 pF C0 = 3.3 pf. The VCO bias resistor depends on the required VCO frequency range which is determined by the PLL feedback divider (NF in Figure 5-3). The VCO bias resistor values to use are Rvco = 4.7 kΩ for 100-150MHz (FEEDBDIV = 0b000, 0b001, or 0b010), Rvco = 1.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 6. INTERFACE OPERATIONS This section describes the operation of the external FIFO port, time-code interface and status/power on configuration interface. First a note on the terminology used: Signals are given a name (e.g. EXT_IN_FULL) and a logic level (e.g. _N). The term asserted is used when the signal state reflects the signal name e.g. EXT_IN_FULL is asserted when the external input FIFO is full.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 2 3 4 5 6 7 Date: 8 UoD_SpW-10X_ 9 10 11th July 2008 11 12 CLK EXT_OUT_READ_Nx EXT_OUT_DATAx DATA1 DATA2 DATA3 DATA4 EXT_OUT_EMPTY_Nx read read read Figure 6-2 External port read timing specification Reading of the External port is illustrated in Figure 6-2.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 SEL_EXT_TIME signal when EXT_TICK_IN signal has a rising edge. If SEL_EXT_TIME is 1 then the EXT_TIME_IN(7:0) inputs are used to provide the contents of the time-code. If SEL_EXT_TIME is 0 then the internal time-code counter provides the least-significant 6-bits of the time-code and the EXT_TIME_IN(7:6) inputs provide the most-significant 2-bits.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 13 Error Active UoD_SpW-10X_ Date: 11th July 2008 Timeout Selection 3:1 3:1 Enable Disconnect-on-silence 4 4 Enable Start-on-Request 5 5 Enable Self-Addressing 6 6 Configuration Port Error 0 0 SpaceWire Ports 1-5 Error 5 :1 5 :1 External Ports 1,2 Error 10 :9 7 :6 14 Time-code Time-code 7:0 7:0 15 General Purpose Least Significant 8-bits 7:0 7:0 6.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 7. SPACEWIRE ROUTER PACKET TYPES This section describes how the routing control logic interprets packets. 7.1 PACKET ADDRESSES The routing control logic interprets the first byte of each received packet as the packet address. The packet address defines the physical ports through which the routing control logic will use to route the packet towards its destination.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 7.2 PACKET PRIORITY Each packet which is input to the router has an associated priority level, either as a result of the packet address or the internal routing table. Two priority levels HIGH and LOW are supported.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 7.5 DATA PACKETS Packets which have addresses in the range 1 to 255 are routed to the SpaceWire ports and the external ports dependent on the packet address. Data packets have an address header byte a cargo field and an end of packet marker. The normal packet structure is show below. ADDRESS 1-255 CARGO EOP/EEP Figure 7-1 Normal router data packets 7.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 Table 7-5 Read Single Address Characteristics Action Supported/ Not Supported Maximum number of bytes Non-aligned access accepted 8-bit read NS - - 16-bit read NS - - 32-bit read S 4 No 64-bit read NS - - Word or byte address 32-bit aligned Accepted Logical Addresses 0xFE Accepted destination keys 0x20 at power on.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 7-6 Read Single Address Command Packet Fields Field Description Config Port The configuration port address field routes the packet to the configuration Address port of the router. The configuration port address (00h) is always present Bytes 1 when configuring the SpaceWire Router. Destination The destination logical address field is not used in the SpaceWire Router.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 Length one 32 bit register location. Header The header CRC is the eight bit CRC code used to detect errors in the CRC command packet. The CRC code is checked before the command is 1 executed In Figure 7-4 the format of the reply to a read single address command is illustrated.
SpW-10X SpaceWire Router User Manual Protocol Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 The RMAP protocol identifier value 01h. 1 Command Read single address reply command byte. The packet type bits in the 1 Byte command byte indicate this packet is a response packet. Status The command status is returned in this field. The command status can be Identifier 1 command successful or an RMAP error code as defined in section 7.6.6.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 In Figure 7-5 the first byte received by the SpaceWire router configuration logic is the port address followed by the destination logical address. Fields which are depicted in bold text are expected values. Fields which are shaded are optional.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Destination The destination key identifier must match the contents of the destination key Key register, see section 9.5.10. Source The source path address field is used to add source path addresses to the Path head of the reply packet. The expected number of source path addresses is Address specified in the command byte. See section 7.6.9 for source path address 1 0,4,8,12 decoding.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 In Figure 7-6 the format of the reply to a read incrementing address command is illustrated. The first byte sent by the SpaceWire router configuration logic is the port address followed by the destination logical address. Fields which are depicted in bold text are expected values. Fields which are shaded are optional.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Command Read incrementing address reply command byte. The packet type bits in the Byte command byte indicate this packet is a reply packet. Status The command status is returned in this field. The command status can be 1 1 command successful or an RMAP error code as defined in section 7.6.6.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 32-bit read-modify-write S 4 No 64-bit read-modify-write NS - - Word or byte address 32-bit aligned Accepted Logical Addresses 0xFE Accepted destination keys 0x20 at power on Accepted address ranges 0x00 0000 0000 – 0x00 0000 0109 Incrementing address No 11th July 2008 The RMAP read-modify-write command is supported by the SpaceWire router.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 7-12 Read-Modify-Write Command Packet Fields Packet Description Bytes Field Config Port The configuration port address field routes the packet to the configuration Address port of the router. The configuration port address is always present when 1 configuring the SpaceWire Router. Destination The destination logical address is not used in the SpaceWire Router.
SpW-10X SpaceWire Router User Manual Mask Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 4 bytes for the mask to modify a 32-bit register. Length Header The header CRC used to detect errors in the header part of the command CRC packet. Data and The data and mask values to write to the SpaceWire router. The data is Mask written dependent on the mask as shown in Figure 7-8. Data and The data and mask CRC used to detect errors in the data part of the Mask CRC command packet.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 In Figure 7-9 the format of the reply to a Read-Modify-Write command is illustrated. The first byte received by the SpaceWire router configuration logic is the port address followed by the destination logical address. Fields which are depicted in bold text are expected values. Fields which are shaded are optional. Note that the reply is always sent out of the same port as the command was received on.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 logical address SpaceWire router does not have a logical address. Transaction The transaction identifier identifies the command packet and reply packet Identifier with a unique number. The transaction identifier in the reply packet is 2 copied from the command packet and returned in this field, so that the command and the corresponding reply have the same transaction identifier value.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 The RMAP write single address, with data verify and acknowledgement command is supported in the SpaceWire router. The RMAP write command is used to write a 32 bit value into one of the SpaceWire router registers. In Figure 7-10 the first byte received by the SpaceWire router configuration logic is the port address followed by the destination logical address.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Command The command byte indicates a write single address, with verification and Byte acknowledgement packet. The Source path address length fields are set to 1 the number of source path addresses required as defined in section 7.6.9. Destination The destination key identifier must match the contents of the destination key Key register, see section 9.5.10.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 In Figure 7-11 the format of the reply to a write command is illustrated. The first byte sent by the SpaceWire router configuration logic is the port address followed by the destination logical address. Fields which are depicted in bold text are expected values. Fields which are shaded are optional. Note that the reply is always sent out of the same port as the command was received on.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 address Transaction The transaction identifier identifies the command packet and reply packet with a Identifier unique number. The transaction identifier in the reply packet is copied from the 2 command packet and returned in this field, so that the command and the corresponding reply have the same transaction identifier value.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 packet is corrupted Early EOP The command packet was terminated early with an EOP. A reply packet is sent if the early EOP error occurs on the data part of the packet Yes Early EOP 5 Cargo too Large The expected amount of SpaceWire cargo has been received without receiving an EOP marker Yes Cargo too large 6 Early EEP The command packet was terminated early with an EEP.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 incrementing read 4. The data length is not 4 in a verified write command. 5. The data length is not 8 in a read modify write command. Invalid Register Address The address field is addressing an unknown register for a read command or a read only register in a write command.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 7.6.9 Source Path Address Field The RMAP command field “source path address length” indicates the number of source path addresses which are expected in the packet. Up to 12 source path addresses can be accepted by the router configuration port. The source path addresses shall be decoded by the SpaceWire router as follows.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Figure 7-12 and Figure 7-13 illustrate how source path addresses are returned in relation to the RMAP packet description.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8. CONTROL LOGIC AND OPERATIONAL MODES In this section the SpaceWire router control logic and operational modes are defined. The router control logic determines how the SpaceWire link ports operate, how received packets are routed to their destination and how the timeout mechanism detects packet blockages in the router. 8.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8.1.4 Link-Disable The SpaceWire port can be disabled therefore rendering the link unusable. When a SpaceWire link which is running is disabled it will disconnect from the far end and refuse connection attempts by the far end of the link. Caution should be used when using this command for a stand alone router as disabling all the links will leave the router unusable, except through a reset operation.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 3.3 V Vdd 2850 Ω 91 µA 2850 Ω 87 µA 10 mV 20 kΩ 12 µA 3.05 V + RT =100 Ω 99 µA 3.04 V ‐ 16 kΩ 190 µA Figure 8-3 Deactivated LDVS driver output connected to external bias network on LVDS input Current can now flow from the 3.3 volt supply to ground.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 ⎛ ⎛ (100MHz + (20MHz * FEEDBDIV )) ⎞ ⎞ ⎜⎜ ⎟⎟ 2TXDIV +1 ⎝ ⎠ ⎟*2 ⎜ 10 MbitRate = ⎟ ⎜ TX 10MbitDIV + 1 ⎟ ⎜ ⎠ ⎝ To provide a SpaceWire signal with a nominal 50/50 duty cycle, TXRATE and TX10MbitDIV should be even integers. Not all values of FEEDBDIV, TXDIV and TXRATE give valid clock signals. Table 8-1shows the recommended values to use to achieve a range of SpaceWire transmit data rates.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 The columns header TXRATE give the SpaceWire transmit data rate obtained for various settings of the TXRATE field in a SpaceWire port control register. The duty cycle of the SpaceWire data rate clock is given in the row immediately underneath the TXRATE values. If the duty cycle is not 1:1 then one bit period will be shorter than the next, as for the 10 Mbits/s data rate.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8.2.1 Start on request mode The Start on Request mode is enabled by setting the CFG_START_ON_REQ bit in the router control register. The input signal POR_START_ON_REQ_N determines the power on or reset state of the CFG_START_ON_REQ bit. When a SpaceWire packet is received which is to be routed out of a SpaceWire port that is not running it would normally be discarded.
Ref.: SpW-10X SpaceWire Router User Manual 1 1 R1 2 1 R1 2 1 R1 2 Auto-Start default mode and Start on Request enabled and Disable on Silence enable in both routers UserManual Issue: 3.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 dependent on the previous input port which had access to that output port. The next input port to transfer data to an output port is the next highest port number (modulo number of ports) that has data to send. Thus the input port which previously had access to the output port will be selected last by the router control logic.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 8.3.2.2 Arbitration of packets with matching priority (2) In the Figure 8-7 another example of arbitrating between packets with the same priority is illustrated. Again only router ports 1-5 are shown for clarity. At stage one input ports 1 and 3 have packets to be routed to output port 5.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual 11th July 2008 Date: 8.3.2.3 Arbitration of packets with different priority (1) In the Figure 8-8 arbitration of packets with different priority is illustrated. Only router ports 1-5 are shown for clarity. At stage one input ports 1 and 3 have packets with logical addresses 80 and 52 respectively, which are both to be routed to output port 5. Logical address 80 is high priority and 52 low priority.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8.3.2.4 Arbitration of packets with different priority (2) In Figure 8-8 another example of arbitration of packets with different priority is illustrated. Only router ports 1-5 are shown for clarity. At stage one input ports 1 and 3 have packets with logical addresses 80 and 52 respectively, which are both to be routed to output port 5. Logical address 80 is high priority and 52 low priority.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 8.3.3 Group Adaptive Routing The SpaceWire router routing table can be set up to support group adaptive routing of packets. Setting the routing table contents is described in section 9.3. In group adaptive routing a set of output ports can be assigned to a logical address. When a packet arrives with the logical address the routing table is checked for the set of output ports which the packet can use.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 Address 76 – Routing table entry Header Deletion disabled Port 4 Port 5 Port 6 1 2 76 1 2 R1 3 4 1 5 2 6 3 Group adaptive routing packet with address 76 arrives at port 1 Ports 4 and 5 are busy routing packet data from ports 2 and 3 4 R1 5 6 76 Routing logic assigns ports 6 to packet at port 1 Figure 8-11 Group adaptive routing when other ports busy 8.3.3.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual 11th July 2008 Date: then a packet that that is addressed to go out of the same port that it arrived on will be discarded and a packet address error recorded. Command reply packets which are returned through the same port they arrived on are not affected by the value of the Enable Self-Addressing bit. Figure 8-13 shows the Enable Self-Addressing mode when enabled and when disabled.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8.3.5 Packet Blocking The Time-Out Enable bit (bit 0) of the router control register enables the watchdog timers on the ports. When this bit is set and the watchdog timers are enabled the router is in “Watchdog Timer” mode. When it is clear and the watchdog timers are disable then the router is in the “Blocking Allowed”mode. In Blocking Allowed mode packets wait indefinitely on other packets to complete.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 In blocking allowed mode the network path is blocked until the destination node starts to accept data again. Packets waiting to use the network path will wait indefinitely. In watchdog timer mode the router will timeout and the network path will be cleared so other packets can use the path.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 4 2 4 R1 3 Date: 4 1 5 2 6 3 UoD_SpW-10X_ 11th July 2008 4 R2 5 6 (c) Figure 8-16 Destination Node Blocked (c) Watchdog timer mode What happens when the routers are in Watchdog Timer mode and a destination becomes blocked is illustrated in Figure 8-17to Figure 8-20. Only SpaceWire ports 1 to 6 are shown for clarity.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 4 4 2 R1 3 Date: 4 1 5 2 6 3 EEP R2 UoD_SpW-10X_ 11th July 2008 4 5 6 (c) Figure 8-19 Destination Node Blocked: Watchdog Mode (c) d) The packet waiting at routing switch R1 port 2 is routed and the network blockage is cleared.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 4 4 2 5 4 3 R1 Date: 4 1 5 2 6 3 UoD_SpW-10X_ 11th July 2008 4 R2 5 6 (a) Figure 8-21 Source Node Stalled (a) b) The packet from routing switch R1 port 3 is routed towards its destination but during packet transfer the source node stalls and does not supply any further data or the end of packet.
Ref.: SpW-10X UserManual SpaceWire Router Issue: 3.4 User Manual 1 4 4 2 5 4 3 R1 4 1 5 2 6 3 UoD_SpW-10X_ Date: 11th July 2008 4 R2 5 6 (a) Figure 8-25 Source Node Stalled: Watchdog Mode (a) b) The packet from routing switch R1 port 3 is routed towards its destination but during packet transfer the source node stalls and does not supply any more data or the end of packet.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 8.3.5.3 Waiting for an output port When a packet arrives at an input port of the SpW-10X router is has to wait to be forwarded to an output port. How long the packet waits will depend on whether the router is in Blocking Allowed or Watchdog Timer mode and on what the output ports are doing.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 WARNING Packets can timeout and be spilled in a SpaceWire network without the destination receiving any notification of this. Packets with errors (e.g. parity error) can arrive at a destination terminated by an EEP. In a very special case it is also possible to receive an error free packet terminated by an EEP. It is important that the destination node is able to handle these cases.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 9. REGISTER DEFINITIONS This section describes the internal configuration registers of the SpW-10X Router.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 registers allow the router management control and status information to be accessed by a network manager using configuration commands. Table 9-1 provides an overview of each of the different types of register within the configuration port. Each register type is then described in detail in the following subsections.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 configuration memory address range of the GAR table is 32-255 (0x0000 0020 – 0x0000 00FF). The configuration memory address corresponds to the logical address; hence the GAR table entry at address 39 corresponds to logical address 39. The logical address to port mapping is held in the REQUEST field.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-3 GAR Table Register Description Address Range: 32-255 (0x0000 0020 – 0x0000 00FF) Bits Name Reset Value Description Read/Write 0 RESERVED ‘0’ Reserved bit – always set to zero. R 10:1 REQUEST Undefined after power on. The request bits determine which output ports the logical address will arbitrate for. When bit 1 is set then SpaceWire port 1 will be requested.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 WARNING Care must be taken when setting a the routing tables to avoid a possible infinite loop. For example if there is a SpaceWire link made between two ports of a single router and a logical address routes a packet out of one of these ports then that packet will arrive back at the router, and be routed back out of the port again.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Bits Name Reset Value Description Read/Write 28:24 Current port connection All bits set to one. The current port connection bits indicate the input port which this output port is currently connected to. R Port number 31 (bits 28:24 set to 11111) means that there is no port currently connected to the input port. This is the reset condition. 31:29 Port Type All bits set to zero.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-5 Configuration Port Control/Status Register Fields Bits Name Reset Value Description Read/Write 0 Error active ‘0’ The error active bit is set when one of the error bits is active R 1 Port timeout error ‘0’ The port timeout error bit is set when a timeout event is detected by the configuration port routing logic.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 14 Invalid Register Address ‘0’ The invalid register address bit is set when an unknown register address is given in the command packet or a write is attempted to a read only register R 15 Unsupported protocol error ‘0’ The unsupported protocol error bit is set when a command packet is received with a protocol identifier which is not the RMAP protocol identifier of 01h.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 9.4.3 SpaceWire port control/status register bits. The port control/status fields specific to SpaceWire ports are shown in Figure 9-3 and Table 9-6.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-6 SpaceWire Port Control/Status Register Fields. Bits Name Reset Value Description Read/Write 0 Error active ‘0’ The error active bit is set when one of the error bits are set. R 1 Packet address error ‘0’ The packet address error bit is set when a packet is received with an incorrect address.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 SpaceWire port will wait until the other end of the link tries to make a connection and will then automatically start. 13 Start ‘0’ When set then the SpaceWire link will initiate start-up as defined in the SpaceWire standard [AD1]: the SpaceWire port will try to make a connection with the other end of the link.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 9.4.4 External port control/status register bits. The port control/status fields specific to the External port are described in Table 9-7. Table 9-7 External Port Control/Status Fields Bits Name Reset Value Description Read/Write 0 Error Active ‘0’ This bit is set to one when any of the error bits are set.
Ref.: SpW-10X SpaceWire Router User Manual 31 UoD_SpW-10X_ UserManual Issue: 3.4 Date: 8 7 11th July 2008 4 3 0 Device Type Return Port Ports in run state Figure 9-4 Network Discovery Register Fields Table 9-8 Network Discovery Register Fields Bits Description Reset Value Usage Read/Write 3:0 Device Type “0001” The device type field indicates the type of device which is associated with this network discovery register.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 Table 9-9 Router Identity Register Field Bits Description Reset Value Usage Read/Write 31:0 Router Identity All bits set to zero A 32-bit read/write register which may be used to hold a unique router identity code for each router in a network. R/W 9.5.3 Router Control Register The router control register address is 258 (0x0000 0102).
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-10 Router Control Register Fields Bits Name Reset Value Description Read/ Write 0 Watchdog Timer Mode / Blocking Allowed Mode Set by the input signal POR_TIMEOUT_EN_N. When ‘0’ – Watchdog Timer Mode When ‘1’ – Blocking Allowed Mode When set to ‘1’ then the watchdog timer mode is enabled. R/W When set to ‘0’ then the blocking allowed mode is enabled. See section 8.3.5.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 the link using autostart or the link is started by configuration command then the port will not be disconnected on silence. Events which cause the disconnect on silence timeout to be reset are 5 Enable start on request Set by the input signal POR_START_ON_REQ_N. • Input port data read. • Output port data write.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 WARNING The default timeout intervals of 60-80 µs or 1.3 ms are short. It may be necessary to increase the timeout interval by a configuration command writing to the router control register. When initially prototyping a SpaceWire system it is advisable to set the timeout interval to 1.3 s and then decrease it to an appropriate value once basic system operation has been established. 9.5.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-11 Error Active Register Fields Bits Name Reset Value Description Read/Write 0 Configuration Port Error Active ‘0’ Indicates that the Error Active bit in the configuration port is asserted. R/W A write to this register with bit 0 set will clear all the error flags in the configuration port control/status register.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 11th July 2008 Date: Table 9-12 Time-Code Register Fields Bits Name Reset Value Description Read/Write 5:0 Time Value All bits set to zero 6-bit time-code value R 7:6 Time-Code Flags “00” Two time-code flags R 31:8 Not used All bits set to zero R 9.5.6 Device Manufacturer and Chip ID Register The device manufacturer and chip ID register address is 261 (0x0000 0105).
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 9.5.7 General Purpose Register The general purpose register address is 262 (0x0000 0106). The general purpose register contains 32-bits and may be set by a configuration write command to a user defined value as required. It may also be read with a configuration read command. The general purpose register has no effect on the operation of the router.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-14 Time-Code Enable Register Fields Bits Name Reset Value Description Read/Write 0 Reserved 0 Reserved bit R 8:1 SpaceWire Time-Code Enable 0 Time-code distribution enable bits for SpaceWire ports 8 to 1 respectively. The appropriate bit should be set to 1 to enable time-code distribution through the corresponding port.
Ref.: SpW-10X UoD_SpW-10X_ UserManual SpaceWire Router Issue: 3.4 User Manual Date: 11th July 2008 WARNING If a SpaceWire port that is being used to configure a router has its transmit clock turned off then it will not be possible to configure the router using that port. Unless there is another connection with an active clock and which is not disabled that can be used to perform configuration the router will have to be reset before it can be configured again.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 9-15 Transmit Clock Control Register Bits Bits Name Reset Value Description Read/Write 1:0 TXDIV “01” Transmit clock internal PLL output divider. Selects the divided output from the transmit clock as follows R/W “00” Æ divide by 2 “01” Æ divide by 4 “10” Æ divide by 8 “11” Æ divide by 8 Example: If the PLL output frequency is 200MHz (set by FEEDBDIV, see section 5.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 9.5.10 Destination Key Register The Destination Key register address is 265 (0x0000 0109). The destination key register fields are listed in the table below. Table 9-16 Destination Key Register Bits Name Reset Value Description Read/Write 7:0 DESTKEY 20h The destination key is checked when a security key is required for RMAP configuration packets to access the router registers.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 10. SWITCHING CHARACTERISTICS 10.1 CLOCK AND RESET TIMING PARAMETERS The global clock and asynchronous reset timing parameters are listed below. Table 10-1 Clock and reset timing parameters Description Symbol Value Units Clock period minimum value TCL 31.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Table 10-2 Serial signal timing parameters Description Symbol DS maximum input bit rate TDS DS minimum consecutive edge separation TDSINS Minimum edge separation between 2 consecutive edges Data Strobe output skew & jitter (incl. LVDS driver) Value Units 200+2% Mbits/s, max 3 ns, min TDSINS2 7.5 ns, min TDSOSKEWJIT 1.2 ns, max 10.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual TTCLKOL UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 TTCLKOH EXT_TICK_OUT TTCLKOE TTCLKOE EXT_TIME_OUT Figure 10-5 Time-Code Output Interface TTCKIL TTCLKIH TIME_CTR_RST Figure 10-6 Time-code TIME_CTR_RST interface The Time-code timing parameters are shown below.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 10.6 LATENCY AND JITTER The timing parameters for the data and time-code latency and the time-code jitter are derived from the receive clock, transmit clock and system clock period. The worst case number of clock cycles required is used in each equation. In the SpaceWire router the system clock is a known frequency and the transmitter and receiver frequency are derived from the input and output bit rates.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.
Ref.: SpW-10X SpaceWire Router User Manual UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 10.6.5 Time-code Jitter The variation in time to propagate a time-code through a routing switch. Time-code jitter occurs in the synchronisation handshaking circuits and the transmitter where the maximum delay time the time-code has to wait to be transmitted is one data character. The jitter is measured as TTCJIT = (2 × TSYSPERIOD) + (5 × TTXPERIOD) 10.6.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 11. ELECTRICAL CHARACTERISTICS The electrical characteristics for the SpaceWire router are defined in this section 11.1 DC CHARACTERISTICS The operating conditions are listed in Table 11-1. For a detailed list of the operating conditions see [AD3]. Table 11-1 Operating Conditions Symbol Description VDD Supply voltage TA Ambient temperature Value Units 3.0 to 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 11.2 ABSOLUTE MAXIMUM RATINGS The absolute maximum ratings are listed in Table 11-2. For a detailed list of the maximum conditions see [AD3]. Table 11-2 Absolute Maximum Ratings Symbol VDD Description Supply voltage range VIN Input voltage range IIN Input pin current Value Units -0.5 to +4.0 V -0.5 to VDD+0.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 12. APPLICATION GUIDELINES In this section an example circuit diagram is provided and PCB and design guidelines presented.; 12.1 EXAMPLE CIRCUIT DIAGRAM A schematic showing how the SpW-10X device should be connected is provided on the following page. This is a complete schematic for a stand-alone router except for the 3.3V power supply and reset signal.
SpW-10X SpaceWire Router User Manual Preliminary Ref.: UoD_SpW-10X_ UserManual Issue: 3.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 12.2 PCB DESIGN AND LAYOUT GUIDELINES PCB design and layout guide lines are provided in this section. 12.2.1 CLK 1. Series termination should be used on the CLK signal. 2. Stubs on the CLK signal shall not be used. 3. Guard tracks shall be provided around the CLK signal trace connected to the ground plane approximately every 1 cm. 12.2.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 2. LVDS fail safe resistors need not be adjacent to the termination resistor. Their location is not critical but the stub lengths to the termination resistors should be less than 20 mm. 3. LVDS tracks shall be 100 ohm differential impedance. 4. Skew between the plus and minus sides of the LVDS differential pair shall be avoided and shall be less than +/- 1 mm. 5.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 12.2.10 PLL See Figure 12-1 the internal wiring of PLL block to better understand the external board recommended layout. The Voltage drop between PLL loop filter (LF) and the PVCOBIAS pads will be converted into a current (Ivco) which will determine the VCO frequency. It is critical to avoid any disturbance of that voltage drop at this will translate directly to jitter in the VCO frequency.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 13. ANOMALIES AND WARNINGS In this section a list of anomalies and warnings is provided: 13.1 ANOMALIES The following anomalies are present in the prototype SpW-10X router device: 1. Simultaneous transitions on data and strobe can occur during reset and power up. This may be a problem when operating with legacy IEEE-1355 devices but is not a problem when operating with SpaceWire compliant devices.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 WARNING The deactivate mode (see also section 9.4.3) does not tri-state the LVDS outputs. The LVDS outputs are cold-sparing and when disabled both outputs in an LVDS differential pair are pulled up to 3.3V and have an impedance of the order of 1 kohm. Since they are differential outputs and are both are at the same voltage no current will flow.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 WARNING Packets can timeout and be spilled in a SpaceWire network without the destination receiving any notification of this. Packets with errors (e.g. parity error) can arrive at a destination terminated by an EEP. In a very special case it is also possible to receive an error free packet terminated by an EEP. It is important that the destination node is able to handle these cases.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 set a glitch may occur on data and strobe, see Figure 13-3. A simultaneous transition or glitch on data and strobe may occur when reset is released, Figure 13-4.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 13.3.2 Data Strobe Disable Waveform If a SpaceWire link is disabled, either by configuration command or a disconnect, parity, escape or credit error, the final bit of strobe will be extended to a 100 ns period pulse. No simultaneous transitions or glitches can occur during a disable operation. This operation is as expected. The reset anomaly has no effect on link disconnect operation.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 13.4 PARITY ERROR ANOMALY 13.4.1 Parity Error Action A parity error on the SpaceWire link causes the link to be disconnected by the SpaceWire router. If a packet is being received the packet is discarded and an error end of packet (EEP) is appended to the end of the packet. 13.4.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 Figure 13-7 No error end of packet inserted after parity error 13.4.3 Parity Error Workaround There is no specific workaround for this anomaly as a similar situation can occur in any case when an error on a link does not cause an immediate parity error but one is produced in a subsequence character.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 14. TECHNICAL SUPPORT Technical support for the SpW-10X Router is provided by STAR-Dundee Ltd. A range of SpW-10X evaluation boards is available along with other test equipment, cables etc. See www.star-dundee.com for details. Technical support is provided by STAR-Dundee. All requests for support should be submitted to the Atmel support hotline: Email: assp-applab.hotline@nto.atmel.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 15. DOCUMENT CHANGES 15.1 ISSUE 3.3 TO ISSUE 3.4 Section Ref Change 13.1 13.4 Parity error anomaly added to the list of anomalies. Details of parity error anomaly added. 6.4 10.1 10.2 10.3 10.4 10.5 11.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 5.7.4 VCO bias resistor value corrected (Section 5.7.4). 8.1.5 Tri-state mode changed to deactivate mode. Calculation of deactivated power consumption added. 9.4.3 Table 9-6 9.5.8 11.1 Tri-state mode changed to deactivated mode. Description for ‘time-code flag mode bit’ added. Table 11-1 Power information updated. 11.3 Section added on reliability information 13.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 details throughout document. Section added on Application Guidelines giving example circuit diagram and PCB layout guidelines. Section added on anomalies and warnings. Section added on Technical Support. 15.6 ISSUE 2.4 TO ISSUE 2.5 Section Ref Change Update document revision and redistribute 11.1 Change VCC to VDD. 11.2 Remove VCC 15.7 ISSUE 2.3 TO ISSUE 2.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 15.9 ISSUE 2.1 TO ISSUE 2.2 Section Ref 4 Change ASIC pin locations 15.10 ISSUE 2.0 TO ISSUE 2.1 Section Ref Change 15.11 ISSUE 1.7 TO ISSUE 2.0 Section Ref All Change Final updates and editorial corrections before release 15.12 ISSUE 1.6 TO ISSUE 1.7 Section Ref All Change Corrections added following validation 15.13 ISSUE 1.5 TO ISSUE 1.6 Section Ref 8 Change RMAP section added 15.
SpW-10X SpaceWire Router User Manual Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 Date: 11th July 2008 15.17 ISSUE 1.1 TO ISSUE 1.2 Section Ref Change 6.3, 6.4, 6.5 Table 6-3, Table 6-4, Table 6-5 FPGA timing data added 15.18 ISSUE 1.0 TO ISSUE 1.1 Section Ref Change 5.1 Table 5-1 FEEDBDIV PLL clock settings section added 5.5 Table 5-5 STAT_MUX_OUT changed to multi function pin 5.6 Table 5-6 Power on reset signals mapped to STAT_MUX_OUT pins 8.1.