1、Dezember 2014DEUTSCHE NORM DIN-Normenausschuss Luft- und Raumfahrt (NL)Preisgruppe 31DIN Deutsches Institut fr Normung e. V. Jede Art der Vervielfltigung, auch auszugsweise, nur mit Genehmigung des DIN Deutsches Institut fr Normung e. V., Berlin, gestattet.ICS 49.140!%Englische Fassung EN 16603-50-5
2、2:2014Space engineering SpaceWire Remote memory access protocol;English version EN 16603-50-52:2014Ingnierie spatiale SpaceWire Protocole daccs distance la mmoire;Version anglaise EN 16603-50-52:2014Alleinverkauf der Normen durch Beuth Verlag GmbH, 10772 Berlin www.beuth.deGesamtumfang 112 SeitenDIN
3、 EN 16603-50-52:2014-12 2 Nationales Vorwort Dieses Dokument (EN 16603-50-52:2014) wurde vom Technischen Komitee CEN/CLC/TC 5 Raumfahrt“ erarbeitet, dessen Sekretariat vom DIN (Deutschland) gehalten wird. Das zustndige deutsche Normungsgremium ist der Arbeitsausschuss NA 131-10-01 AA Interoperabilit
4、t von Informations-, Kommunikations- und Navigationssystemen“ im DIN-Normenausschuss Luft- und Raumfahrt (NL). Dieses Dokument (EN 16603-50-52:2014) basiert auf ECSS-E-ST-50-52C. Dieses Dokument enthlt unter Bercksichtigung des DIN-Prsidialbeschlusses 1/2004 nur die englische Originalfassung von EN
5、16603-50-52:2014. Dieses Dokument wurde speziell zur Behandlung von Raumfahrtsystemen erarbeitet und hat daher Vorrang vor jeglicher Europischer Norm, da es denselben Anwendungsbereich hat, jedoch ber einen greren Geltungsbereich (z. B. Luft- und Raumfahrt) verfgt. DIN EN 16603-50-52:2014-12 3 Natio
6、naler Anhang NA (informativ) Begriffe und Abkrzungen 3 Begriffe und Abkrzungen 3.1 Begriffe aus anderen Normen Fr die Anwendung dieses Dokuments gelten die Begriffe nach ECSS-S-ST-00-01 und ECSS-E-ST-50-51. 3.2 Fr diese Norm spezifische Begriffe Keine. 3.3 Abkrzungen Die folgenden Abkrzungen werden
7、in der vorliegenden Norm festgelegt und verwendet: Abkrzung Bedeutung CRC zyklischer Redundanzcode (en: cyclic redundancy code) EEP Fehlermeldung Paketende (en: error end of packet) EOP Paketende (en: end of packet) FCT Flussregelungstoken (en: flow control token) FIFO First-In, First-Out (en: first
8、 in first out) ID Bezeichnung (en: identifier) inc Inkrement (en: increment) Len Lnge (en: length) LS niedrigstwertig (en: least-significant) LSB niedrigstwertiges Bit (en: least-significant bit) MS hchstwertig (en: most-significant) MSB hchstwertiges Bit (en: most-significant bit) RMAP Protokoll fr
9、 Speicherfernzugriff (en: remote memory access protocol) RMW Lesen-ndern-Schreiben (en: read-modify-write) SOIS bordeigene Schnittstellendienste des Raumfahrzeugs (en: spacecraft onboard interface services) SpW SpaceWire (en: SpaceWire) SSNSAP Dienstzugangspunkt zum Quellteilnetzwerk (en: source sub
10、network service access point) VHDL VHSIC-Hardwarebeschreibungssprache (en: vhsic hardware description language) VHSIC integrierter Hochgeschwindigkeitsschaltkreis (en: very high speed integrated circuit) DIN EN 16603-50-52:2014-12 4 3.4 Konventionen In diesem Dokument werden hexadezimale Zahlen mit
11、dem Prfix 0x geschrieben, z. B. 0x34 und 0xDF15. Binrzahlen werden mit dem Prfix 0b geschrieben, z. B. 0b01001100 und 0b01. Dezimalzahlen weisen kein Prfix auf. EUROPEAN STANDARD NORME EUROPENNE EUROPISCHE NORM EN 16603-50-52 September 2014 ICS 49.140 English version Space engineering - SpaceWire -
12、Remote memory access protocol Ingnierie spatiale - SpaceWire - protocole daccs distance la mmoire Raumfahrttechnik - SpaceWire - Protokoll zum ferngesteuerten Speicherzugriff This European Standard was approved by CEN on 1 March 2014. CEN and CENELEC members are bound to comply with the CEN/CENELEC
13、Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical references concerning such national standards may be obtained on application to the CEN-CENELEC Management Centre or to
14、 any CEN and CENELEC member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of a CEN and CENELEC member into its own language and notified to the CEN-CENELEC Management Centre has the sa
15、me status as the official versions. CEN and CENELEC members are the national standards bodies and national electrotechnical committees of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, Former Yugoslav Republic of Macedonia, France, Germany, Greece, Hungary, I
16、celand, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and United Kingdom. CEN-CENELEC Management Centre: Avenue Marnix 17, B-1000 Brussels 2014 CEN/CENELEC All rights of exploitation in any
17、 form and by any means reserved worldwide for CEN national Members and for CENELEC Members. Ref. No. EN 16603-50-52:2014 EEN 16603-50-52:2014 (E) 2 Table of contents Foreword 7 1 Scope . 8 2 Normative references . 9 3 Terms, definitions and abbreviated terms 10 3.1 Terms defined in other standards .
18、 10 3.2 Terms specific to the present standard . 10 3.3 Abbreviated terms. 10 3.4 Conventions 11 4 Principles 12 4.1 Remote Memory Access Protocol (RMAP) purpose 12 4.2 Guide to clause 5 12 4.3 RMAP operations 13 4.3.1 Introduction . 13 4.3.2 Write commands . 13 4.3.3 Read commands . 14 4.3.4 Read-m
19、odify-write . 14 5 Requirements 15 5.1 RMAP command and reply fields 15 5.1.1 Target SpaceWire Address field 15 5.1.2 Target Logical Address field 15 5.1.3 Protocol Identifier field . 15 5.1.4 Instruction field 16 5.1.5 Key field 17 5.1.6 Reply Address field . 17 5.1.7 Initiator Logical Address fiel
20、d 19 5.1.8 Transaction Identifier field . 19 5.1.9 Extended Address field . 19 5.1.10 Address field . 19 5.1.11 Data Length field . 20 DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 3 5.1.12 Header CRC field 20 5.1.13 Data field . 20 5.1.14 Mask field 20 5.1.15 Data CRC field 20 5.1.16 Reply Spa
21、ceWire Address field . 20 5.1.17 Status field 20 5.2 Cyclic Redundancy Code 21 5.3 Write Command 23 5.3.1 Write command format 23 5.3.2 Write reply format 26 5.3.3 Write action . 28 5.4 Read Command . 39 5.4.1 Read command format 39 5.4.2 Read reply format . 41 5.4.3 Read action . 43 5.5 Read-Modify
22、-Write Command. 52 5.5.1 Read-modify-write command format . 52 5.5.2 Read-modify-write reply format . 56 5.5.3 Read-modify-write action. 59 5.6 Error and status codes 70 5.6.1 Error and status codes 70 5.7 Partial Implementations of RMAP . 72 5.7.1 Limited functionality nodes 72 5.7.2 Partial implem
23、entations . 72 5.8 RMAP conformance 73 5.8.1 Overview . 73 5.8.2 RMAP partial implementations 73 Annex A (informative) Example of RMAP CRC implementation 77 A.1 Overview 77 A.2 VHDL implementation of RMAP CRC . 77 A.3 C-code implementation of RMAP CRC . 79 A.4 RMAP CRC test patterns 81 Annex B (info
24、rmative) Example Service Interface specification . 88 B.1 Overview 88 B.2 Write Service 89 B.2.1 Initiator 89 B.2.2 WRITE.request . 89 DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 4 B.2.3 WRITE.confirmation 89 B.2.4 Target . 90 B.2.5 WRITE.authorisation.indication . 90 B.2.6 WRITE.authorisatio
25、n.response . 91 B.2.7 WRITE.data.indication 91 B.2.8 WRITE.data.response . 92 B.2.9 WRITE.indication 92 B.3 Read Service 93 B.3.1 Initiator 93 B.3.2 READ.request . 93 B.3.3 READ.confirmation 93 B.3.4 Target . 94 B.3.5 READ.authorisation.indication . 94 B.3.6 READ.authorisation.response . 95 B.3.7 RE
26、AD.data.indication 95 B.3.8 READ.data.response 96 B.3.9 READ.indication 96 B.4 Read-Modify-Write Service . 97 B.4.1 Initiator 97 B.4.2 RMW.request 97 B.4.3 RMW.confirmation. 97 B.4.4 Target . 98 B.4.5 RMW.authorisation.indication 98 B.4.6 RMW.authorisation.response 99 B.4.7 RMW.read.data.indication
27、. 99 B.4.8 RMW.read.data.response . 100 B.4.9 RMW.write.data.indication . 100 B.4.10 RMW.write.data.response . 101 B.4.11 RMW.indication . 102 Annex C (informative) Mapping to CCSDS SOIS Remote memory access service 103 Bibliography . 108 Figures Figure 5-1: Write Command format 23 Figure 5-2: Write
28、 Reply format 26 Figure 5-3: Write Command/Reply sequence . 28 DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 5 Figure 5-4: Write Command Header Error 30 Figure 5-5: Write Data Authorisation Rejection . 32 Figure 5-6: Write Command Data Error 35 Figure 5-7: Write Reply Error 38 Figure 5-8: Read
29、Command format 39 Figure 5-9: Read Reply format . 41 Figure 5-10: Read Command/Reply sequence . 44 Figure 5-11: Read Command Header Error 46 Figure 5-12: Read Authorisation Rejection . 49 Figure 5-13: Read Reply Header Error . 51 Figure 5-14: Read Reply Data Error . 52 Figure 5-15: Read-Modify-Write
30、 Command format . 53 Figure 5-16: Example Operation of Read-Modify-Write Command . 56 Figure 5-17: Read-Modify-Write Reply format 57 Figure 5-18: Read-Modify-Write Command/Reply sequence 59 Figure 5-19: Read-Modify-Write Command Header Error . 61 Figure 5-20: Read-Modify-Write Command Data Error . 6
31、4 Figure 5-21: Read-Modify-Write Authorisation Rejection 66 Figure 5-22: Read-Modify-Write Reply Error . 68 Figure 5-23: RMW Reply Data Error . 69 Figure B-1 : SOIS communication architecture . 88 Figure C-1 : RMAP model 103 Figure C-2 : SOIS model 104 Tables Table 5-1: RMAP Command Codes . 16 Table
32、 5-2: Reply Address field size 18 Table 5-3: Example Reply Address field to Reply SpaceWire Address mappings . 18 Table 5-4: Error and Status codes 71 Table 5-5: SpaceWire RMAP write command . 74 Table 5-6: Example of Write Command Product Characteristics 74 Table 5-7: SpaceWire RMAP Read Command .
33、75 Table 5-8: Example Read Command Product Characteristics 75 Table 5-9: SpaceWire RMAP Read-Modify-Write Command 76 Table 5-10: Example Read-Modify-Write Command Product Characteristics . 76 DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 6 Table C-1 : Comparison of RMAP and Remote Memory Access
34、 primitives 105 Table C-2 : WRITE.request parameters . 106 Table C-3 : WRITE.confirmation parameters 106 Table C-4 : READ.request parameters . 106 Table C-5 : READ.confirmation parameters 106 Table C-6 : RMW.request parameters 107 Table C-7 : RMW.confirmation parameters . 107 DIN EN 16603-50-52:2014
35、-12 EN 16603-50-52:2014 (E) 7 Foreword This document (EN 16603-50-52:2014) has been prepared by Technical Committee CEN/CLC/TC 5 “Space”, the secretariat of which is held by DIN. This standard (EN 16603-50-52:2014) originates from ECSS-E-ST-50-52C. This European Standard shall be given the status of
36、 a national standard, either by publication of an identical text or by endorsement, at the latest by March 2015, and conflicting national standards shall be withdrawn at the latest by March 2015. Attention is drawn to the possibility that some of the elements of this document may be the subject of p
37、atent rights. CEN and/or CENELEC shall not be held responsible for identifying any or all such patent rights. This document has been prepared under a mandate given to CEN by the European Commission and the European Free Trade Association. This document has been developed to cover specifically space
38、systems and has therefore precedence over any EN covering the same scope but with a wider domain of applicability (e.g. : aerospace). According to the CEN-CENELEC Internal Regulations, the national standards organizations of the following countries are bound to implement this European Standard: Aust
39、ria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, Former Yugoslav Republic of Macedonia, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Swede
40、n, Switzerland, Turkey and the United Kingdom. DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 8 1 Scope There is a number of communication protocols that can be used in conjunction with the SpaceWire Standard (ECSS-E-ST-50-12), to provide a comprehensive set of services for onboard user applicat
41、ions. To distinguish between the various protocols a protocol identifier is used, as specified in ECSS-E-ST-50-51. This Standard specifies the Remote Memory Access protocol (RMAP), which is one of these protocols that works over SpaceWire. The aim of RMAP is to support reading from and writing to me
42、mory in a remote SpaceWire node. RMAP can be used to configure a SpaceWire network, control SpaceWire nodes, and to transfer data to and from SpaceWire nodes. RMAP is specified in this Standard. This standard may be tailored for the specific characteristic and constrains of a space project in confor
43、mance with ECSS-S-ST-00. DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 9 2 Normative references The following normative documents contain provisions which, through reference in this text, constitute provisions of this ECSS Standard. For dated references, subsequent amendments to, or revision of
44、 any of these publications do not apply. However, parties to agreements based on this ECSS Standard are encouraged to investigate the possibility of applying the more recent editions of the normative documents indicated below. For undated references, the latest edition of the publication referred to
45、 applies. EN reference Reference in text Title EN 16601-00-01 ECSS-S-ST-00-01 ECSS system - Glossary of terms EN 16603-50-12 ECSS-E-ST-50-12 Space engineering - SpaceWire - Links, nodes, routers and networks EN 16603-50-51 ECSS-E-ST-50-51 Space engineering - SpaceWire protocol identification DIN EN
46、16603-50-52:2014-12 EN 16603-50-52:2014 (E) 10 3 Terms, definitions and abbreviated terms 3.1 Terms defined in other standards For the purpose of this Standard, the terms and definitions from ECSS-S-ST-00-01 and ECSS-E-ST-50-51 apply. 3.2 Terms specific to the present standard None. 3.3 Abbreviated
47、terms The following abbreviations are defined and used within this standard: Abbreviation Meaning CRC cyclic redundancy code EEP error end of packet EOP end of packet FCT flow control token FIFO first in first out ID identifier inc increment Len length LS least-significant LSB least-significant bit
48、MS most-significant MSB most-significant bit RMAP remote memory access protocol RMW read-modify-write SOIS spacecraft onboard interface services SpW SpaceWire SSNSAP source subnetwork service access point DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 11 VHDL vhsic hardware description language
49、VHSIC very high speed integrated circuit 3.4 Conventions In this document hexadecimal numbers are written with the prefix 0x, for example 0x34 and 0xDF15. Binary numbers are written with the prefix 0b, for example 0b01001100 and 0b01. Decimal numbers have no prefix. DIN EN 16603-50-52:2014-12 EN 16603-50-52:2014 (E) 12 4 Principles 4.1 Remote Memory Access Protocol (RMAP) purpose The aim of RMAP is to support reading from and writing to memory in a remote SpaceWire node. RMAP can be used to configure a SpaceWire network, control Spa