Atmel SpW-10X manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Atmel SpW-10X, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Atmel SpW-10X one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Atmel SpW-10X. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Atmel SpW-10X should contain:
- informations concerning technical data of Atmel SpW-10X
- name of the manufacturer and a year of construction of the Atmel SpW-10X item
- rules of operation, control and maintenance of the Atmel SpW-10X item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Atmel SpW-10X alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Atmel SpW-10X, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Atmel service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Atmel SpW-10X.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Atmel SpW-10X item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 1 SpW-10X SpaceWire Router User Manual Ref: UoD_SpW-10X_UserManual Atmel Part No.: AT7910E Document Revision: Issue 3.4 Date: 11 th July 2008 Prepared by - Chris McClements, University of Dund ee Steve Parkes, University of Dundee Gerald [...]

  • Page 2

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 2 Document Change log Date Issue Comments Author 19 th -March-2004 Issue 1.0 Initial draft version Chris McClem ents 26 th -August-2004 Issue 1.2 Timing for FPGA model added Chris McCle ments 16 November 2004 Issue 1.3 Register Definition[...]

  • Page 3

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 3 guidelines. Section added on anomali es and warnings. Section added on Technical Support. 20 th January 2008 Issue 3.1 Corrections and example schematic improved. Steve Parkes 18 th April 2008 Issue 3.2 Explanation of non-blocking cross[...]

  • Page 4

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 4 CONTENTS CONTENTS ....................................................................................................................... .......................4 I LIST OF FIGURES .......................................................[...]

  • Page 5

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 5 5.3 EXTERNAL PORT DA TA SIGNALS ............................................................................................ 37 5.4 TIME-CODE SIGNALS ......................................................................................[...]

  • Page 6

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 6 8.1.2 Auto-S tart ..................................................................................................................... ............. 79 8.1.3 Link-S tart .................................................................[...]

  • Page 7

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 7 9.5.5 Time-Code Register ............................................................................................................. ... 121 9.5.6 Device Manufacturer and Chip ID Re gister .............................................[...]

  • Page 8

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 8 12.2.7 External Ports ................................................................................................................. ....... 141 12.2.8 Time-code In terface ............................................................[...]

  • Page 9

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 9 15.16 ISSUE 1.2 TO ISSUE 1.3....................................................................................................... 15 4 15.17 ISSUE 1.1 TO ISSUE 1.2.......................................................................[...]

  • Page 10

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 10 I LIST OF FIGURES F IGURE 2-1 S TAND -A LONE R OUTER ...................................................................................................................... 16 F IGURE 2-2 N ODE I NTERFACE ...............................[...]

  • Page 11

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 11 F IGURE 8-8 A RBITRATION OF TWO PACKETS WITH DIFF EREN T PRIORIT Y (1) .......................................................... 89 F IGURE 8-9 A RBITRATION OF TWO PACKETS WITH DIFF EREN T PRIORIT Y (2) ...............................[...]

  • Page 12

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 12 F IGURE 13-5 L INK D ISCONNECT W AVEFORMS .................................................................................................... 147 F IGURE 13-6 D ATA AFTER PARITY ERROR ANOMALY ..........................................[...]

  • Page 13

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 13 T ABLE 9-6 S PACE W IRE P ORT C ONTROL /S TATUS R EGISTER F IELDS . ................................................................... 113 T ABLE 9-7 E XTERNAL P ORT C ONTROL /S TATUS F IE LDS .........................................[...]

  • Page 14

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 14 1. INTRODUCTION This document is a tech nical reference for the i mplementation and operation of the SpW-10X SpaceWire Router device (Atmel part number AT7910E). Note: Detailed timing information for the ASIC implementation will be ava[...]

  • Page 15

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 15 VCO Voltage Controlled Oscillator VDD Drain Voltage (power pin of SpW-10X de vice) VSS Source Voltage (ground pin of SpW-10X device) WR Write 1.2 DOCUMENTS In this section the documents refere nced in this document are listed. Table 1-[...]

  • Page 16

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 16 2. USER APPLICATIONS The SpW-10X SpaceWire router device may be used in several different ways as described in the following sub-se ctions. Note: SpW-10X is pronou nced “ SpaceW ire Ten X ”. This name derives from the abbreviation [...]

  • Page 17

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 17 2.2 NODE INTERFACE The SpaceWire Router has two external ports which enable the device to b e used as a node interface. The equipment to be co nnected to the SpaceWi re network is attached to one or both external ports. One or more Spa[...]

  • Page 18

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 18 Instrumen t 1 Instrumen t 2 Instrumen t 3 Instrumen t 4 Memory Unit Processor SpW ‐ 10X Ro u t e r Instrumen t 5 Instrumen t 6 Spac eWire  Node  with  Embedded  Ro u t e r SpaceWir e  Links Figure 2-3 Embedded Router I[...]

  • Page 19

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 19 SpW ‐ 10X Ro u t e r SpW ‐ 10X Ro u t e r Spac eWire Por t s Figure 2-4 Expanding the number of SpaceWire Ports (1) Figure 2-4 shows a pair of SpW-10X routers connected together usin g the external FIFO po rts to provide a 16 port [...]

  • Page 20

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 20 Figure 2-5 Expanding the number of SpaceWire Ports (2) Figure 2-5 shows two SpW-10X rout er devices interconnected u sing two of the SpaceWire port s on each router. This leaves twelve SpaceWire port s for connection to other SpaceWi r[...]

  • Page 21

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 21 3. FUNCTIONAL OVERVIEW A SpaceWire routing switch comprises a number of SpaceWire ports and a ro uting matrix. The routing matrix enables packets arriving at one S paceWire port to be tra nsferred to and sent out of another port on the[...]

  • Page 22

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 22 Ex t e r n a l P or t O u tp u t FI FO Inp ut F I F O Cr o s s b ar Sw i t ch Co n tr o l Lo gi c Ro u t in g Ta b le Ti m e -C od e In t erf ac e Con f ig u r a t io n Po rt S t a t us /E r ror Re g i s ter s Sp aceWi re Po r t 1 Sp a[...]

  • Page 23

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 23 written to or read from synchrono us ly with the 30MHz system clock. An eight-bit data inte rface and an extra control bit for end of packet m arkers are provided by each e xternal port FIFO. Packets received by the external port are r[...]

  • Page 24

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 24 The crossbar switch connects an input port to an out put port allowing data to flow f rom the input port to the output port. Severa l input ports may be co nnected simultaneou sly to several output port s all passing da ta. Two or more[...]

  • Page 25

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 25 4. PIN LOCATIONS The SpaceWire router packag e is a 196 pin MQFPF package. Type definition: - 3V3..................... ............3 .3 Volt power - GND...................... ..........Ground - PIC................................ CMOS [...]

  • Page 26

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 26 18 DINMinus(1) PFILVDSZPB SpW port 1 input data - 19 SINPlus(1) PFILVDSZP SpW port 1 input strobe + 20 SINMinus(1) PFILVDSZPB SpW port 1 input strobe - 21 SOUTMinus(1) PFOLVDS33ZPB SpW port 1 output strobe - 22 SOUTPlus(1) PFOLVDS33ZP [...]

  • Page 27

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 27 58 VSSB GND Ground 59 VDDB 3V3 Power 60 DINPlus(5) PFILVDSZP SpW port 5 input data + 61 DINMinus(5) PFILVDSZPB SpW port 5 input data - 62 SINPlus(5) PFILVDSZP SpW port 5 input strobe + 63 SINMinus(5) PFILVDSZPB SpW port 5 input strobe [...]

  • Page 28

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 28 98 VSSB GND Ground 99 VDDB 3V3 Power 100 EXTOUTDATA9(0) PO44F External FIFO port 9 output data 101 EXTOUTDATA9(1) PO44F External FIFO port 9 output data 102 EXTOUTDATA9(2) PO44F External FIFO port 9 output data 103 EXTOUTDATA9(3) PO44F[...]

  • Page 29

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 29 138 EXTOUTDATA10(8) PO44F External FIFO port 10 output data 139 EXTOUTEMPTYN10 PO44F External FIFO port 10 output empty 140 VSSA6 GND Ground 141 VDDA6 3V3 Power 142 EXTOUTREADN10 PIC External FIFO port 10 output read 143 EXTINDATA10(0)[...]

  • Page 30

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 30 178 EXTTIMEOUT(6) PO44F Time-code output 179 EXTTIMEOUT(7) PO44F Time-code output 180 STATMUXADDR(0) PIC Status output multiplexer address 181 STATMUXADDR(1) PIC Status output multiplexer address 182 STATMUXADDR(2) PIC Status output mu[...]

  • Page 31

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 31 5. DEVICE INTERFACE The device pins used by each interface are described in thi s section. There is a table for each type of interface listing the signals in that interf ace. These tables have the f ollowing fields:  Pin No: The dev[...]

  • Page 32

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 32 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 Asynchronou s system res et (active low). CMOS3V3 4 TestI[...]

  • Page 33

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 33 Table 5-2 Data and Strobe SpaceWire Signals PinNo Signal Dir Description Ty pe 24 23 DOUTPlus(1) DOUTMinus(1) Out Differential output pair, data part of Data-Strobe SpaceWire port 1. LVDS+ (P Side) LVDS - (N Side) 34 33 DOUTPlus(2) DOU[...]

  • Page 34

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 34 17 18 DINPlus(1) DINMinus(1) In Differential input pair, data part of Data-Strobe SpaceWire port 1. LVDS+ (P Side) LVDS - (N Side) 25 26 DINPlus(2) DINMinus(2) In Differential input pair, data part of Data-Strobe SpaceWire port 2. LVDS[...]

  • Page 35

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 35 5.2.2 SpaceWire Input Fail Safe Resistors If a SpaceWire input be comes disconnected then no current flows through t he termination resistor. The differential voltage across this re sistor is t hen zero. A small noise current, induced [...]

  • Page 36

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 36 The bias resistor values ar e determined as follows: 1. Determine the amount of noise p rotection required. E.g. if the maximum noise voltage expected is less than 10 mV then the bias current re quired is I b =10 mV/100 Ω = 0.1 mA. No[...]

  • Page 37

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 37 5.2.3 Operation with 5V Powered LVDS Devices WARNING Since LVDS is based on a current loop it should not matter what the sup ply voltage is to an LVDS device connected to the SpW-10X rout er. However, there is a potential proble m when[...]

  • Page 38

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 38 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) (8)(7......0) – Bits (0)(dddddddd) - Data byte (1)(XXXXXXX0) - EOP. (1)(XXXXXXX1) - EEP. Bit 7 is the most signif[...]

  • Page 39

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 39 146 145 144 143 EXT10_IN_DATA(3) EXT10_IN_DATA(2) EXT10_IN_DATA(1) EXT10_IN_DATA(0) (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 Ω [...]

  • Page 40

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 40 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 th[...]

  • Page 41

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 41 172 171 170 EXT_TIME_OUT(2) EXT_TIME_OUT(1) EXT_TIME_OUT(0) falling edge of EXT_TICK_OUT . The EXT_TIME_OUT(7:0) value is held until the next time-code is output. See section 6.2 for information on the operation of the time-code interf[...]

  • Page 42

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 42 CLK RST STAT _MUX _OUT POR_SIGNALS 12 3456 78 STAT_MUX_OUT Inputs Outp uts Figure 5-2 Configuration in terface timing specifica tion The POR configuration signal s (POR_SIGNALS) list ed in Table 5-6 are loaded into the appropri ate int[...]

  • Page 43

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 43 Table 5-6 Reset Configuration Signal s Signal Dir Description Signal Typ e 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 subseque ntly be changed during nor[...]

  • Page 44

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 44 up. ‘1’ => Timeout period is ~ 60-80 u s. ‘0’ => Timeout period is ~ 1. 3 ms. Timeout Period is: ‘1’ => 200x(2^2)x(10 M Hz clk period) ‘0’ => 200x(2^16)x(10 MHz cl k period) An external pull down resistor (e[...]

  • Page 45

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 45 Note: The recommended method for setting the POR signals i s to use external pull up/down resistors (e.g. 4k7 Ω ) in which case the timing of the POR signals is not criti cal. See section 6.3 and 6.4 for fu rther information on th e o[...]

  • Page 46

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 46 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 dep ends on the required VC O freque ncy range which is determined by the PLL feedbac[...]

  • Page 47

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 47 6. INTERFACE OPERATIONS This section describes the operati on of the external FIFO po rt, time-code interface and sta tus/power on configuration interface. First a note on the terminology used: Signals are giv en a name (e.g. EXT_IN_FU[...]

  • Page 48

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 48 CLK 123456789 1 0 1 1 1 2 EXT_OUT_READ_Nx EXT_OUT_DATAx EXT_OUT_EMPTY_Nx DATA1 D ATA2 DATA4 DATA3 read read read Figure 6-2 External port read timing specification Reading of the External port is illustrated in Figure 6-2. When data i [...]

  • Page 49

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 49 SEL_EXT_TIME signal when EXT_TI CK_IN signal has a rising edge. If SEL_EXT_TIME is 1 then the EXT_TIME_IN(7:0) inputs are used to provide t he contents of the time-code. If SEL_EXT_TIME is 0 then the internal time-code counte r provide[...]

  • Page 50

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 50 Table 6-1 Multiplexed Status Pins Bit Assignment Mux Address Status Register Stat us Signal Status Register Bits Status Output Bits 0 Configuratio n Port Packet return address erro r Output port timeout error Checksum error Packet too [...]

  • Page 51

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 51 Timeout Selection Enable Disconnect-on -silence Enable Start-on-Request Enable Self-Addressing 3:1 4 5 6 3:1 4 5 6 13 Error Active Configuration Port Error SpaceWire Ports 1-5 Error External Ports 1,2 Error 0 5 :1 10 :9 0 5 :1 7 :6 14 [...]

  • Page 52

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 52 7. SPACEWIRE ROUTER PACKET TYPES This section describes ho w the routin g control logic interprets packets. 7.1 PACKET ADDRESSES The routing control logi c interprets the first byte of e ach received packet a s the packet address. The [...]

  • Page 53

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 53 7.2 PACKET PRIORITY Each packet which is inpu t to the router has an asso ciated prio rity level, either as a result of the packet address or the internal routing table. Two priority levels HIGH an d LOW are supported. The table below [...]

  • Page 54

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 54 Table 7-3 Packet Header Deletion Ma pping Packet Address Header Deletion Physical Port type 0 Enabled Configuration port 1 Enabled SpaceWire link port 1 2 Enabled SpaceWire link port 2 3 Enabled SpaceWire link port 3 4 Enabled SpaceWir[...]

  • Page 55

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 55 7.5 DATA PACKETS Packets which have addresses in the range 1 to 255 are routed to the SpaceWire po rts and the external ports dependent on the pack et address. Dat a packets have an address hea der byte a cargo field and an end of pack[...]

  • Page 56

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 56 Table 7-4 Supported RMAP Command Codes RMAP Command Code Description Supported in SpaceWire Router “0000” Not used - “0001” Not used - “0010” Read single addres s Yes “0011” Read incrementing addres s Yes “0100” Not[...]

  • Page 57

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 57 Table 7-5 Read Single Address Chara cteristics 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 a[...]

  • Page 58

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 58 Table 7-6 Read Single Address Command Packet Fields Field Description Bytes Config Port Address The configuration port address field rout es the packet to the configuration port of the router. The configuration port address (00h) is al[...]

  • Page 59

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 59 Length one 32 bit register location. Header CRC The header CRC is the eight bit CRC code used to detect errors in the command packet. The CRC code is checked before the command is executed 1 In Figure 7-4 the format of the reply to a r[...]

  • Page 60

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 60 Protocol Identifier The RMAP protocol identifier value 01h. 1 Command Byte Read single address re ply command byte. The packet type bits in the command byte indicate this packet is a response pa cket. 1 Status The command status is ret[...]

  • Page 61

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 61 Table 7-8 Read Incrementing 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 1064 No 64-bit read NS - - Word or byte address [...]

  • Page 62

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 62 In Figure 7-5 the first byte received by the SpaceWir e router configuration logic is the po rt address followed by the destination logical addre ss. Fields wh ich a re depicted in bold text are expecte d values. Fields which are shade[...]

  • Page 63

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 63 Destination Key The destination key identifier must ma tch the contents of the destination key register, see section 9.5.10. 1 Source Path Address The source path address field is used to add source path addresse s to the head of the r[...]

  • Page 64

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 64 In Figure 7-6 the format of the reply to a read in crementing address co mmand is illustrated. The first byte sent by the SpaceWire router confi guration logic is the port addres s followed by the destination logical address. Fields wh[...]

  • Page 65

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 65 Command Byte Read incrementing address reply command byte. The packet type bits in the command byte indicate this packet is a reply packet. 1 Status The command status is returne d in this field. The command status can be command succe[...]

  • Page 66

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 66 32-bit read-modify-write S 4 No 64-bit read-modify-write NS - - Word or byte address 32-bit alig ned Accepted Logical Addre sses 0xFE Accepted destination keys 0x20 at power on Accepted address ranges 0x 00 0000 00 00 – 0x00 0000 010[...]

  • Page 67

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 67 Table 7-12 Read-Modify-Writ e Command Packet Fields Packet Field Description Bytes Config Port Address The configuration port address field rout es the packet to the configuration port of the router. The configuration port address is a[...]

  • Page 68

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 68 Mask Length 4 bytes for the mask to modify a 32-bit register. Header CRC The header CRC used to detect erro rs in the header part of the command packet. 1 Data and Mask The data and mask values to write to the SpaceWire router. The da [...]

  • Page 69

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 69 In Figure 7-9 the format of the reply to a Read- Modify-Write command is illustrated. Th e first byte received by the SpaceWire router configuratio n logic is the port address followed by the destination logical address. Fields wh ich [...]

  • Page 70

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 70 logical address SpaceWire router doe s not have a logical addres s. Transaction Identifier The transaction identifier identifies the command packet and repl y packet with a unique number. The transa ction identifier in the reply packet[...]

  • Page 71

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 71 The RMAP write single addre ss, with data verify and acknowle dgement command is supp orted in the SpaceWire router. The RMAP write com mand is used to write a 32 bit value into one of the SpaceWir e router registers. In Figure 7-10 th[...]

  • Page 72

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 72 Command Byte The command byte indicates a write single add ress, with verification and acknowledgement packet. The Source pa th address length field s are set to the number of source path addresse s re quired as defined in section 7.6.[...]

  • Page 73

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 73 In Figure 7-11 the format of the reply to a write command i s illustrated. The first byte sent by the SpaceWire router configuration logi c is the port address followed by the destination logical address. Fields which are depicted in b[...]

  • Page 74

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 74 address Transaction Identifier The transaction identifier identifies the command packet and repl y packet with a unique number. The transaction identifier in the reply packet is cop ied from the command packet and returned in this fiel[...]

  • Page 75

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 75 packet is corrupted Early EOP The command packe t 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 expe cted amount of SpaceWire c[...]

  • Page 76

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 76 incrementing read 4. The data len gth is not 4 in a verified write command. 5. The data len gth is not 8 in a read modify write command. Invalid Register Address The address field is addressing an unknown register for a read comm and o[...]

  • Page 77

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 77 7.6.9 Source Path Address Field The RMAP command field “source path add ress l ength” indicate s the number of sou rce path addresses which are expe cted in the packet. Up to 1 2 source path addresses can b e accepted by the router[...]

  • Page 78

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 78 Figure 7-12 and Figure 7-13 illustrate how source path addresses are returned in relation to the RMAP packet description. 00 00 04 02 Dest Logical Pro tocol ID Command Dest Key Source Logical Trans ID(1 ) Tr ans ID(0) Address(4) Figure[...]

  • Page 79

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 79 8. CONTROL LOGIC AND OPERATIONAL MODES In this section the SpaceWire router control logi c a nd operational modes a re defined. The router control logic determines how the SpaceWire link po rts operate, how received packets are routed [...]

  • Page 80

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 80 8.1.4 Link-Disable The SpaceWire port ca n be disabled therefo re rendering the link unusable. When a SpaceWire link which is running is di sabled it will disconne ct from the far end and refuse connection attem pts by the far end of t[...]

  • Page 81

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 81 DOUT SOUT DIN SIN Connection m ade Data T ransfer Disconnect Deac tivated Deac tivated Return NULLs Disconnect Detected Data Receiv ed NULL receiv ed Acti vate output DS reset Deactiv a te output Deac tivated Deac tivated Figure 8-1 De[...]

  • Page 82

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 82 3.3  V 2850 Ω 20  k Ω R T =100 Ω 16  k Ω Vd d 2850 Ω 91  µA 87  µA 12  µA 99  µA 190  µA 3.05  V 3.04  V 10  mV ‐ + Figure 8-3 Deactivated LDVS driv er outpu t connected to ext[...]

  • Page 83

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 83 () () 2 * 1 10 2 * 20 100 10 1 ⎟ ⎟ ⎟ ⎟ ⎠ ⎞ ⎜ ⎜ ⎜ ⎜ ⎝ ⎛ + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + = + MbitDIV TX FEEDBDIV MHz MHz MbitRate TXDIV To provide a SpaceWire signal with a n ominal 50/ 50 duty cycle, TXRATE and TX10M[...]

  • Page 84

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 84 The columns header TXRA TE give the SpaceWire tran smit 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 u[...]

  • Page 85

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 85 8.2.1 Start on request mode The Start on Request mode is enabled by setting the CFG_START_ON_RE Q bit in the router control register. The input signal POR_START_ON_REQ_N determines the powe r on or reset state of the CFG_START_ON_REQ b[...]

  • Page 86

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 86 R1 R2 12 12 Auto-Start default mode and Start on Request enabled and Disable on Sil ence enable i n both routers R1 R2 12 12 Packe t with address 2 R1 R2 12 12 Connection A ttempt Link Started and Data transfer R1 R2 12 12 Data transfe[...]

  • Page 87

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 87 dependent on the previous input port whi ch had acce ss to that output port. The next input port to transfer data to an output port i s the next highest port number (m odulo number of port s) that has data to send. Thus the input port [...]

  • Page 88

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 88 8.3.2.2 Arbitration of packets with matching priority (2) In the Figure 8-7 another e xample of arbitrating betw een packets with the same priority i s illustrated. Again only router ports 1-5 are shown for cla rity. At stage one input[...]

  • Page 89

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 89 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 po rts 1 and 3 have packets wi[...]

  • Page 90

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 90 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 cla rity. At stage one input po rts 1 and 3 [...]

  • Page 91

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 91 R1 2 5 1 3 52 4 52 R1 2 5 1 3 52 4 Two p acket s w aitin g to us e port 5 (Pre vious port whi ch acce ssed port 5 = 4) Packe t from port 1 is s elect ed HIGH prio rity packet arr ives at po rt 4 R1 2 5 1 3 4 Packet f rom port 1 com ple[...]

  • Page 92

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 92 8.3.3 Group Adaptive Routing The SpaceWire router routing table can be set up to suppo rt group adaptive routing of packets. Setting the routing table contents is described in section 9.3. In group adaptive routing a set of o utput por[...]

  • Page 93

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 93 R1 1 2 3 4 5 6 76 Group adapti ve routin g pa cket wit h addre ss 76 arri ves at port 1 Ports 4 a nd 5 are bu sy rout ing pack et data from ports 2 and 3 Addr e ss 76 – Rou ting t a bl e entry Header Dele tion disable d Port 4 Port 5[...]

  • Page 94

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 94 then a packet that that is addressed to go out of the same port that it arrived on will be disca rded and a packet address error recorded. Command reply packets which are returned thro ugh the same port they arrived on are not affected[...]

  • Page 95

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 95 8.3.5 Packet Blocking The Time-Out Enable bit (bit 0) of the router contro l register en ables the watchdog timers on the ports. When this bit is set and the watchdog timers a re enabled the router i s in “Watchdog Timer” mod e. Wh[...]

  • Page 96

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 96 In blocking allowed mode the network p ath is blocke d until the destination node start s to accept data again. Packets waiting to use the net work path will wait indefinitely. In watchdog timer m ode the router will timeout and the ne[...]

  • Page 97

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 97 R1 1 2 3 4 5 6 (c) R2 14 2 3 5 6 4 4 Figure 8-16 Destination Node Block e d (c) Watchdog timer mode What happens when the routers a re in Watchdog Ti mer mo de and a destination be comes blocked is illustrated in Figure 8-17to Figure 8[...]

  • Page 98

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 98 1 2 3 4 5 6 (c) 14 2 3 5 6 4 4 E E P R1 R2 Figure 8-19 Destination Node Block e d: Watchdog Mode (c) d) The packet waiting at routing switch R1 port 2 is rout ed and the network blo ckage is cleared. Routing switch R2 port 5 still has [...]

  • Page 99

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 99 R1 1 2 3 4 5 6 (a) 4 5 R2 14 2 3 5 6 4 4 Figure 8-21 Source Node Stalled (a) b) The packet from routing switch R1 port 3 is ro uted towards its de stination but during packet transfer the source node stalls and doe s not supply any fur[...]

  • Page 100

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 100 R1 1 2 3 4 5 6 (a) 4 5 R2 14 2 3 5 6 4 4 Figure 8-25 Source Node Stalled: Watchdog Mode (a ) b) The packet from routing switch R1 port 3 is ro uted towards its de stination but during packet transfer the source node stalls an d does n[...]

  • Page 101

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 101 8.3.5.3 Waiting for an output port When a packet arrives at an input p ort of the SpW-10X router is has to wait t o be forwarded to an output port. How long the packet wa its will depend on whether the router is in Blocking Allowed or[...]

  • Page 102

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 102 WARNING Packets can timeout and be spilled in a SpaceWire network without the destination receiv ing any notification of this. Packets with errors (e.g. parity error) can arrive at a d estination terminated by an EEP. In a very specia[...]

  • Page 103

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 103 9. REGISTER DEFINITIONS This section describes the internal confi guration registers of the SpW-10X Route r. The following subsections contai n register bit descript ion tables which hold the following information: • The bit numbers[...]

  • Page 104

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 104 registers allow the router manageme nt control and status information to be accessed by a networ k manager using configuratio n commands. Table 9-1 provides an overview of each of the differe nt types of register within the co nfigura[...]

  • Page 105

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 105 Table 9-2 Configuration Register Address es Address Register 31–0 ( 0x0000 001F–0x0 000 0000 ) Port control/status registers 255–32 ( 0x0000 00FF –0x0000 00 20 ) Group adaptive routing table regi sters 256 ( 0x0000 0100 ) Netw[...]

  • Page 106

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 106 configuration memory address range of the GAR table is 32-255 (0x0000 0020 – 0x0000 00FF). T he configuration memory ad dress corresponds to the logical address; hence t he GAR table entry at address 39 corresponds to logical addre [...]

  • Page 107

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 107 Table 9-3 GAR Table Register Description Address Range: 32-2 55 (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[...]

  • Page 108

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 108 WARNING Care must be taken when setting a the routing tables to avoid a possible infinit e loop. For example if there is a SpaceWire link made between two ports of a single rou ter and a logical address routes a packet out of one of t[...]

  • Page 109

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 109 Bits Name Reset Value Description Read/Write 28:24 Current port connectio n All bits set to one. The current port connection bits indi cate the input port which this output port is currently conne cted to. Port number 31 (bits 28:24 s[...]

  • Page 110

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 110 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 t[...]

  • Page 111

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 111 14 Invalid Register Address ‘0’ The invalid register address bit is set wh en an unknown register address i s given in the command packet or a write is attempted to a read only register R 15 Unsupported protocol error ‘0’ The [...]

  • Page 112

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 112 9.4.3 SpaceWire port contro l/status register bits. The port control/status fields specific to Spac eWire ports are sho wn in Figure 9-3 and Table 9-6. Error S tatus 0 7 11 8 15 12 16 22 27 24 31 28 Interface S tate Interface Control [...]

  • Page 113

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 113 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 pa cket [...]

  • Page 114

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 114 SpaceWire port will wait until the other end of the link tries to make a connection and wil l then automatically start. 13 Start ‘0’ When set then the Space Wire link will initiate start-up as defined in the SpaceWire standard [AD[...]

  • Page 115

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 115 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 Er[...]

  • Page 116

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 116 De v i c e T y pe 0 73 84 Ret urn P ort P ort s i n run stat e 31 Figure 9-4 Network Discovery Register Fields Table 9-8 Network Discov ery Registe r Fields Bits Description Reset Value Usage Read/ Write 3:0 Device Type “0001” The[...]

  • Page 117

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 117 Table 9-9 Router Identity Register Fiel d 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 ro uter i[...]

  • Page 118

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 118 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’ – Blo[...]

  • Page 119

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 119 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 • Input port data read. • Output port[...]

  • Page 120

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 120 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 writi ng to the router control register. When initiall y prototyping a SpaceWire s[...]

  • Page 121

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 121 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 assert ed. A write to this register with b[...]

  • Page 122

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 122 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-cod e 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[...]

  • Page 123

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 123 9.5.7 General Pu rpose Register The general purpose register addre ss is 262 (0x0000 0106 ). The general purpose register co ntains 32-bits and m ay be set by a configuration write com mand to a user defined value as required. It may [...]

  • Page 124

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 124 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 ena ble bits for SpaceWire ports 8 to 1 respectively. The app[...]

  • Page 125

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 125 WARNING If a SpaceWire port that is being used to configu re a router has its transmit clock turned off then it will not be possible to configure th e router using that port. Unless there is another co nnection with an active clock an[...]

  • Page 126

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 126 Table 9-15 Transmit Clock Control Re gister 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 “00” Æ div[...]

  • Page 127

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 127 9.5.10 Destination Key Register The Destination Key register add ress is 265 (0x0000 0109). The destination key regist er fields are listed in the table below. Table 9-16 Destination Key Register Bits Name Reset Value Description Read[...]

  • Page 128

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 128 10. SWITCHING CHARACTERISTICS 10.1 CLOCK AND RESET TIMING PARAMETERS The global clock and asynchrono us reset timing parameters are listed belo w. Table 10-1 Clock and reset timing parameters Description Symbol Value Units Clock perio[...]

  • Page 129

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 129 Table 10-2 Serial signal timing parameters Description Symbol Value Units DS maximum input bit rate T DS 200+2% Mbits/s, max DS minimum consecutive edge separatio n T DSINS 3 ns, min Minimum edge separation between 2 co nsecutive edge[...]

  • Page 130

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 130 Table 10-3 External port timing parameters Description Symbol Value Units Write enable setup time to CLK rising e dge T EXTWRSU 5 ns, min Write enable hold time after CLK rising edge T EXTWRHLD 5 ns, min Write data setup time to CLK r[...]

  • Page 131

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 131 EXT_TI CK_OUT T TCLKOL T TCLKOH EXT_TIME_OUT T TCLKOE T TCLKOE Figure 10-5 Time-Code Output Interface TIME_CT R_RST T TCKIL T TCLKIH Figure 10-6 Time-code TIME_CTR_RST interfa ce The Time-code timing parameters are shown below. Table [...]

  • Page 132

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 132 Table 10-5 Status Multiplexer timing parameters Description Symbol Value Units Status address change to status output change T STMUX 3 to 20 ns CLK rising edge to status output T CLKSTMUX 5 to 25 ns[...]

  • Page 133

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 133 10.6 LATENCY AND JITTER The timing parameters for the data and time-cod e latency and the time-code jitter are derived f rom the receive clock, tran smit clock and system clock period. The wo rst case numb er of clock cycles requi red[...]

  • Page 134

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 134 SpaceWire port to SpaceWire port Last bit of data into recei ver to last bit of data out of transmitter (Worst case where tran smitter is sending a time-code and FCT characte r before data) () ( ) ( ) TXPERIOD SYSPERIOD RXPERIOD SSDAT[...]

  • Page 135

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 135 10.6.5 Time-code Jitter The variation in time to propagate a time-code throug h a routing switch. Time-code jitter occurs in the synchro nisation handshaking ci rcuits and the transmitter where the maximum delay time the time-code has[...]

  • Page 136

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 136 11. ELECTRICAL CHARACTERISTICS The electrical characteri stics for the Spac eWire 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 con d[...]

  • Page 137

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 137 11.2 ABSOLUTE MAXIMUM RATINGS The absolute maximum ra tings are listed in Tabl e 11-2. For a detailed li st of the maximum conditions see [AD3]. Table 11-2 Absolute Maximum Rating s Symbol Description Value Units V DD Supply voltage r[...]

  • Page 138

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 138 12. APPLICATION GUIDELINES In this section an example circuit diagra m is provided and PCB and design guid elines presented.; 12.1 EXAMPLE CIRCUIT DIAGRAM A schematic showing how the SpW-1 0X device s hould be connected is p rovided o[...]

  • Page 139

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 139[...]

  • Page 140

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 140 12.2 PCB DESIGN AND LAYOUT GUIDELINES PCB design and layout guide lines are p rovided 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 sh[...]

  • Page 141

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 141 2. LVDS fail safe resistors need not be adj acent to the termination resistor. Their l ocation is not critical but the stub lengths to the te rmination resistors should be less than 20 mm. 3. LVDS tracks shall be 100 ohm differential [...]

  • Page 142

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 142 12.2.10 PLL See Figure 12-1 the inte rnal wiring of PLL bloc k to better understand the external board recommended layout. The Voltage drop betwee n PLL loop filter (LF) and the PV COBIAS pads will be converted into a current (Ivco) w[...]

  • Page 143

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 143 13. ANOMALIES AND WARNINGS In this section a list of anomalies and warnings i s provided: 13.1 ANOMALIES The following anomalies ar e present in the prototype SpW-10X router device: 1. Simultaneous transitions on data and strobe ca n [...]

  • Page 144

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 144 WARNING The deactivate mode (see also section 9.4.3) does n ot tri-state the LVDS outputs. Th e LVDS outputs are cold-spari ng and when disabled both outputs in an LVDS differential pai r are pulled up to 3.3V and have an impedance of[...]

  • Page 145

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 145 WARNING Packets can timeout and be spilled in a SpaceWire network without the destination receiv ing any notification of this. Packets with errors (e.g. parity error) can arrive at a d estination terminated by an EEP. In a very specia[...]

  • Page 146

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 146 set a glitch may occur on d ata and strobe, see Figu re 13-3. A simu ltaneous transition or glitch on data and strobe may occur when reset is release d, Figure 13-4. Figure 13-1 Reset Wav eform Figure 13-2 Reset Wav eform with Data an[...]

  • Page 147

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 147 13.3.2 Data Strobe Disable Waveform If a SpaceWire link is disabled, eith er by configur ation command or a disconnect, parity, escape or credit error, the final bit of strobe will be extended to a 100 ns p eriod pulse. No simultaneou[...]

  • Page 148

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 148 13.4 PARITY ERROR ANOMALY 13.4.1 Parity Error Action A parity error on the SpaceWire link causes the lin k to be disconnected by the SpaceWire router. If a packet is being received the packet is discarded and an error end of packet (E[...]

  • Page 149

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 149 Figure 13-7 No error end of pack et 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 imm[...]

  • Page 150

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 150 14. TECHNICAL SUPPORT Technical support for the SpW-10X Router is p r ovided by STAR-Dundee Ltd. A rang e of SpW-10X evaluation boards is available along with other test equipme nt, cables etc. See www.star-dundee. com for details. Te[...]

  • Page 151

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 151 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 anom aly added. 6.4 10.1 10.2 10.3 10.4 10.5 11.1 Update after characterisation[...]

  • Page 152

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 152 5.7.4 VCO bias resistor va lue corrected (Section 5.7.4). 8.1.5 Tri-state mode changed to deactivate mod e. Calculation of deactivated power consum ption added. 9.4.3 Table 9-6 Tri-state mode changed to deactivated mode. 9.5.8 Descrip[...]

  • Page 153

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 153 details throughout document. Section added on Application Guidelines giving example circuit diagram and PCB layout guidelines. Section added on anomali es and warnings. Section added on Technical Suppo rt. 15.6 ISSUE 2.4 TO ISSUE 2.5 [...]

  • Page 154

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 154 15.9 ISSUE 2.1 TO ISSUE 2.2 Section Ref Change 4 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 Change All Final updates and editorial corrections before rele ase 15.12 ISSU[...]

  • Page 155

    Ref.: UoD_SpW-10X_ UserManual Issue: 3.4 SpW-10X SpaceWire Router User Manual Date: 11 th July 2008 Preliminary 155 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 a dded 5.5 Table 5-[...]