Mipi A PHY Specification v1 1 1
Mipi A PHY Specification v1 1 1
Mipi A PHY Specification v1 1 1
14BDRAF
A-PHY®
* NOTE TO IMPLEMENTERS *
9B
This document is a MIPI Specification. MIPI member companies’ rights and obligations apply to this Specification as
1B
A-PHY®
Version 1.1.1
10B
13 December 2022
8
Further technical changes to this document are expected as work continues in the A-PHY Working
2B
Group.
NOTICE OF DISCLAIMER
The material contained herein is provided on an “AS IS” basis. To the maximum extent permitted by
3B
applicable law, this material is provided AS IS AND WITH ALL FAULTS, and the authors and developers
of this material and MIPI Alliance Inc. (“MIPI”) hereby disclaim all other warranties and conditions, either
express, implied or statutory, including, but not limited to, any (if any) implied warranties, duties or
conditions of merchantability, of fitness for a particular purpose, of accuracy or completeness of responses,
of results, of workmanlike effort, of lack of viruses, and of lack of negligence. ALSO, THERE IS NO
WARRANTY OR CONDITION OF TITLE, QUIET ENJOYMENT, QUIET POSSESSION,
CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT WITH REGARD TO THIS
MATERIAL.
IN NO EVENT WILL ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR MIPI BE LIABLE TO
4B
ANY OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST
PROFITS, LOSS OF USE, LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT,
INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, OR
OTHERWISE, ARISING IN ANY WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO
THIS MATERIAL, WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE
POSSIBILITY OF SUCH DAMAGES.
The material contained herein is not a license, either expressly or impliedly, to any IPR owned or controlled
5B
by any of the authors or developers of this material or MIPI. Any license to use this material is granted
separately from this document. This material is protected by copyright laws, and may not be reproduced,
republished, distributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the
express prior written permission of MIPI Alliance. MIPI, MIPI Alliance and the dotted rainbow arch and all
related trademarks, service marks, tradenames, and other intellectual property are the exclusive property of
MIPI Alliance Inc. and cannot be used without its express prior written permission. The use or
implementation of this material may involve or require the use of intellectual property rights (“IPR”)
including (but not limited to) patents, patent applications, or copyrights owned by one or more parties,
whether or not members of MIPI. MIPI does not make any search or investigation for IPR, nor does MIPI
require or request the disclosure of any IPR or claims of IPR as respects the contents of this material or
otherwise.
Without limiting the generality of the disclaimers stated above, users of this material are further notified that
6B
MIPI: (a) does not evaluate, test or verify the accuracy, soundness or credibility of the contents of this
material; (b) does not monitor or enforce compliance with the contents of this material; and (c) does not
certify, test, or in any manner investigate products or services or any claims of compliance with MIPI
specifications or related material.
Questions pertaining to this material, or the terms or conditions of its provision, should be addressed to:
7B
c/o IEEE-ISTO
445 Hoes Lane, Piscataway New Jersey 08854, United States
Attn: Executive Director
Contents
16B
Figures ...................................................................................................................................... x
Tables .................................................................................................................................... xiv
Release History...................................................................................................................... xix
1 Introduction ................................................................................................................. 1
1.1 Scope ................................................................................................................................... 1
1.1.1 In Scope ........................................................................................................................ 1
1.1.2 Out of Scope ................................................................................................................. 1
1.2 Purpose ................................................................................................................................ 2
2 Terminology ................................................................................................................. 3
2.1
Use of Special Terms ........................................................................................................... 3
2.2
Definitions ........................................................................................................................... 3
2.3
Abbreviations ...................................................................................................................... 4
2.4
Acronyms ............................................................................................................................ 5
3 References .................................................................................................................... 7
3.1 Normative References ......................................................................................................... 7
3.2 Informative References ....................................................................................................... 7
4 Overview ...................................................................................................................... 9
5 Architecture ............................................................................................................... 11
5.1 High Level Structure ......................................................................................................... 11
5.2 A-PHY Ports...................................................................................................................... 13
5.2.1 C-Port .......................................................................................................................... 13
5.2.2 D-Port ......................................................................................................................... 13
5.2.3 Q-Port ......................................................................................................................... 14
5.2.4 Gears ........................................................................................................................... 16
5.2.4.1 Normative Downlink and Reverse Downlink Gears ......................................... 16
5.2.4.2 Normative-Optional Gears ................................................................................ 17
5.2.4.3 Normative Uplink Gears.................................................................................... 17
5.2.4.4 Q-Port Configurations Per Gear ........................................................................ 18
5.3 Profiles .............................................................................................................................. 21
5.4 Safety ................................................................................................................................. 22
6 Interconnect ............................................................................................................... 23
6.1 Lane Configuration............................................................................................................ 23
6.2 Cable Topology ................................................................................................................. 24
6.3 Boundary Conditions......................................................................................................... 24
6.4 S-Parameter Specifications................................................................................................ 25
6.5 Characterization Conditions .............................................................................................. 25
6.6 Interconnect Specifications ............................................................................................... 26
6.6.1 Total Interconnect ....................................................................................................... 26
6.6.2 Cable TLIS (Transmission Line Interconnect Structure) ............................................ 27
6.6.2.1 Characteristic Impedance .................................................................................. 27
6.6.2.2 Insertion Loss .................................................................................................... 27
6.6.2.3 Return Loss........................................................................................................ 28
Figures
Figure 1 Data and Power Logical Structure ..................................................................................... 9
Figure 2 High Level Layer Structure................................................................................................ 9
Figure 3 A-PHY High Level Structure ........................................................................................... 12
Figure 4 Star Quad Arrangement of Quad Conductors into Two Differential Pairs ....................... 14
Figure 5 A-PHY Interconnect ......................................................................................................... 23
Figure 6 Cable Topologies.............................................................................................................. 24
Figure 7 Set-up for S-parameter Characterization of End Nodes and TLIS ................................... 25
Figure 8 Interconnect Test Points Definition .................................................................................. 26
Figure 9 Coax and SDP/STQ Cable Insertion Loss Limits ............................................................ 27
Figure 10 Cable TLIS Return Loss Limits ..................................................................................... 28
Figure 11 Cable TLIS Coupling Attenuation.................................................................................. 29
Figure 12 Cable TLIS Attenuation Limits ...................................................................................... 30
Figure 13 Alien Cable Bundle Crosstalk Limit .............................................................................. 31
Figure 14 STQ Inter-Pair Crosstalk Limit ...................................................................................... 32
Figure 15 Single-Ended End Node Routing Example .................................................................... 33
Figure 16 End Node Insertion Loss Limit ...................................................................................... 34
Figure 17 End Node Return Loss Limits ........................................................................................ 35
Figure 18 Receiver ANEXT Limit ................................................................................................. 36
Figure 19 PCB-Based Interconnect ................................................................................................ 37
Figure 20 Power Ripple Gain Function .......................................................................................... 39
Figure 21 Power Over Coax (PoC) Configuration ......................................................................... 40
Figure 22 Power Over Differential Line (PoDL) Configuration .................................................... 41
Figure 23 Examples of Applicable Pulses ...................................................................................... 43
Figure 24 P2 Decaying Sawtooth Model at 40 MHz / 4 nS Tr / 150 mV to 15 mV in 150 nS....... 44
Figure 25 Alien Bundle PSD Limit Line ........................................................................................ 45
Figure 26 A-PHY Single Lane Highly Asymmetric Unified Architecture ..................................... 47
Figure 27 A-PHY Dual Lane Downlink Highly Asymmetric Q-Port Architecture ........................ 48
Figure 28 A-PHY Asymmetric Q-Port Architecture ....................................................................... 48
Figure 29 A-PHY Symmetric Q-Port Architecture......................................................................... 49
Figure 30 A-PHY P1 G1/G2 Architecture ...................................................................................... 51
Figure 31 A-PHY P2 G1/G2 Architecture ...................................................................................... 52
Tables
Table 1 Q-Port Operation Modes ................................................................................................... 15
Table 2 Per Lane Normative Downlink / Reverse Downlink Gears ............................................... 16
Table 3 Normative-Optional, Downlink / Reverse Downlink Gear Implementations ................... 17
Table 4 Normative Uplink Gears .................................................................................................... 17
Table 5 Dual Lane Downlink Highly Asymmetric Q-Port, Normative Configurations ................. 18
Table 6 Asymmetric Q-Port Normative Configurations ................................................................. 18
Table 7 Symmetric Q-Port Normative Configurations ................................................................... 19
Table 8 Q-Fallback Highly Asymmetric Mode Normative Configurations ................................... 19
Table 9 Q-Port Types Interoperability Matrix ................................................................................ 20
Table 10 Cable TLIS Return Loss .................................................................................................. 28
Table 11 Coupling Attenuation ....................................................................................................... 29
Table 12 Screening Attenuation...................................................................................................... 29
Table 13 Unbalanced Attenuation................................................................................................... 30
Table 14 Alien Cable Bundle Crosstalk.......................................................................................... 31
Table 15 STQ Inter-Pair Crosstalk ................................................................................................. 32
Table 16 STQ Inter-Pair Skew........................................................................................................ 32
Table 17 End Node Insertion Loss ................................................................................................. 34
Table 18 End Node Return Loss ..................................................................................................... 35
Table 19 Receiver ANEXT ............................................................................................................. 36
Table 20 DC Requirements ............................................................................................................ 38
Table 21 Power Ripple Gain........................................................................................................... 39
Table 22 Power Over Coax (PoC) Component Values ................................................................... 40
Table 23 Power Over Differential Line (PoDL) Component Values .............................................. 41
Table 24 Alien Cable Bundle Upper PSD Limit............................................................................. 45
Table 25 Car Noise PSD Limits ..................................................................................................... 46
Table 26 A-Packet Fields Modified by PHY Layer ........................................................................ 57
Table 27 Sub-Constellation Assignment for Original A-Packets ................................................... 62
Table 28 SCI Code Per Assigned Payload Data Sub-Constellation ............................................... 62
Table 29 A-Packet Fields Modified by PHY Layer ........................................................................ 66
Table 30 Downlink/Reverse-Downlink Max RTS Delay & Retransmission Request Wait ........... 68
Table 31 Nominal Downlink/Reverse-Downlink RTS Delay Unit ................................................ 69
Release History
Date Version Description
1 Introduction
1 This document specifies MIPI A-PHY, a serial interface technology with high bandwidth capabilities
2 developed particularly for long reach (e.g., automotive) applications, enabling low pin count and a high level
3 of power efficiency.
4 A-PHY is designed for a wide range of long reach applications, and specifically for automotive market, to
5 carry multiple protocols from MIPI Alliance such as CSI-2 for cameras, and DSI and DSI-2 for displays.
6 Non-MIPI protocols are also supported using a generic Data Link Layer Interface (APPI).
7 A-PHY features include:
8 • Long reach capability – optimized to support cables up to 15 m with up to 4 inline connectors
9 • Multiple speed gears ranging from 2 Gbps up to 16 Gbps
10 • Support for multiple cable types commonly used in automotive
11 • Strong noise immunity for the harsh automotive environment
12 • Generic Data Link Layer, supporting multiple protocols from MIPI Alliance and external entities
1.1 Scope
1.1.1 In Scope
13 This A-PHY Specification document specifies the implementation of the A-PHY, including its layering,
14 electrical characteristics, and its optional features.
15 The A-PHY specification shall always be used in combination with one or more MIPI protocol specifications,
16 such as CSI-2 or DSI-2, plus the associated MIPI Protocol Adaptation Layer (PAL) specification for each
17 MIPI protocol. The A-PHY specification shall not be used in combination with non-MIPI protocols or non-
18 MIPI adaptation layers, unless expressly authorized by the MIPI Alliance Board of Directors. Any other use
19 of the A-PHY specification is strictly prohibited, unless approved in advance by the MIPI Alliance Board of
20 Directors.
1.1.2 Out of Scope
21 Protocol Adaptation Layers (PALs)
22 A single A-PHY can serve multiple protocols at the same time, and each protocol has its own interface to the
23 Data Link Layer, called a Protocol Adaptation Layer (PAL). PALs are not part of this document.
24 • MIPI Developed PALs: MIPI develops PAL specifications for MIPI protocols such as CSI-2 and
25 DSI-2, and publishes them either in the respective protocol specifications or as separate MIPI PAL
26 specifications. MIPI also develops separate MIPI PAL specifications for certain non-MIPI protocols
27 such as I2C and GPIO. MIPI member companies can obtain adopted MIPI specifications via the
28 member website (https://members.mipi.org/wg/All-Members/home/approved-specs) [MIPI14].
29 • Externally Developed PALs: Development of PALs by any non-MIPI party is strictly prohibited,
30 unless approved in advance by the MIPI Alliance Board of Directors.
31 Specific Channel Configurations
32 Different protocols employing A-PHY technology can have different constraints, which can require the use
33 of different approaches for operation control. Therefore, while this document provides the features to enable
34 stable, optimized Link configuration, it does not mandate specific configurations for specific channels.
1.2 Purpose
35 Long reach devices, and specifically automotive devices, face increasing bandwidth demands for each of
36 their functions, as well as an increase in the number of functions integrated into the system.
37 Addressing this demand requires wide bandwidth, low pin count (serial), highly power-efficient (network)
38 interfaces with sufficient flexibility to be attractive for multiple applications, while employing just a single
39 physical layer technology.
40 A-PHY complements MIPI Alliance’s existing D-PHY and C-PHY interfaces by addressing the long reach
41 automotive channel.
2 Terminology
2.2 Definitions
60 A-Packet: A-PHY packet. The A-PHY packet format is defined in Section 11.2 as a group of bytes organized
61 in a specified way to transfer data through the A-PHY interface. A packet consists of a specified set of
62 components: A-Packet Header, A-Packet Payload, and A-Packet Tail (or Footer). The byte is the fundamental
63 unit of data from which the A-Packet is made.
64 A-PHY Network: System of interconnected A-PHY Ports.
65 C-Port: A-PHY Port over Coax Cable.
66 D-Port: A-PHY Port over SDP Cable.
67 Device: Any product that implements at least one A-PHY Port.
68 Downlink: High throughput communication sent from Source to Sink.
69 Downstream-APPI: The traffic direction from the Adaptation Layer to the A-PHY Data Link Layer.
70 Forwarding: Function assigning A-Packet and its attributes to A-PHY Port destination in a Multi-Port
71 A-PHY Device. See Section 11.5.1.
72 Forwarding Element: An entity that applies a Forwarding function (e.g., an A-PHY Device acting as a
73 Forwarding Element).
74 Lane: Point-to-point, single-ended or differential connection between two Ports using an Interconnect
75 Structure.
76 Link: The logical connection between Source and Sink.
77 Multi-Port A-PHY Device: A-PHY Device that implements more than one single A-PHY Port.
78 Native Message: A standardized message in a given Native Protocol.
79 Native Protocol Adaptation Layer: Layer connecting between the Native protocol and A-PHY.
80 Native Protocol: Protocol that is being transferred over the A-PHY, e.g., CSI.
81 Port: An A-PHY Source or Sink with supporting PCB circuitry and interfacing connector.
82 Primary Clock: The Source’s local reference clock.
83 Note:
84 In previous versions of the A-PHY Specification, a Primary Clock was called a
85 “Master Clock”. MIPI Alliance has deprecated the use of the word “Master” in technical
86 terms, so the A-PHY Specification now uses the updated normative term “Primary Clock”.
87 Please note that the technical definition of the Primary Clock, and its Role in this
88 Specification, are unchanged.
89 Q-Port: A-PHY Port over STQ cable.
90 Reverse Downlink: Q-Port Lane #1 using A-PHY Downlink configuration from Sink to Source.
91 Routing: Part of the Forwarding function that selects destination A-PHY Port for each A-Packet in a
92 Multi-Port A-PHY Device. See Section 11.5.1.
93 RX or Receiver: The Receive function of an A-PHY Port, e.g., Sink Port consists of Downlink RX and
94 Uplink TX.
95 Secondary Clock: The Sink’s locally recovered clock from the Downlink.
96 Note:
97 In previous versions of the A-PHY Specification, a Secondary Clock was called a
98 “Slave Clock” or a "Clock Slave”. MIPI Alliance has deprecated the use of the word “Slave”
99 in technical terms, so the A-PHY Specification now uses the updated normative term
100 “Secondary Clock.” Please note that the technical definition of the Secondary Clock, and its
101 Role in this Specification, are unchanged.
102 Sink: The entity that implements one instance of an A-PHY Link and PHY layers for a Downlink receiver
103 and an Uplink transmitter.
104 Source: The entity that implements one instance of an A-PHY Link and PHY layers for a Downlink
105 transmitter and an Uplink receiver.
106 TX or Transmitter: The transmit function of an A-PHY Port, e.g., Source Port consists of Downlink TX and
107 Uplink RX.
108 Uplink: Low throughput (<500 Mbps) communication sent from Sink to Source.
109 Upstream-APPI: The traffic direction from the A-PHY Data Link Layer to the Adaptation Layer.
2.3 Abbreviations
110 A Ampere (Amp)
111 A-PHY MIPI Alliance A-PHY Interface (this specification)
112 C-PHY MIPI Alliance C-PHY interface [MIPI06]
113 CSI-2 MIPI Alliance Camera Serial Interface 2 [MIPI02]
114 dB Decibel
115 D-PHY MIPI Alliance D-PHY interface [MIPI01]
116 DSI MIPI Alliance Display Serial Interface [MIPI03]
117 DSI-2 MIPI Alliance Display Serial Interface 2 [MIPI04]
118 e.g. For example (Latin: exempli gratia)
119 F Farad (capacitance unit)
120 GHz Gigahertz
121 GND Ground
122 H Henry (induction unit)
123 i.e. That is (Latin: id est)
124 I2C NXP Inter Integrated Circuit interface [NXP01]
125 I3C MIPI Alliance I3C interface [MIPI05]
126 M-PHY MIPI Alliance M-PHY interface [MIPI07]
127 MHz Megahertz
128 MIPI MIPI Alliance, Inc.
129 NAppClk Native Application Clock
130 PHY Physical Layer
2.4 Acronyms
138 Ack Acknowledgement
139 ACMD A-PHY Control and Management Database
140 ACMP A-PHY Control and Management Protocol
141 ACMPI ACMP Interrupt
142 ADC Analog-to-Digital Converter
143 AFE Analog Front End
144 APDLL A-PHY Data Link Layer
145 APPI A-PHY Protocol Interface
146 APPL A-PHY Physical Layer
147 BCI Bulk Current Injection
148 BER Bit Error Rate
149 BIST Built in Self-Test
150 BOM Bill of Materials
151 CAL Re-Constructing Adaptation Layer
152 CFS Clock Forwarding Service
153 CRC Cyclical Redundancy Checking
154 DC Direct Current
155 DCD Duty Cycle Distortion
156 DJ Deterministic Jitter
157 DUT Device Under Test
158 ECU Electronic Control Unit
159 eDP embedded Display Port
160 ENIS End Node Interconnect Structure
161 EMC Electromagnetic Compatibility
162 EMI Electromagnetic Interference
163 EOI End-Of-Idle
164 ESD Electrostatic Discharge
165 GBaud Giga Baud
166 Gbps Gigabit Per Second
167 GPIO General Purpose Input/Output
168 HDMI High Definition Media Interface
169 IEC International Electrotechnical Commission
170 IL Insertion Loss
171 IPG Inter-Packet Gap
172 ISO International Organization for Standardization
173 ISS Inverted Scrambler Symbols
174 JITC Just-In-Time Canceller
175 LSB Least Significant Bit
176 MAL Measuring Adaptation Layer
3 References
231 Note:
232 MIPI Alliance Member companies can access all adopted MIPI Specifications at
233 https://members.mipi.org/wg/All-Members/home/approved-specs
234 [MIPI01] Specification for D-PHYSM, version 2.1 and above, MIPI Alliance, Inc.
235 [MIPI02] Specification for Camera Serial Interface 2 (CSI-2®), version 2.1 and above,
236 MIPI Alliance, Inc.
237 [MIPI03] Specification for Display Serial Interface (DSI®), version 1.3.1 and above,
238 MIPI Alliance, Inc.
239 [MIPI04] Specification for Display Serial Interface 2 (DSI-2SM), version 1.1 and above,
240 MIPI Alliance, Inc.
241 [MIPI05] Specification for Improved Inter Integrated Circuit (I3C®), version 1.1.1 and above,
242 MIPI Alliance, Inc.
243 [MIPI06] Specification for C-PHYSM, version 2.0 and above, MIPI Alliance, Inc.
244 [MIPI07] Specification for M-PHY®, version 4.1 and above, MIPI Alliance, Inc.
245 [MIPI08] MIPI Alliance, Inc., “MIPI Alliance Manufacturer ID Page”, https://mid.mipi.org,
246 last accessed 24 May 2023.
247 [MIPI09] MIPI A-PHY Protocol Adaptation Layer Specification for CSI-2 (MIPI PAL/CSI-2SM),
248 version 1.0 and above, MIPI Alliance, Inc.
249 [MIPI10] Specification for Camera Service Extensions (CSESM), version 1.0 and above,
250 MIPI Alliance, Inc.
251 [MIPI11] MIPI A-PHY Protocol Adaptation Layer Specification for I2C (MIPI PAL/I2C),
252 version 1.0 and above, MIPI Alliance, Inc.
253 [MIPI12] MIPI A-PHY Protocol Adaptation Layer Specification for GPIO (MIPI PAL/GPIO),
254 version 1.0 and above, MIPI Alliance, Inc.
255 [MIPI13] MIPI Alliance, Inc., “MIPI A-PHY Adaptation Type Values”, https://www.mipi.org/aphy-
256 adaptation-type-values, last accessed 24 May 2023.
257 [MIPI14] MIPI Alliance, Inc., “Board Approved Specifications”, https://members.mipi.org/wg/All-
258 Members/home/approved-specs, last accessed 24 May 2023.
259 [NXP01] UM10204, I2C Bus Specification and User Manual, Rev. 7 and above, NXP Corporation.
4 Overview
260 A-PHY addresses the need to move asymmetric, high-throughput data of sensors (e.g., Camera, Lidar, Radar,
261 and others) and display devices located around a vehicle to and from the system CPU over high speed links
262 with optimal wiring, cost, and weight. A-PHY can also be applied to many other non-automotive use cases.
263 A-PHY provides a main uni-directional data stream, and a bi-directional low-throughput command and
264 control data stream, and can optionally also deliver the required power supply to peripheral units (i.e., the
265 sensors and/or displays at the edge of the network) directly via the A-PHY data lines.
266 Figure 1 illustrates the logical structure of the expected Link for sensors or displays. Note that high speed
267 data, control data, and the optional power supply all share the same physical wiring.
Power Power
269 As Figure 2 illustrates, A-PHY includes a generic Data Link Layer that supports a range of Protocol
270 Adaptation Layers for carriage of existing protocols both from MIPI (such as CSI-2 and I3C) and from other
271 sources (such as I2C).
Native Protocol Adaptation Layer
Native Protocol
(APDLL)
(APDLL)
(NPAL)
(NPAL)
(APPL)
(APPL)
(NP)
(NP)
Cable
5 Architecture
Native Protocol
APPI
RTS RTS
PCS PCS
PMD PMD
5.2.3 Q-Port
308 A Q-Port is a “star quad” (i.e., four conductors arranged as two differential pairs) port, using 100 Ω HSD
309 connectors and Star Quad (STQ) cables, as illustrated in Figure 4.
310 For a Q-Port Downlink:
311 • Pair #0 and Pair #1 “identities” shall be selected by the Source port
312 • The Sink port shall resolve potential inter-pair swap to match the selection made by the Source
313 • Resolved Pair #x is denoted as [Port #x]
314 Example: [Pair #0] for the Sink is the Pair that the Source identifies as Pair #0
315
Figure 4 Star Quad Arrangement of Quad Conductors into Two Differential Pairs
316 • Q-Ports shall have the following operation modes (also summarized in Table 1):
317 • Dual Lane Downlink, Highly Asymmetric mode:
318 • Downlink shall be sent over both Pair #0 and Pair #1
319 • Uplink shall be sent only over Sink’s Pair #0
320 • Asymmetric mode:
321 • Downlink shall be sent only over Source Pair #0
322 • A lower rate Reverse Downlink shall be sent only over the Sink-resolved [Pair #1]
323 • (Uplink is not used in this mode)
324 • Symmetric mode:
325 • Downlink shall be sent only over Source Pair #0
326 • An equal rate Reverse Downlink shall be sent only over the Sink-resolved [Pair #1]
327 • (Uplink is not used in this mode)
328 • Single Lane Q-Fallback Highly Asymmetric mode:
329 • Downlink shall be sent only over Source Pair #0
330 • Uplink shall be sent only over the Sink-resolved [Pair #0]
5.2.4 Gears
5.2.4.1 Normative Downlink and Reverse Downlink Gears
339 A-PHY defines 5 discrete Gears for raw data rates for per-Lane Downlink and Reverse Downlink: G1, G2,
340 G3, G4, and G5 (see Table 2).
341 A-PHY Downlink and Reverse Downlink shall operate at the defined per-Lane data rates shown in Table 2.
342 Reverse Downlink shall be implemented only over a single Lane (i.e., a single Symbol Rate and base
343 Modulation are specified).
344 An A-PHY Device supporting Gear N (i.e., N could be 1–5) shall support all mandatory lower gears per Table
345 2.
346 Table 2 Per Lane Normative Downlink / Reverse Downlink Gears
G1
NRZ-8B/10B 2 1.5
2 Gbps
G2
NRZ-8B/10B 4 3
4 Gbps
G3
PAM4 4 7.2
8 Gbps
G4
PAM8 4 10.8
12 Gbps
G5
PAM16 4 14.4
16 Gbps
347 Note:
348 Max Net Application Data Rate is Computed by reducing from the Raw Rate the combined overheads
349 associated with A-Packet framing, PCS line coding and the pacing done towards the line.
G1
PAM4 1 1.8
2 Gbps
G2
PAM4 2 3.6
4 Gbps
G3
NRZ-8B/10B 8 6
8 Gbps
354 Note:
355 G3 NRZ-8B/10B shall be used only over C/D-Port (i.e. G3 NRZ-8B/10B shall not be used for Reverse
356 Downlink
U1
NRZ-8B/10B 100 54
100 Mbps
U2
PAM4-8B/10B 100 125
200 Mbps
16 G3 8 2 14.4
24 G4 12 2 21.6
32 G5 16 2 28.8
8 G3 8 1 7.2
12 G4 12 1 10.8
16 G5 16 1 14.4
2 G1 2 1 1.5
4 G2 4 1 3
Same Gear is Used for Downlink (Pair #0) and Reverse Downlink (Pair #1)
8 G3 8 1 7.2
12 G4 12 1 10.8
16 G5 16 1 14.4
8 G3 8 1 7.2
12 G4 12 1 10.8
16 G5 16 1 14.4
Q-Fallback
Asymmetric Asymmetric Asymmetric
Highly Asymmetric
Q-Fallback Highly
Symmetric Asymmetric Symmetric
Asymmetric
5.3 Profiles
370 A-PHY supports two profiles to better fit the technical attributes and cost structure of the different automotive
371 market segments.
372 • Profile 1 (P1) is aimed at lower Downlink speeds and lower complexity implementations, with
373 channel attributes and design characteristics enabling lower cost implementations.
374 P1 is based on NRZ 8B/10B technology.
375 • For C-Port/D-Port implementation, P1 is Normative for G1 and G2, and it is Normative-Optional
376 for G3.
377 • P1 shall not be implemented in a Q-Port.
378 • P1 shall provide a Packet Error Rate (PER) of less than 10 -9 under the noise conditions described
379 in Section 7.
380 • Profile 2 (P2) is aimed at solutions requiring superior noise immunity and higher Downlink speeds;
381 it also has a better bandwidth utilization (i.e. net data rate per gear).
382 P2 is based on dynamic PAM scheme, local PHY level retransmission, and noise cancellers.
383 • P2 shall utilize Retransmission (RTS) for all of its Downlink / Reverse Downlink / Uplink
384 Implementations.
385 • For C-Port/D-Port implementation, P2 is Normative for all Gears above G2, while it is Normative-
386 Optional for G1 and G2 using their Normative base modulation of NRZ-8B/10B.
387 • P2 defines an additional optional modulation when operating in G1 and G2. The modulation
388 scheme used for P2 in G1 and G2 shall be selected according to the pre-configured value in the
389 configuration registers (see Section 12.2). An A-PHY Device that supports such optional
390 capability shall support P2 on both modulation schemes for G1 and G2 (NRZ-8B/10B and PAM4).
391 • P2 shall provide a Packet Error Rate (PER) of less than 10-19 under the noise conditions described
392 in Section 7. For G1 and G2, it will provide a PER of less than 10 -18.
393 P1 has lower noise immunity requirements than P2, as detailed in Section 7.
394 P1 and P2 are interoperable at G1 and G2.
395 The Data Link Layer, as described in Section 11, is common for both profiles.
5.4 Safety
396 Functional safety according to ISO 26262 [ISO01] includes the following measures, given a system-level
397 safety goal and allocated ASIL:
398 • Control and avoidance of systematic failures → Ensured through Robust development process
399 • Control of random hardware failures → Ensured through robust design including mechanisms to
400 detect random HW failures, when they occur.
401 A-PHY packets are end-to-end protected as recommended in ISO-26262:2018:
402 • CRC-32 for each packet, providing a Hamming-Distance of more than 3.
403 • Message Counter that is 8 bits wide.
404 • Timeout monitoring is fulfilled by the Keep-Alive function (see Section 11.3.2)
405 The above measures are necessary to argue a high diagnostic coverage for a communication bus, per
406 Table D.6 in ISO 26262-5:2018.
407 All other functional safety features necessary in order to fulfil the required system-level safety goal with
408 ASIL are expected to be managed by upper layers.
6 Interconnect
409 The interconnect between an A-PHY Source and an A-PHY Sink carries the high-speed uni-directional data
410 stream, the low-speed bi-directional command and control data and optionally the power supply to an end
411 unit, e.g., an automotive surround sensor. The interconnect can be optimized for reliability, cost, or weight.
412 A-PHY is defined for two cable topologies consisting of potentially multi wire segments of either unbalanced
413 coax cables or balanced cables like a Shielded Twisted Pair (STP) or a Shielded Parallel Pair (SPP). The
414 characteristics of these interconnects are defined within this section. Other cable topologies are outside the
415 scope of this document though they can work as well. The total interconnect may include cable segments,
416 inline connectors, PCB mating connectors, PCB traces along with any related vias, as well as coupling
417 capacitors at both End Nodes.
418 A representative A-PHY interconnect is illustrated in Figure 5. The Power Sourcing Equipment (PSE) and
419 Powered Device (PD) blocks are optional, they can be used in systems employing either balanced or
420 unbalanced interconnects. While Figure 5 shows separated grounds for the End Nodes, there are also
421 common ground use cases to avoid ground loop challenges. Sensor modules may thus have a shared ground
422 with the ECU.
GND1 GND2
GND1 GND2
End Node End Node
423
Figure 5 A-PHY Interconnect
Coax Topology
Conn.
Conn.
Conn.
15 m
SDP Topology
Conn.
Conn.
Conn.
Conn.
Sensor/Display ECU
End Node End Node
10 m
Conn. Inline Connectors
Legend
PCB Mating Connectors
446
Figure 6 Cable Topologies
461
Figure 7 Set-up for S-parameter Characterization of End Nodes and TLIS
462 A differential End Node should interface a balanced TLIS through a two-pin connector or two pins in a multi-
463 Port connector.
464 A single-ended End Node should interface an unbalanced TLIS through a one pin connector or one pin in a
465 multi-Port connector.
466 The syntax of S-parameters is:
467 S[measured-mode][driven-mode][measured-port][driven-port]
468 Where:
469 In [measured-mode] and [driven-mode]: d is for differential, c is for common-mode, and blank is for
470 single-ended
471 And [measured-port] and [driven-port] are both port numbers
472 Examples:
473 • Sdd21 is the differential signal at Port 2 due to a differential signal driven at Port 1
474 • Sdc22 is the measured differential reflected signal at Port 2 due to a common-mode signal driven at
475 Port 2
476 • S11 is the measured single-ended reflected signal at Port 1 due to a single-ended signal driven at
477 Port 1
Interconnect
TPA TPB
TP3 TP2 TP1 TP4 TP5 TP6
Conn. Inline Connectors
Legend
PCB Mating Connectors
489
Figure 8 Interconnect Test Points Definition
490 The S-parameter characteristics for the Cable TLIS and End Nodes are measured at TPA and TPB. The total
491 interconnect is defined between TP3 and TP6 which identify the signal pins of the A-PHY transceiver chips.
492 PCB circuitry and routing at the End Nodes is delimited by TP2-TP3 and TP5-TP6 with ENIS including the
493 additional mating connectors thus TPA-TP3 and TPB-TP6.
494 Some implementations may use PCB routing only for the interconnect. A PCB TLIS is defined in
495 Section 6.6.4, which replaces all the elements between TP2 and TP5. The overall PCB routing includes
496 contributions from ENIS and PCB TLIS.
6.6.1 Total Interconnect
497 Total interconnect includes two ENIS portions and a Cable TLIS or PCB TLIS whose characteristics are
498 defined in the following sub-sections.
499 The flight time TFLIGHT for signals across the total interconnect shall not exceed 100 ns.
516
Figure 9 Coax and SDP/STQ Cable Insertion Loss Limits
Return Loss
Frequency (dB)
(MHz)
Maximum IL Half IL
5 < f ≤ 500 ≥ 17 ≥ 17
3200 < f ≤ 4500 ≥ 11.5 − ((f−3200) / (4500−3200)) * 6.5 ≥ 8.5 − ((f−3200) / (4500−3200)) * 4.5
526 The Cable RL limits are graphically shown in Figure 10 as Sddii or Sii limit lines.
0.00
-2.00
-4.00
-6.00
Sddii, Sii (dB)
-8.00
-10.00
-12.00
-14.00
-16.00
-18.00
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6000
Frequency (MHz)
Max IL Half IL
527
Figure 10 Cable TLIS Return Loss Limits
Coupling Attenuation
Unbalanced
Attenuation
Attenuation
Screening
Attenuation
Screening
Attenuation
Coax SDP
534
Figure 11 Cable TLIS Coupling Attenuation
535 The Coupling Attenuation shall exceed or at a minimum equal the limits shown in Table 11.
536 Table 11 Coupling Attenuation
Frequency Coupling Attenuation
(MHz) (dB)
30 < f ≤ 4000 60
4000 < f ≤ 6000 50
537 The Screening Attenuation shall exceed, or at a minimum equal, the limits shown in Table 12.
538 Table 12 Screening Attenuation
Frequency Screening Attenuation
(MHz) (dB)
f ≤ 6000 45
539 The Unbalanced Attenuation shall exceed, or at a minimum equal, the limits shown in Table 13.
540 Table 13 Unbalanced Attenuation
Frequency Unbalanced Attenuation
(MHz) (dB)
30 < f ≤ 1265 15
1265 < f ≤ 4000 15 – 20 * log10( f/1265 )
4000 < f ≤ 6000 5
541 The Cable TLIS Attenuation limit lines are graphically shown in Figure 12.
60
50
40
Attenuation (dB)
30
20
10
0
10 100 1000 10000
Frequency (MHz)
Unbalanced Attenuation Screening Attenuation Coupling Attenuation
542
Figure 12 Cable TLIS Attenuation Limits
543 Coax and SDP/STQ cables shall comply with the limits shown in Table 11. SDP/STQ cables shall
544 additionally comply with the limits shown in Table 12 and Table 13.
∑𝑁 𝑃(𝑓)𝐵𝑈𝑁𝐷𝐿𝐸𝑋𝑇𝐴𝐿𝐾 ,𝑁
𝑉𝐼𝐶𝑇𝐼𝑀
552 𝑃𝑆𝐶𝑅_𝐵𝑈𝑁𝐷𝐿𝐸(𝑓) = 10 × 𝑙𝑜𝑔10 ( ) (𝑑𝐵)
𝑃(𝑓)𝐴𝐺𝐺𝑅𝐸𝑆𝑆𝑂𝑅
553 where P(f)BUNDLE_XTALK_VICTIM,N represents the power coupled into the A-PHY victim receiver from aggressor
554 N in the presence of the P(f)AGGRESSOR aggressor power.
555 The Alien Cable Bundle Crosstalk should meet the limits shown in Table 14.
556 Table 14 Alien Cable Bundle Crosstalk
Frequency PSCR_BUNDLE
(MHz) (dB)
0 < f ≤ 500 −75
500 < f ≤ 6000 −125.434 + 18.686 * log10(f)
557 The Alien Cable Bundle Crosstalk limit line is graphically shown in Figure 13.
-50
-55
-60
PSCR_BUNDLE (dB)
-65
-70
-75
-80
1 10 100 1000
Frequency (MHz)
558
Figure 13 Alien Cable Bundle Crosstalk Limit
-18
-20
STQ Inter-Pair Crosstalk (dB)
-22
-24
-26
-28
-30
0 500 1000 1500 2000 2500 3000
Frequency (MHz)
562
Figure 14 STQ Inter-Pair Crosstalk Limit
End Node
PD,
PSE
Dp Z0
TLIS (Coax)
A-PHY Z0'
Dn
Z0
574
Figure 15 Single-Ended End Node Routing Example
578 The End Node Insertion Loss limit is graphically shown in Figure 16 as an Sddij or Sij limit line, where i ≠ j.
579
Figure 16 End Node Insertion Loss Limit
100 ≤ f < 2750 18 – 11.11 * log10( f/100 ) 600 ≤ f < 2390 18 – 20 * log10( f/600 )
585 The End Node Return Loss limits are graphically shown in Figure 17 as Sddii or Sii limit lines.
586
Figure 17 End Node Return Loss Limits
605 The Receiver Alien Near End Crosstalk limit line is graphically shown in Figure 18.
-30
-35
PSCR_PCB (dB)
-40
-45
-50
-55
1 10 100 1000 10000
Frequency (MHz)
606
Figure 18 Receiver ANEXT Limit
A-PHY Z0
A-PHY
Source Sink
PCB TLIS
613
Figure 19 PCB-Based Interconnect
6.6.5.2 AC Requirements
632 Due to switching activity of powered devices and inherent noise in other elements of the power feed, the
633 power signal will exhibit a multi-tone noise profile. A Composite Power Ripple voltage is obtained at the
634 output of a filter with gain function as per Table 21.
635 Table 21 Power Ripple Gain
f ≤ 0.01 −20
0.1 < f ≤ 4 0
636 The Power Ripple gain function is graphically shown in Figure 20.
50
40
30
20
Gain (dB)
10
-10
-20
-30
0.01 0.1 1 10 100 1000 10000
Frequency (MHz)
638 To avoid interfering with the normal operation of the A-PHY Link, the Composite Power Ripple voltage shall
639 not exceed a peak-peak value of 100 mVpp.
C C
Dp Dp
A-PHY
TLIS (Coax)
A-PHY
Source Z0 R R Z0
Dn Dn Sink
644 Both End Nodes may share the same ground reference however, due to return currents and non-negligible
645 Coax shield resistance, different ground potentials are experienced by the A-PHY transceivers. The maximum
646 Ground Voltage Offset is defined in Section 6.6.6.
647 Table 22 Power Over Coax (PoC) Component Values
Component Min Typ Max Comment
R – 50 Ω – Load balancing on Dn line.
AC coupling capacitors. C/2 is the equivalent of the
C 10 nF – 100 nF
two C capacitors in series on Dp line.
Ideal inductor is shown in the diagram. Actual
circuit may be more complex and include inductors,
L 10 µH – 100 µH
ferrite beads and parallel resistors to comply with
End Node return loss limits.
648 The tolerance of the different parameters shall be such that ENIS limits in Section 6.6.3 can be met.
GND1 C C GND2
GND 1 GND2
652
Figure 22 Power Over Differential Line (PoDL) Configuration
653 Both End Nodes may share the same ground reference however, due to return currents and non-negligible
654 SDP shield resistance, different ground potentials are experienced by the A-PHY transceivers. The maximum
655 Ground Voltage Offset is defined in Section 6.6.6.
656 Table 23 Power Over Differential Line (PoDL) Component Values
Component Min Typ Max Comment
C 10 nF – 100 nF AC coupling capacitors.
Ideal inductor is shown in the diagram. Actual circuit
may be more complex and include inductors, ferrite
L 10 µH – 100 µH
beads and parallel resistors to comply with End
Node return loss limits.
657 The tolerance of the different parameters shall be such that ENIS limits in Section 6.6.3 can be met.
6.6.6 Ground Voltage Offset
658 The Ground Voltage Offset VGNDOFF is defined as the voltage difference of the ground potentials of the End
659 Nodes in an A-PHY Link (i.e., GND1 and GND2 in Figure 21 and Figure 22). A-PHY End Nodes shall be
660 fully operational for VGNDOFF within and including the limits of ±1.0 V.
7.1 RF Ingress
667 RF Ingress is the radiated electromagnetic immunity model based on the ALSE method (ISO 11452-2
668 [ISO03]), using multiple modulation schemes (i.e., CW, AM, PM; see Figure 23) testing instant attacks over
669 15 m cable.
Continuous Wave
(CW)
Pulse
Modulation
Amplitude
Modulation
670
Figure 23 Examples of Applicable Pulses
671 A-PHY shall support two RF Ingress noise limits, inserted at TPA/TPB on the data line, one per profile:
672 • Profile 1: 5 mV Peak up to 6 GHz, scaled up according to the per-frequency ENIS Insertion Loss
673 (IL) as specified in Section 6.6.3.2
674 • Profile 2: 40 mV Peak up to 6 GHz, scaled up according to the per-frequency ENIS Insertion Loss
675 (IL) as specified in Section 6.6.3.2
nS
689
Figure 24 P2 Decaying Sawtooth Model at 40 MHz / 4 nS Tr / 150 mV to 15 mV in 150 nS
693
Figure 25 Alien Bundle PSD Limit Line
Frequency PSD
(MHz) (dBm / Hz)
f ≤ 10 −130
8 PHY Layer
8.1 Architecture
8.1.1 High Level Structure
696 The A-PHY has unified architecture to support both Profile 1 (P1) and Profile 2 (P2).
8.1.1.1 Single-Lane Highly Asymmetric
RTS RTS
698 • For G1–G5 Uplink, both the P1 Port and the P2 Port use the same 8B/10B PCS, and the Uplink
699 PMD
700 • For G1 & G2 Downlink, both the P1 Port and the P2 Port (when PORT_CONFIG.GL3P2OPT=0)
701 use the same 8B/10B PCS, and the NRZ PMD
702 • For G1–G3, the P1 Port implements RTS-Bypass
703 • For G1–G5, the P2 Port implements RTS
704 The RTS Sub-Layer handles the PHY related fields of the A-Packet and specifies the retransmission process
705 for A-Packets that are erroneous or that are not received (see Section 8.2).
706 The Physical Coding Sub-Layer (PCS) specifies the conversion of Data Link Layer A-Packets into PHY
707 Symbols. For P2, PCS also handles the JITC Re-Training (see Section 8.3).
708 The PMD Sub-Layer defines the electrical specifications and the physical medium (see Section 9).
RTS RTS
Link Layer
Link Layer
RTS RTS
712
RTS RTS
PAM-X PCS 8B10B PCS PAM-X PCS PAM-X PCS 8B10B PCS PAM-X PCS
715
Source Sink
RTS Bypass RTS Bypass RTS Bypass RTS Bypass
InTrain/InIdle/ InTrain/InIdle/
Byte Stream Controller InNormal Byte Stream Controller Byte Stream Controller InNormal Byte Stream Controller
[Local / Remote] [Local / Remote]
data/control byte data/control byte data/control byte data/control byte
B[7:0] B[7:0] B[7:0] B[7:0]
K-Reflection
8b10b encoder 8b10b Decoder 8b10b decoder 8b10b encoder
736
Figure 30 A-PHY P1 G1/G2 Architecture
Source Sink
Ret. Ret.
Ret. Req Req
Ret.
Requests Requests Ret.
Ret.
Local Request Req Remote Request Req
RTS Ret. Remote Request Manager RTS RTS Ret.
Local Request Generator RTS
Generator Generator
Ack Ack
Encapsulation Uplink Request Extraction Decapsulation Decapsulation Uplink Request Insertion Encapsulation
InTrain/InIdle/ InTrain/InIdle/
Byte Stream Controller InNormal Byte Stream Controller Byte Stream Controller InNormal Byte Stream Controller
[Local / Remote] [Local / Remote]
data/control byte data/control byte data/control byte data/control byte
B[7:0] B[7:0] B[7:0] B[7:0]
K-Reflection
8b10b encoder 8b10b Decoder 8b10b decoder 8b10b encoder
743
Figure 31 A-PHY P2 G1/G2 Architecture
Source Ret.
Requests Sink Ret.
Requests
Re-Train Packet to Token sCxx_Header Uplink PMD s Re-Train Token to Packet sCxx_Header Downlink PMD s
Reception Quality Reception Quality
Token Type
Token Type
Token Data
Token Data
IDLE/ISS
Downlink PMD s
Token Data
B[7:0] B[7:0]
IDLE/ISS IDLE/ISS
Mode Mode
Descrambler Scrambler
S[7:0] S[7:0]
Normal_EN K-Sequence Enable
Detected K-Sequences
Control Mark Control Mark
Training_EN
Training_EN
CM CM
Token Type Token Data (TD) Token Type Token Data (TD)
Scrambled data/control byte Scrambled data/control byte
• sC16/8/4/2 When type is IDLE/ISS/EOI, SB[7:0] • sC16/8/4/2 When type is IDLE/ISS/EOI, SB[7:0]
• IDLE/ISS/EOI Data is ignored... • IDLE/ISS/EOI Data is ignored...
Scrambler Descrambler
K-Reflection
8b10b Decoder 8b10b Encoder
Lane 0 Lane 0
Scrambled Scrambled
10b symbol 10b symbol
sCxx bits for one sCxx bits for one
symbol symbol
752
Figure 32 A-PHY P2 G3-G5 Single Lane Architecture
753 For C-Ports and C-Ports supporting G3-G5, PAM-X PCS/PMD shall be implemented. 8B/10B PCS/NRZ-PMD shall also be implemented on the Downlink
754 direction, in order to support interoperability at G1/G2.
755 The P2 PAM-X architecture is applied to G3-G5 and to G1-G2 when the PAM4 option is selected for those Gears.
Retransmission REQ
Local Retransmission REQ
Remote
Retransmission REQ Retransmission REQ
Request Request
Manager Manager
A-Packet
Retransmission ACK Retransmission REQ Retransmission ACK
sCMax TX Remote RX RX Local TX
Retransmission ACK
RTS Request RTS RTS Request RTS
Manager Manager
A-Packet
sCMax/2_EN
Re-Train REQ RE-TRAIN ACTIVE
Request sCMax REQ Re-Train Request Re-Train REQ (DRU) Re-Train Re-Train REQ (DRU)
Insertion IDLE/ISS Manager Extraction sCMax REQ (DRU) Manager sCMax REQ (DRU)
RE-TRAIN ACTIVE
A-Packet
A-Packet
A-Packet A-Packet
Retransmission REQ
Retransmission ACK
SCxx Uplink PMD s SCxx Downlink PMD s
Packet To Token Packet To Token
Header Reception Quality Header Reception Quality
Re-Train REQ
sCMax REQ
Token Data
Token Type
InTrain/InIdle/
Uplink Request Extraction Decapsulation Uplink Request Insertion Encapsulation
InNormal
IDLE/ISS
Link Link
BYTE Stream Controller BYTE Stream Controller
StartUp StartUp DHA
IDLE/ISS
MODE InTrain/InIdle/ MODE
Data/Control
InNormal / DHA
Data/Control
Token Type
Token Type
Token Data
Token Data
Byte/s
Byte/s
[Local / Remote]
K-Sequence Detected
K-Sequence Detected
Control Mark CM
Control Mark CM
Scrambled data/
Token Type
Token Type
Token Type
Token Data
Token Data
control byte/s
Scrambled data/
TRAINING_EN
TRAINING_EN
SCxx
SCxx
SCxx
SCxx
Scrambled
Scrambled bits for one
bits for one 10b symbol/s symbol
symbol
10b Symbol/S
Bits to Bits to NRZ/PAM4 to Symbol to Symbol to
to NRZ/PAM4
Symbol Symbol 10b Symbol/s Bit Bit
764
Figure 33 A-PHY P2 G3-G5 Dual Lane Downlink Highly Asymmetric Architecture
765 For Q-Ports supporting G3-G5, Dual Lane Downlink Highly Asymmetric, a Dual Lane PAM-X PCS/PMD shall be implemented.
766 Note:
767 [Pair #x] indicates that the Sink/Source side shall resolve inter-pair swap, if it exists.
Retransmission REQ
A-Packet
Retransmission ACK Retransmission REQ Retransmission REQ Retransmission REQ
sCMax TX Remote RX RX Local TX
Retransmission ACK Retransmission ACK Retransmission ACK
RTS Request RTS RTS Request RTS
Manager Manager
A-Packet
sCMax/2_EN
A-Packet A-Packet A-Packet
Request Re-Train sCMax REQ Request Request Re-Train Re-Train REQ Request
Insertion IDLE/ISS Manager Re-Train REQ
Extraction Extraction Manager sCMax REQ Insertion
RE-TRAIN ACTIVE
A-Packet A-Packet
A-Packet
Reverse Downlink
A-Packet
SCxx SCxx Downlink PMD s
Header
Packet To Token PMD s
Header
Packet To Token Reception Quality
Reception Quality
Token Data
Token Type
InTrain/InIdle/
Decapsulation Encapsulation
InNormal
IDLE/ISS
Link BYTE Stream Controller Link
BYTE Stream Controller
StartUp StartUp DHA
Data/Control
InNormal / DHA
Data/Control
IDLE/ISS
Token Type
Token Type
Token Data
Token Data
Byte/s
Byte/s
[Local / Remote]
K-Sequence Detected
K-Sequence Detected
Control Mark CM
Control Mark CM
Scrambled data/
Token Type
Token Type
Token Type
Token Data
Token Data
control byte/s
Scrambled data/
TRAINING_EN
TRAINING_EN
Scrambled Scrambled
SCxx
bits for one bits for one
symbol 10b symbol/s symbol
10b Symbol/S
Bits to NRZ/PAM4 to Symbol to
to NRZ/PAM4
Symbol 10b Symbol/s Bit
777
Figure 34 A-PHY G3–G5 A-Symmetric Q-Port Architecture
Token Data
Token Data
Token Type
Token Type
Link IDLE/ISS IDLE/ISS Link
StartUp StartUp IDLE/ISS
MODE MODE
IDLE/ISS
Token Type
Token Type
Token Type
Token Type
Token Data
Token Data
Token Data
Token Type
Token Type
Token Type
Token Type
Token Type
Token Data
Token Data
Token Data
Token Data
SCxx
Scrambled Scrambled Scrambled Scrambled
SCxx
SCxx
bits for one bits for one bits for one bits for one
symbol symbol symbol symbol
787
Figure 35 A-PHY G3–G5 Symmetric Q-Port Architecture
8.2 RTS
800 An A-PHY Profile 2 PHY Port utilizes a Dynamically modulated, Time Bounded, Local Retransmission
801 mechanism (RTS). See Figure 36.
802 The RTS is:
803 • Dynamically Modulated: When sent over PAM-X, retransmitted packets utilize a better error
804 resistant payload sub-Constellation than the originally transmitted packets.
805 • Time Bounded: Retransmission is attempted as long as the total ‘Overall Delay’ that an A-Packet
806 suffers at the A-PHY transmitter, over the interconnect and at the A-PHY receiver, is limited
807 (see Section 8.2.4).
808 • Local: The RTS mechanism is local to a single-hop A-PHY, such that the Link Layer is not aware of
809 it.
Overall Delay
RX Delay
TX Delay
RTS RTS
814 The RTS operates over both the 8B/10B PCS (block diagram in Figure 37) and the PAM-X PCS (block
815 diagram in Figure 38).
Link Layer
Original
Ready
A-Packet
Pacer TX RTS
at 97.5%
MC Original
Ready A-Packet
Retransmitted Original
A-Packet A-Packet
Scheduler
A-Packet
Update
TX Delay Field
A-Packet
Update Header
CRC and CRC-32
A-Packet
8b10b
PCS
816
Figure 37 TX RTS Over 8B/10B PCS Block Diagram
Link Layer
Original
Ready
A-Packet
Pacer TX RTS
At 96%
MC Original
Ready A-Packet
Ack Active MC
Window Handler
Original
A-Packet
Retransmitted Original
A-Packet A-Packet
Request
Generator
Request for Uplink
Retransmission
(G4/5 Only) Scheduler
A-Packet
A-Packet
Update Header
CRC and CRC-32
A-Packet
PAM-X
PCS
817
Figure 38 TX RTS Over PAM-X PCS Block Diagram
False sC1616
0
sC1616 True sC816
– 1 sC816
False sC816
0
sC816 True sC416
– 1 sC416
False sC416
0
sC416 True sC216
– 1 sC216
sC216 – – sC216
875 For Retransmitted A-Packets the RTS shall assign the sCMax/2 sub-Constellation.
876 For both Original and Retransmitted A-Packets, the RTS shall assign the sub-Constellation, just before
877 handing the A-Packet to the TX PCS (to properly take into account the current sCMax/2_EN indication),
878 using the SCI encoding shown in Table 28.
879 Table 28 SCI Code Per Assigned Payload Data Sub-Constellation
Assigned sC SCI[1:0]
sC1616 00
sC816 01
sC416 10
sC216 11
880 The Downlink Receiver shall discard good Header CRC-8 A-Packets with SCI code indicating sC216 on a
881 Link which uses sC416 as its header sub-constellation.
882 The Downlink Receiver shall decode all other, good Header CRC-8, A-Packets payload and CRC-32 tokens,
883 solely according to their Header’s SCI code (Note that this means that the Downlink Receiver shall properly
884 decode a good CRC, sC416 payload A-Packet on a Link with sCMax = sC1616).
Informative Note
940 Ack Indications may be needed in cases where large bursts of short Downlink A-Packets can consume more
941 than 128 MCs within a single ‘Max RTS Delay’ period. In such situations the transmitter cannot continue to
942 send A-Packets until either MCs are released by Ack indications sent by the Sink, or the ‘Max RTS Delay’
943 period passes. For End Node Sink ports, the incoming A-Packet length distribution is determined by the type
944 and the number of Adaptation Layers supported on that End Node. As high-throughput Adaptation Layers
945 such as CSI-2, DSI, and DP use maximum-sized A-Packets (in order to reduce framing overhead and improve
946 Link utilization), a typical End Node Sink would not need to implement Ack Indications. Sink Ports of
947 forwarding elements that are unable to accurately estimate the number of different incoming A-Packet
948 streams should consider implementing Ack Indication with proper FD A-Packet handling, as specified above.
8.2.3.1 Retransmission Request Triggering by the Receiver
949 Upon reception of an A-Packet with good Header CRC-8 and good CRC-32 fields, the Receiver:
950 • Shall store this A-Packet in its RX RTS Buffer associated with ‘this’ MC.
951 • Shall set this MC status to ‘Good’.
952 • If this A-Packet is non-retransmitted (Original) with non-matching MC value and with an ‘Overall
953 Delay’ that is still valid, then it shall generate a Retransmission Gap Request for the missing MC
954 values, with the ‘Last Matched MC’ field in the Request Packet equal to the ‘Last MC’, and with the
955 ‘Post Gap MC’ field equal to ‘this MC’ (see Section 8.2.3.3 and Section 8.3.2.8.4) and shall set the
956 status of each missing MC (all MC values, with wrap around, from ‘Last MC’ + 1 to ‘this MC’ – 1)
957 to ‘Missing’.
958 • If this A-Packet is non-retransmitted (Original), then it shall set ‘Last MC’ to ‘this’ MC.
959 Upon reception of a non-retransmitted (Original) A-Packet with good Header CRC-8, matching MC value
960 (value = ‘Last MC’ + 1 with wrap around), and a bad CRC-32 field, the Receiver:
961 • Shall store this A-Packet in its RX RTS Buffer after setting its ‘Bad’ indication
962 (see Section 11.2.1.2.4).
963 • Shall set this MC status to ‘Bad CRC-32’.
964 • Shall set ‘Last MC’ to the value of ‘this’ MC.
965 • If the A-Packet still has a valid ‘Overall Delay’, then it shall generate a Single Retransmission
966 Request for that MC value (see Section 8.2.3 and Section 8.3.2.8.3).
967 The Receiver shall discard any original A-Packets received with both a bad CRC-32 and non-matching MC.
968 Upon reception of a retransmitted A-Packet with good Header CRC-8, MC value matching a currently ‘Bad
969 CRC-32/Missing’ MC, and a bad CRC-32 field value, the Downlink Receiver:
970 • Shall store this A-Packet in its RX RTS Buffer after setting its ‘Bad’ indication (Section 11.2.1.2.4)
971 • Shall set this MC status to ‘Bad CRC-32’.
972 • If the A-Packet still has a valid ‘Overall Delay’, and if the number of retransmission requests sent for
973 that MC is still below the ‘Max RTS Request Num’, then the Receiver shall generate an additional
974 retransmission request for that MC value (see Section 8.3.2.8.3).
975 The Receiver shall discard any retransmitted A-Packet with bad CRC-32 and any MC status other than ‘Bad
976 CRC-32 /Missing’ MC.
977 Upon detection of an MC with ‘Bad CRC-32/Missing’ status, for which a retransmission request has already
978 been sent, but no retransmitted A-Packet with good CRC-32 has been received yet, after the ‘Retransmission
979 Request Wait’ period, with a still-valid ‘Overall Delay’, and if the number of retransmission requests sent for
980 that MC is still below the ‘Max RTS Request Num’, and if the ‘Retransmission Request Wait’ period has
981 elapsed, then the Receiver shall generate an additional retransmission request for that MC value (see the
982 informative example below).
983 The Receiver shall support a ‘Max RTS Request Num’ value of at least 3.
1003 The Single/Gap Retransmission Requests shall use the A-Header fields settings shown in Table 29.
1004 Table 29 A-Packet Fields Modified by PHY Layer
Link’s PHY3:
Message Counter (MC) [7:0] 0
Message Counter
1005 The Single/Gap Retransmission Requests shall not be sent as part of the Active MCW (as in Section 8.2.2),
1006 as they shall always use MC = 0.
1007 On the Downlink TX RTS they are inserted by the (Local) Request Generator and the Scheduler, directly into
1008 the A-Packet stream after the TX RTS Buffer (see Figure 38), and at the Downlink RX RTS they are extracted
1009 into the Remote Request Manager from the A-Packet stream before the RX RTS Buffer.
1010 These Request A-Packets themselves shall not be re-transmitted at the TX and shall not generate RTS requests
1011 at the RX upon their reception.
1012 A Single/Gap Retransmission Request sent over the Downlink shall be discarded if its CRC-32 value is bad.
1013 The first Payload byte of a Single/Gap Retransmission Request sent over the Downlink shall use the same
1014 Control Byte format as specified for the Uplink requests (see Section 8.3.2.5.2), with CN1 and CN2 encoded
1015 per Table 52.
1016 The Payload of a Single Retransmission Request, sent over the Downlink shall consist of:
1017 • A first Control Byte with Null CN1 and an RRS CN2
1018 • A Data Byte carrying the MC of the requested A-Packet to be re-transmitted over the Uplink
CN1: Null
A-Header [8-Bytes] MC CRC-32 [4-Bytes]
1019
CN2: RRS
Figure 39 Single Retransmission Request Sent Over Downlink
1020 The Payload of a Gap Retransmission Request sent over Downlink, shall consist of:
1021 • A first Control Byte with Null CN1 and a GRS CN2
1022 • A first Data Byte containing MC1, the ‘Last Matched MC’ per Section 8.2.3
1023 • A second Data Byte containing MC2, the ‘Post Gap MC’ per Section 8.2.3
CN1: Null
A-Header [8-Bytes] MC1 MC2 CRC-32 [4-Bytes]
1024
CN2: GRS
Figure 40 Gap Retransmission Request Sent Over Downlink
2 12288 4096
4 12288 4096
8 10240 3413
12 8192 2730
16 6144 2048
1042 Note:
1043 In Dual Downlink mode, "Max RTS Delay" is the same as for 16 Gbps Link throughput.
1044 When RTS is used over the Uplink, ‘Max RTS Delay’ shall be equal to 16 µS and ‘Retransmission Request
1045 Wait’ shall be equal to 5.5 µS.
TX RTS Delay
1055 ⌊RTS Delay Unit⌋ (“floor” operation of the division result when both values are in nS).
1056 Since TX_Delay_Val is written into the header before several lower functions on the way to the actual first
1057 symbol transmission over the Link are executed with their associated delays (i.e., CRC-8/CRC-32
1058 computation, PCS operations, TX path to the AFE, etc.), the ‘TX RTS Delay’ value shall also take into
1059 account the additional fixed delay of these lower functions, based on the implementation.
1060 The transmitter shall not send an A-Packet when its ‘TX RTS Delay’ is equal or larger than ‘Max RTS Delay’.
1061 ‘RTS Delay Unit’ shall be configured to the same value for both Link partners, based on link
1062 Downlink/Reverse-Downlink throughput. Each A-PHY P2 Port shall support the nominal ‘RTS Delay Unit’
1063 values listed in Table 31.
1064 Table 31 Nominal Downlink/Reverse-Downlink RTS Delay Unit
Link Throughput RTS Delay Unit Nominal Max RTS Delay
(Gbps) (nS) (nominal RTS Delay Units)
2 128 96
4 128 96
8 128 80
12 64 128
16 64 96
1065 Note:
1066 In Dual Downlink mode, "RTS Delay Unit" and "Nominal Max RTS Delay" are the same as for
1067 16 Gbps Link throughput.
1068 When RTS is used over the Uplink, ‘RTS Delay Unit’ shall be equal to 128 nS.
A-Header Bit
In
+ S0 + S1 S2 S3 S4 + S5 + S6 S7
1080
Figure 41 Header CRC (CRC-8) Bit Level Diagram
1082 𝐺(𝑥) = 𝑋 8 + 𝑋 6 + 𝑋 5 + 𝑋 + 1
1083 Note:
1084 In the event of any difference in interpretation between the polynomial and the Figure, treat the Figure
1085 as correct.
1086 The CRC-8 states (S0 through S7) shall be zeroed prior to the start of each A-Header CRC-8 calculation.
1087 After the CRC-8 calculation is completed, all states (S0 through S7) shall be stored in the Header CRC field
1088 as shown in Figure 42.
LSB
S7 S6 S5 S4 S3 S2 S1 S0
1089
Header CRC Field Data
Figure 42 Header CRC Bit Assignment
1090 The Receiver shall discard any A-Packet received with a bad (i.e., incorrect) value in the Header CRC-8 field.
1091
1092
1098 𝑃 = 𝑥 32 + 𝑥 26 + 𝑥 23 + 𝑥 22 + 𝑥 16 + 𝑥 12 + 𝑥 11 + 𝑥 10 + 𝑥 8 + 𝑥 7 + 𝑥 5 + 𝑥 4 + 𝑥 2 + 𝑥 + 1
1099 See also the bit-level diagram in Figure 43.
S31 S30 S29 S28 S27 S26 S25 S24 S23 S22 S21 S20 S19 S18 S17 S16
1100
Figure 43 CRC-32 Calculation Bit Level Diagram
1101 The CRC-32 states (S0 through S31) shall be set to one before the CRC calculation starts, per each A-Packet.
1102 After the CRC-32 calculation is completed, all states (S0 through S31) shall be XORed with 1 (i.e., the complete CRC-32 value is XORed with a constant
1103 0xFFFFFFFF value) and then mapped into four bytes as shown in Figure 44.
S31 S30 S29 S28 S27 S26 S25 S24 S23 S22 S21 S20 S19 S18 S17 S16 S15 S14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 S0
8.2.6 Fully Paced A-Packet Stream from TX Data Link Layer to TX RTS
1105 The TX RTS shall fetch A-Packets from the Data Link Layer at a Fully Paced Rate, ensuring that effective
1106 utilization of the Physical Link does not exceed 96%/97.5%/95% for PAM-x/NRZ/Uplink, respectively.
8.2.6.1 Max Net Link Rate for 8B/10B PCS
1107 The A-Packet format defines a maximum payload size of:
1108 • Downlink: 380 bytes
1109 • Uplink: 32 bytes
1110 • Double Rate Uplink (DRU): 76 bytes
1111 When operating over 8B/10B PCS, the additional overhead is:
1112 • 8-Byte A-Header
1113 • 4-Byte A-Tail (CRC-32)
1114 • At least 2 Bytes framing overhead (CM + CB) of 8B/10B PCS
1115 • All bytes are then subject to 8B/10B encoding
1116 P2 uses RTS which requires, over the 8B/10B PCS, at least 2.5% of the Phy Rate to be kept free for RTS. As
1117 a result, a maximum of 97.5% of the Phy Rate can be used for Original A-Packets flow. In order to unify the
1118 net application data rate per Gear for both profiles, P1 also uses the 97.5% pacing.
1119 • For Downlink the 8B/10B PCS Max Net Link Rate (using the maximum size A-Packet payload) is:
8.2.6.4 PAM-X PCS Fully Paced, A-Packets Stream from Link to TX RTS
1153 The TX RTS shall fetch a fully paced A-Packet stream from the TX Data Link, with up to 96% effective
1154 utilization of the Physical Link.
1155 To measure effective utilization, the TX RTS must take into account, for each A-Packet fetched from the Link
1156 into the Phy, its Actual Physical Link consumption in terms of time, based on the A-Payload size in bytes and
1157 the different modulation used to transmit it. This relates to the Link’s sCMax and the A-Packet’s
1158 EResistance_QoS bit value.
1159 Physical Link consumption is measured in terms of Physical Link Byte Periods (BPeriods), where one
1160 BPeriod is defined as the minimal period it takes to transmit one data byte over the physical Link; hence,
1161 8/GearBW[bps].
1162 Example:
1163 For Gear #3, GearBW is 8 Gbps, resulting in a BPeriod of 8/8 Gbps = 1 nS
1164 Actual Byte Period consumption per A-Packet, per Gear at its associated sCMax, shall be calculated per Table
1165 32.
1166 Table 32 Actual Byte Period Consumption Per Gear
1167 A 96% fully paced A-Packet stream means that, for a fully utilized Link, the first Byte of A-Packet ‘N+1’
1168 shall be fetched from the Link Layer to the TX RTS module, after the nominal average spacing period of
1169 (Actual Byte Period Consumption of A-Packet ‘N’) / 0.96 BPeriods has passed since the first Byte of
1170 A-Packet ‘N’ was fetched into the TX RTS (see the informative example below).
1171
Figure 45 Fully Paced TX Link to TX Phy Interface
Link’s PHY1: 2
(Any value)
SCI at PHY1 b1:b0
7
Delay Value at PHY2 00
Link’s PHY2: b6:b0
TX Delay &
Original Indication Original Indication bit 1
1
at PHY2 b7
8
Header CRC See Section 8.2.5.3
b7:b0
8
CRC-32 See Section 8.2.5.4
b7:b0
Link Layer
Ready A-Packet
Pacer TX RTS
at 97.5%
A-Packet
MC Assignment
A-Packet
TX Buffer
A-Packet
Update Header
CRC and CRC-32
A-Packet
8b10b
PCS
1215
Figure 46 RTS Bypass
Re-Train_EN
Remote Request
Manager sCMax/2_EN RTS sCMax
A-Packet
Token Data
Token Type
IDLE/ISS
Link Startup
Token Data
Token Type
IDLE/ISS
A -PHY
PHY Layer
Mode
PCS Layer
Token Stream
Normal_EN
Training_EN
Token Type Token Data (TD)
• sC16/8/4/2 When type is IDLE/ISS/EOI,
• IDLE/ISS/EOI Data is ignored...
Scrambler
Lane 0
Scrambled
sCxx bits for one
symbol
Bits to
Symbol
Symbol Stream
Symbol
PMD
1229
Figure 47 PAM-X Single Lane PCS Block Diagram
Re-Train_EN
Remote Request
Manager sCMax/2_EN RTS sCMax
A-Packet
Token Data
Token Type
IDLE/ISS
Link Startup
Token Data
Token Type
IDLE/ISS
A -PHY
PHY Layer
Mode
PCS Layer
Token Stream
Normal_EN
Training_EN
Token Type Token Data (TD)
• sC16/8/4/2 When type is IDLE/ISS/EOI,
• IDLE/ISS/EOI Data is ignored...
Scrambler
Lane 0 Lane 1
Scrambled Scrambled
Same Same
bits for one bits for one
sCxx sCxx
symbol symbol
Bits to Bits to
Symbol Symbol
Symbol Stream
Symbol
Symbol
PMD PMD
1230
Figure 48 PAM-X Dual Lane PCS Block Diagram
13
11 11 11
7 7
5 5
3 3
-1
-3 -3
-5 -5
-7 -7
-9
-13
4-bit Symbol 3-bit Symbol 2-bit Symbol 1-bit Symbol 1-bit Symbol
0000 15 000 15 00 15 – – 0 15
0001 13 – – – – – – – –
0011 11 001 11 – – 0 11 – –
0010 9 – – – – – – – –
0110 7 011 7 – – – – – –
0111 5 – – 01 5 – – – –
0101 3 010 3 – – – – – –
0100 1 – – – – – – – –
1100 −1 – – – – – – – –
1101 −3 110 −3 – – – – – –
1111 −5 – – 11 −5 – – – –
1110 −7 111 −7 – – – – – –
1010 −9 – – – – – – – –
1001 −13 – – – – – – – –
1239 The levels shown are relative to the currently used TX Amplitude, where level ‘15’ represents positive TX
1240 Peak level. Note that sC216 levels are Gear-dependent, whereas the other sub-Constellations are Gear-
1241 independent.
8.3.1.2 Symbol and Token Rate/Period
1242 A Token is defined as a group of 4 Symbols. All transmission shall be done with full Tokens.
1243 All Symbols within one Token shall use the same Sub-Constellation, with the number of Token Data (TD)
1244 bits varied per the Sub-Constellation used.
1245 Table 35 Token Data (TD) per Sub-Constellation
Sub-Constellation Number of TD bits Denoted as
sC1616 4 * 4 = 16 TD[15:0]
sC816 4 * 3 = 12 TD[11:0]
sC416 4*2=8 TD[7:0]
sC216 4*1=4 TD[3:0]
1246 For a Dual Lane PAM-X, each Token shall be transmitted using the two Lanes within two symbol periods:
1247 • In the first Symbol Period, the first Token’s Symbol shall be transmitted over Lane0 and the second
1248 Token’s Symbol shall be transmitted over Lane1.
1249 • In the second Symbol Period, the Third Token’s Symbol shall be transmitted over Lane0 and the last
1250 Token’s Symbol shall be transmitted over Lane1.
1251 The ratios between Symbol and Token Rate, and between Symbol and Token Period, are shown in Table 36.
1252 Table 36 Symbol / Token Rate and Symbol / Token Period Ratios
Per Lane
Number of Symbol Period /
Symbol Rate Comment
Lanes Token Period
/ Token Rate
Older Newer
8-bit 8-bit 8-bit 8-bit 8-bit 8-bit 8-bit 8-bit Variable Length Byte 32-bit
Adapt. Service Placem. TX Target Payload Header
A-Packet Desc. Desc. Desc. Delay Address
RTS Hdr
Length CRC
Payload Data Bytes CRC-32
Byte Stream
Packet Partioning
MSB
MSB
LSB
Fixed Sub-Constellation Per Link Same Sub-Constellation for payload data and CRC-32 bytes based on Header carried
information
1257
Figure 50 A-Packet Partitioning
1258 The first Header byte shall be transmitted using the sC2 16 Sub-Constellation. The rest of the Header bytes shall be transmitted using a fixed Sub-Constellation
1259 derived from the fixed, preconfigured sCMax, per Table 37.
1260 Table 37 Header Sub-Constellation Per sCMax
sC1616 sC416
sC816 sC416
sC416 sC216
1261 All Payload data and CRC-32 bytes within a given A-Packet shall use the same Sub-Constellation. This Sub-
1262 Constellation may be dynamically changed from one A-Packet to the next A-Packet.
1263 The Sub-Constellation for the payload data and the CRC-32 bytes shall be selected from the set:
Newer Older
MSB
MSB
MSB
LSB
LSB
LSB
H2 H1 H0
H2[7] H2[6] H2[5] H2[4] H2[3] H2[2] H2[1] H2[0] H1[7] H1[6] H1[5] H1[4] H1[3] H1[2] H1[1] H1[0] H0[7] H0[6] H0[5] H0[4] H0[3] H0[2] H0[1] H0[0]
S23 S22 S21 S20 S19 S18 S17 S16 S15 S14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 S0 sC216
Tok5 Tok4 Tok3 Tok2 Tok1 Tok0
Newer Older
MSB
MSB
MSB
LSB
LSB
LSB
H2 H1 H0
H2[7] H2[6] H2[5] H2[4] H2[3] H2[2] H2[1] H2[0] H1[7] H1[6] H1[5] H1[4] H1[3] H1[2] H1[1] H1[0] H0[7] H0[6] H0[5] H0[4] H0[3] H0[2] H0[1] H0[0]
Newer Older
MSB
MSB
MSB
LSB
LSB
LSB
D2 D1 D0
D2[7] D2[6] D2[5] D2[4] D2[3] D2[2] D2[1] D2[0] D1[7] D1[6] D1[5] D1[4] D1[3] D1[2] D1[1] D1[0] D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S23 S22 S21 S20 S19 S18 S17 S16 S15 S14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 S0 sC216
Tok5 Tok4 Tok3 Tok2 Tok1 Tok0
Newer Older
MSB
MSB
MSB
LSB
LSB
LSB
D2 D1 D0
D2[7] D2[6] D2[5] D2[4] D2[3] D2[2] D2[1] D2[0] D1[7] D1[6] D1[5] D1[4] D1[3] D1[2] D1[1] D1[0] D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
Newer Older
MSB
LSB
Padding D0
0 0 0 0 D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S3 S2 S1 S0 sC816
Tok0
Newer Older
MSB
MSB
LSB
LSB
Padding D1 D0
0 0 0 0 0 0 0 0 D1[7] D1[6] D1[5] D1[4] D1[3] D1[2] D1[1] D1[0] D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S7 S6 S5 S4 S3 S2 S1 S0 sC816
Tok1 Tok0
Newer Older
MSB
MSB
MSB
LSB
LSB
LSB
D2 D1 D0
D2[7] D2[6] D2[5] D2[4] D2[3] D2[2] D2[1] D2[0] D1[7] D1[6] D1[5] D1[4] D1[3] D1[2] D1[1] D1[0] D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S7 S6 S5 S4 S3 S2 S1 S0 sC816
Tok1 Tok0
Newer Older
MSB
LSB
Padding D0
0 0 0 0 0 0 0 0 D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S3 S2 S1 S0 sC1616
Tok0
Newer Older
MSB
MSB
LSB
LSB
D1 D0
D1[7] D1[6] D1[5] D1[4] D1[3] D1[2] D1[1] D1[0] D0[7] D0[6] D0[5] D0[4] D0[3] D0[2] D0[1] D0[0]
S3 S2 S1 S0 sC1616
Tok0
1274
Figure 52 Bit/Symbol/Token Conversion Per Payload Data and CRC-32 Bytes
TD[15:12] TD[11:9]
N+3 TD[7:6] SN+3[1:0] TD[3] SN+3[3]
SN+3[3:0] SN+3[2:0]
Symbol
Lane sC1616 sC816 sC416 sC216
Period
Lane1 TD[7:4] SN[7:4] TD[5:3] SN[6:4] TD[3:2] SN[5:4] TD[1] SN[7]
N
Lane0 TD[3:0] SN[3:0] TD[2:0] SN[2:0] TD[1:0] SN[1:0] TD[0] SN[3]
Lane1 TD[15:12] SN+1[7:4] TD[11:9] SN+1[6:4] TD[7:6] SN+1[5:4] TD[3] SN+1[7]
N+1
Lane0 TD[11:8] SN+1[3:0] TD[8:6] SN+1[2:0] TD[5:4] SN+1[1:0] TD[2] SN+1[3]
N+1 ST[1]
N+2 ST[2]
N+3 ST[3]
Symbol
Lane1 Lane0
Period
N ST[1] ST[0]
N+1 ST[3] ST[2]
1305 The scrambler output Training bits are mapped to an sC216 symbol, as shown in Table 34.
1306 Inverted Scrambler Symbols (ISS) during training shall use the ones-complement of the Training bits mapped
1307 to a sC216 symbol as in Table 34.
1308 The PAM-X Source PCS shall transmit the scrambler output bits interleaved with Reflected K-Sequences,
1309 where each Reflected K-Sequence shall be sent whenever it detects one K-Sequence received over the Uplink
1310 / Reverse Downlink. This process is also referred to as ‘K-Reflection’.
1311 ‘K-Reflection Delay” is the time from last bit of Uplink’s K-Sequence arrival time to first symbol of PAM-X
1312 K-Sequence transmit time. The ‘K-Reflection Delay’ shall be chosen such that the requirements from ‘ISS
1313 Generation Delay’, as specified in Section 8.3.1.8, could be met.
1314 Each K Sequence shall be 8 symbols long, where the first K Sequence’s symbol shall be aligned with the
1315 start of a Token period T, as shown in Table 42 and Table 43.
1316 Table 42 PAM-X Single Lane "K Sequence" Symbol Mapping vs Training Symbols
Symbol Period K Sequence Normal Training
N −5 @ G3, −3 @ G4/5 sC216( ST[0] )
Table 43 PAM-X Dual Lane "K Sequence" Symbol Mapping vs Training Symbols
5 @ G3, −5 @ G3,
N sC216( ST[1] ) sC216( ST[0] )
3 @ G4/5 −3 @ G4/5
5 @ G3,
N+1 sC216( 1 ) sC216( ST[3] ) sC216( ST[2] )
3 @ G4/5
-5 @ G3, sC216( 1 )
N+2 sC216( ST+1[1] ) sC216( ST+1[0] )
-3 @ G4/5
N+3 sC216( 0 ) sC216( 0 ) sC216( ST+1[3] ) sC216( ST+1[2] )
5 @ G3, −5 @ G3,
N+4 sC216( ST+2[1] ) sC216( ST+2[0] )
3 @ G4/5 −3 @ G4/5
N+5 sC216( ST+2[3] ) sC216( ST+2[2] ) sC216( ST+2[3] ) sC216( ST+2[2] )
N+6 sC216( ST+3[1] ) sC216( ST+3[0] ) sC216( ST+3[1] ) sC216( ST+3[0] )
N+7 sC216( ST+3[3] ) sC216( ST+3[2] ) sC216( ST+3[3] ) sC216( ST+3[2] )
1317 Note that sC216(ST) denotes the normal training symbol modulation for that Token period.
1318 K sequences are used by the Receiver to resolve Token boundaries, Lane Swap/De-Skew (for Dual Lane
1319 PAM-X), and channel Polarity (when channel is differential), and to allow the Sink’s Downlink / Reverse
1320 Downlink receiver to compute the ‘Min Link RTD’ using the K-Reflection done by the transmitter.
1321 Since the minimum distance between K sequences, as generated by the Sink and reflected by the PAM-X
1322 Source over the Downlink, is much larger than 58-bit Downlink duration, the Receiver has more than enough
1323 incoming scrambler output bits to load its 58-bit de-scrambler and lock it to the TX scrambler.
Older Newer
16 Symbols Per Lane N Tokens
L0 Training ISS ISS ISS ISS ISS ISS ISS ISS Training IDLE
L0 Training ISS ISS ISS ISS ISS ISS ISS ISS Training IDLE
L1 Training ISS ISS ISS ISS ISS ISS ISS ISS Training IDLE
Lane1 SN+1[4]
N+1
Lane0 SN+1[0]
1337 While not in training, Inverted Scrambler Symbols (ISS) shall use the one’s-complement of the Idle bits
1338 mapped to an sC216 symbol: sC216(~SN).
1339 To indicate transitioning into Normal mode, the PCS shall transmit, per Lane, four Inverted Scrambler
1340 Symbols (ISSs) followed by four regular Idle symbols, as shown in Figure 56 and Figure 57.
1341
Figure 56 PAM-X Single Lane Transition from Idle to Normal
N+1 ISS
N+2 Idle
N+3 Idle
Lane1 Idle
N+1
Lane0 Idle
1348 An example of Normal Mode PCS data is shown in Figure 58. The minimal IPG period has IDLE Token and
1349 EOI Token as shown in the upper example. The IPG period may include more IDLE Tokens, as shown in the
1350 lower diagram.
Header Tokens (G3: H=15, G4/5: H=8) Payload Data and CRC-32 Tokens Min. IPG Header Tokens (G3: H=15, G4/5: H=8) Payload Data and CRC-32 Tokens
Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok
IDLE EOI
0 1 H-2 H-1 H 0 1 2 N-2 N-1 N 0 1 H-2 H-1 H 0 1 2 K-2 K-1 K
Header Tokens (G3: H=15, G4/5: H=8) Payload Data and CRC-32 Tokens IPG Header Tokens (G3: H=15, G4/5: H=8) Payload Data and CRC-32 Tokens
Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok Tok
IDLE IDLE EOI
0 1 H-2 H-1 H 0 1 2 N-2 N-1 N 0 1 H-2 H-1 H 0 1 2 K-2 K-1 K
TX_ReTRAIN_ISS_NUM Expired
2: TX IDLE
(reset
TX_ReTRAIN_IDLE_NUM
counter )
TX_ReTRAIN_IDLE_NUM Expired
1373
Figure 59 TX Re-Training Procedure State Machine
1399
Figure 60 Symmetric Q-Port K-Generation/Reflection
A-Packet
Re-Train sCMax Ret. Ret.
Req Req Ack Req
data/control byte
B[7:0]
Scrambler
Enable
K-Sequences S[7:0]
Control Mark
CM
Scrambled data/control byte
SB[7:0]
8b10b encoder
10b symbol
10b Symbols
to NRZ
1441
Figure 61 PCS Block Diagram
1486 During a given mode of operation, after generating a Startup Control Sequence, no additional Startup Control
1487 Sequence shall be sent until at least 256 µS has elapsed. When changing an operation mode, a new Startup
1488 Control Sequence marking the change may be sent immediately.
Zero Byte K28.5 Pos Zero Byte Zero Byte Zero Byte Zero Byte K28.5 Pos Zero Byte Zero Byte Zero Byte Zero Byte K28.5 Pos Zero Byte Zero Byte Zero Byte
... ... ...
1519
Figure 63 Training with K-Sequences Example
1520 A receiver uses received K-Sequences to resolve 10b-Symbol boundaries and channel Polarity (when channel
1521 is differential), which are then used to lock the Receiver’s de-scrambler.
1522 Since the minimum distance between the K28.5 10b-Symbols is much larger than the 58-bit scrambler size,
1523 the Receiver has more than enough incoming TX Scrambler bits to load its 58-bit de-scrambler and lock it to
1524 the TX Scrambler.
1525 After successfully receiving the reflected K-Sequences and locking its own de-scrambler, the Sink shall stop
1526 sending K-Sequences. It may then generate Half Amplitude Startup Control Sequences, which consist of a
1527 Control Mark (CM=1 and B[7:0]=0) followed by two Downlink Half Amplitude Control Bytes (CN1=STS,
1528 CN2=DHA); see Figure 64.
1535 At the Sink side, when ready to move to Idle mode, the first In_idle Startup Control Sequence shall be
1536 transmitted immediately upon entering the Idle Mode. Additional In_idle Startup Control Sequences may
1537 follow (with the proper spacing between them), as long as no “In Idle” indication is received from the Source.
1538 Note that the Downlink may also be a PAM-X Downlink.
1539 At the Source side, the 8B/10B Downlink TX PCS shall transmit Reflected In_idle Startup Control
1540 Sequences. Each Reflected In_idle Startup Control Sequence shall be sent whenever the Source is ready to
1541 move to Idle mode, or is already in Idle mode and detects an In_idle Startup Control Sequence received over
1542 the Uplink.
1543 The Sink’s 8B/10B Downlink Receiver shall use these Reflected In_idle Startup Control Sequences to
1544 compute the Min Link RTD.
1566 Re-Train Requests presented to the Uplink Transmitter during the transmission of other requests/indications
1567 shall also interrupt them.
1568 In Normal Mode over the Downlink, the Byte Stream Controller shall not send Requests/Ack-Indications.
1569 When transitioning from Idle to Normal mode, before transmitting the first A-Packet, the 8B/10B TX PCS
1570 shall transmit zero bytes interleaved with In_Normal Startup Control Sequences. Per Figure 67, the
1571 In_Normal Startup Control Sequence shall consist of a Control Mark (CM=1 and B[7:0]=0), followed by two
1572 In_Normal Control Bytes (CN1=STS, CN2=NML).
1573 The first In_Normal Startup Control Sequence shall be transmitted immediately upon entering the Normal
1574 Mode.
CN1: * CN1: RE
CM CN2: CMR
CRC CM
1600 CN2: *
Figure 69 sCMax Request
1601 An interrupted sCMax request shall be abandoned by both the Uplink TX and the RX.
CN1: * CN1: RE
CM MC CRC CM
1610 CN2: RRS CN2: *
Figure 70 Single Retransmission Request
1611 An interrupted Single Retransmission Request shall be repeated after completion of that interruption.
8.3.2.8.4 Retransmission Gap Request
1612 Gap Retransmission Requests signals the Downlink Transmitter to retransmit a series of consecutive
1613 Downlink packets.
1614 Per Figure 71, a Gap Retransmission Request shall consist of:
1615 • A Control Mark
1616 • A Control Byte with a GRS CN2
1617 • A Data Byte containing MC1, the Last Matched MC as specified in Section 8.2.3.
1618 • Another Data Byte, containing MC2, the Post Gap MC as specified in Section 8.2.3.
1619 • A third Data Byte, containing the CRC of the three previous bytes
1620 • Another Control Mark
1621 • Another Control Byte, with a RE CN1
CN1: * CN1: RE
CM MC1 MC2 CRC CM
1622 CN2: GRS CN2: *
Figure 71 Retransmission Gap Request
1623 An interrupted Gap Retransmission Request shall be repeated after interruption completion.
CN1: * CN1: RE
CM MC CRC CM
1632 CN2: ACK CN2: *
Figure 72 Ack Indication
1633 An interrupted Ack Indication shall be repeated after completion of that interruption.
8.3.2.8.6 Data Packet
1634 Per Figure 73, a Data Packet shall consist of:
1635 • A Control Mark
1636 • A Control Byte with a PS CN2
1637 • Data Bytes containing the A-Packet bytes, in order
1638 • Another Control Mark
1639 • Another Control Byte, with a PE CN1
A-Packet Bytes
CN1: NULL A-Header A-Tail CN1: PE
Zero Byte CM CM Zero Byte
1640 CN2: PS 1st Byte ... Last Byte CN2: NULL
Figure 73 Distinct A-Packet 8B/10B Encapsulation
1641 Data Packets can be efficiently encapsulated back-to-back, as shown in Figure 74:
1643 When operating over Uplink, Data Packets may be interrupted by Requests /Acks. Interrupted Data Packets
1644 shall continue with:
1645 • A Control Mark
1646 • A Control Byte with a PC CN2, and RE CN1 belonging to the interrupting request
1647 • Data Bytes containing the remaining A-Packet bytes, in order
1648 • A Control Mark
1649 • Another Control Byte, with a PE CN1
A-Packet
Re-Train Ret. sCMax Ret.
Req Req Req Ack
data/control 2nd
byte data byte scr16
B[7:0] B2[7:0]
Enable
K-Sequences
Scrambler
Control Mark
CM
Scrambled data/control byte 2nd scrambled data byte
SB[7:0] SB2[7:0]
10b Symbol
10b Symbols
Pair
to NRZ
to PAM4
0 1
1673
Figure 76 RTU PCS Block Diagram
1701 When the Source (DRU RX function) requires a Re-Training, it shall trigger a Re-Training procedure for just
1702 the DRU direction by sending a Re-Training Request over the Downlink, using the same convention and A-
1703 Header format as specified in Section 8.2.3.3, but with the payload format shown in Figure 79.
CN1: Null
A-Header [8-Bytes] CRC-32 [4-Bytes]
CN2: RTR
1704
Figure 79 DRU Re-Training Request Sent Over Downlink
1705 Once such RTR is received by the Sink, which is in normal mode (i.e., DRU Re-Training procedure Stage
1706 3), it shall abort any data packet it is currently transmitting and shall move directly to DRU Re-Training
1707 procedure Stage 2; as a result, no Downlink Re-Training is triggered. If the Sink receiving this RTR over the
1708 Downlink has already triggered its own RTR over DRU in Stage 1, and is now on Stage 1 or Stage 2, then
1709 the received RTR shall be ignored.
1710 If the Source has already triggered a DRU Re-Training, and/or if it has already begun Downlink Re-Training
1711 (due to RTR sent over the DRU by the Sink), and its PAM4 reception capability has been restored, then it
1712 shall generate an sCMax request via the Downlink in order to shorten the duration of the Sink TX’s Stage 2.
1713 The DRU sCMax Request shall be sent over the Downlink using the same convention and A-Header format
1714 as specified in Section 8.2.3.3, but with the Payload format shown in Figure 80.
CN1: Null
A-Header [8-Bytes] CRC-32 [4-Bytes]
CN2:CMR
1715
Figure 80 DRU sCMax Request Sent Over Downlink
Source Sink
S S S Silent
Idle Detected
I
N Normal
I Idle Detected
Normal
Detected
N
N
1772
Figure 81 Typical Startup Procedure
1773 In a typical startup procedure, the Source acts as the Primary Clock and the Sink acts as the Secondary Clock.
1774 The typical startup procedure, illustrated in Figure 81, consists of the following steps:
1775 1. While in Silent State, the Source shall verify that the Sink is also in Silent state.
1776 2. Using its own reference clock, the Source shall start transmission of the Downlink training
1777 sequence without K-Sequences.
1778 3. The Sink’s Downlink receiver shall detect the received signal, recover the clock, and solve the
1779 channel for sufficient quality. Then, using the recovered clock, it shall start transmission of the
1780 Uplink / Reverse Downlink training sequence with K-Sequences.
1781 4. The Source’s Uplink / Reverse Downlink receiver shall detect the received signal, solve the
1782 channel for sufficient quality, and then lock its Uplink descrambler by resolving polarity if needed.
1783 Then it shall reflect the Downlink K-Sequences into the Downlink training sequence it is already
1784 transmitting. One reflected K-Sequence shall be sent each time the Source’s Uplink / Reverse
1785 Downlink receiver detects a K-Sequence.
De-scrambler is locked,
In Idle Startup Control Token Boundaries solved,
5 – –
Sequences ready for the transition into
Idle mode
Timer Value
Name Description
(mS)
T2KT Time to K 50
1842 During the above procedure, the Sink Receiver shall follow the sequence and reach successful normal
1843 operation.
1844 If the Sink was instructed (per Section 9.1.2.6) to perform Unidirectional startup with Sink transmission, then
1845 it shall add its own Uplink transmission as specified in the Mission Mode Startup Procedure (Section 8.3.4.1).
1846 If the Sink was instructed to perform Unidirectional startup without Sink transmission, then it shall be in
1847 Silent State at all times.
1848 If the Sink detects that the Source entered Silent State, then the Sink shall also enter Silent state and then wait
1849 for the Source to start over.
1850 In the case of a Unidirectional Startup with Sink transmission (per step 3), if the Source detects that the Sink
1851 entered Silent State, then the Source shall first enter Silent State for a period of at least MINSILENTT, and
1852 shall then start over.
Source Sink
S S S Silent
T Channel Solved
Training
T without K
sequences
Time to K
Passed
T*
Training
T* with K
sequences
Time to Idle
Passed I
N Normal
I Idle Detected
Time to Normal
Passed
N
N
1853
Figure 82 Unidirectional Startup Procedure
TX DUT
1865 TPA
Figure 83 TPA Conformance Point
1866 In this section, the term SRG is the Transmitter’s symbol rate divided by 109. For example, for the Downlink,
1867 the SRG of G1 is 2, SRG of G2 is 4, and SRG of G5 is 4. For the Uplink, SRG is 0.1 for all Gears.
SC1616 b3 b2 b1 b0 b3 b2 b1 b0
SC816 – b2 b1 b0 – b2 b1 b0
SC416 – – b1 b0 – – b1 b0
SC216 – – – b0 – – – b0
LFSR S00 S01 S02 S03 S04 S05 S06 S07 S08 S09 S10 S11 S12 S13 S14 S15
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
4 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0
5 0 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0
1 1111 −5 5
2 0000 15 −15
3 1110 −7 7
4 1100 −1 1
5 1000 −15 15
Lane 1 Lane 0
1 111 −7 7
2 000 15 −15
3 110 −3 3
4 100 −15 15
5 000 15 −15
128ns 128ns
VH20 VH100
VL20 VL100
1916
Figure 85 Test Mode 2
1939 When operating over 100 Ω Differential channel, 3 dB higher (than the Coax’s amplitude) amplitude
1940 is used to meet the same PSD limits.
1941 In DHA (Downlink Half Amplitude) mode the amplitude is 6 dB lower compared to nominal
1942 amplitude.
1943 Normative:
1944 Common Mode PSD Limit: For differential channels, both Differential and Common modes of the
1945 TX signal shall be captured and processed in the same manner. The “max hold power spectral
1946 density” per PSD point of the common mode signal shall be below the specified Upper PSD limit (in
1947 dBm/Hz) of the differential signal, at least by the Unbalanced Attenuation limit (UA in dB).
1948 The PSD mask is defined for the nominal amplitude; for DHA mode, the PSD mask shall be 6 dB
1949 lower.
1950 For Q-Port, the Downlink / Reverse Downlink TX differential and common PSD per Pair, per
1951 PMD/Gear, shall comply with the Nominal PSD limits for the selected PMD/Gear when reducing
1952 3 dB from the nominal limits for G1, G2, G4, and G5 (no change for G3 PSD limits).
1956 To compute Limit values for intermediate frequencies, linear interpolation with linear frequency axis shall
1957 be done (i.e., vertices are connected with straight lines at a linear frequency axis).
1958 Per-Gear upper and lower PSD limits for NRZ PMD are shown in Figure 86.
1959
Figure 86 NRZ PMD: Upper & Lower PSD Limits
1963 To compute Limit values for intermediate frequencies, linear interpolation with linear frequency axis shall
1964 be done (i.e., Vertices are connected with straight lines at a linear frequency axis)
1965 For G4 and G5, PSD limit lines shall be 6 dB lower than specified in Table 67 and Table 68.
1966 Upper and Lower PSD limits for Uplink PMD for G1, G2, and G3 are shown in Figure 87.
1967
Figure 87 Uplink PMD Upper & Lower PSD Limits: Gears #1–#3
1972 For G3 to G5, SRG = 4. Upper and Lower PSD limits are Gear-dependent: for G3, both of the limit lines
1973 specified by the equations above shall be further reduced by 3.5 dB, as shown in Figure 88.
1974
Figure 88 PAM-X PMD Upper & Lower PSD Limits
1975 When using the Normative-Optional operating mode of PAM-X sC4 for G1 / G2, PSD limits shall be
1976 computed per the equations above, with SRG = 1 for G1, and SRG = 2 for G2.
2036
2037 PP=zeros(1,(NBIN/2+1));
2038 for nn=1:8,
2039 nn,
2040
2041 %TM1 2^21 sC2 pattern
2042 rr = 1/15*AmpPeak*repmat(circshift(Aseq21,round(rand(1,1)*(2^20-1))),...
2043 ceil(NLen/length(Aseq21)),1);
2044 rr = rr(1:NLen);
2045 rr4=repmat(rr,1,Fs/Baud);rr4=rr4';rr4=rr4(:);
2046 [Pt21,F]=psdBmHz_pwelch(filter(b,a,rr4),NBIN,Fs*1e9,Imped);
2047
2048 PP=max([PP(:)';Pt21']); % "Max Hold"
2049 end
2050 figure(1);clf;
2051 plot(F/1e9,10*log10([PP]),FMask/1e9,VMask,'r-',FLowMask/1e9,VLowMask,'k-');
2052 xlabel('F [GHz]');ylabel('PSD [dBm/Hz]')
2053 legend(['TM1 Gear #',num2str(Gear),' TX PSD'],'PSD Mask Upper Limit',...
2054 'PSD Mask Lower Limit','Location','NE');
2055 axis([0 8 -140 -80]);grid on;
2056 title(['TM1 over Coax at ',num2str(Baud),'GBaud Gear #',num2str(Gear),...
2057 ', Amp: ',num2str(AmpPeak*2*1e3),'mVpp, TX PSD']);shg
2058 The above Matlab code uses the function psdBmHz_pwelch, which is not a native Matlab function. It is
2059 provided below:
2069 The resulting figures should resemble the examples shown in Figure 89 and Figure 90.
2070
Figure 89 Example Matlab Figure #1
2071
Figure 90 Example Matlab Figure #2
2085 For Q-Port, the Timing Jitter limit shall be met for each pair separately. When operating with a Dual Lane
2086 transmitter, the pair under test shall transmit TM3 and the untested Pair shall transmit TM1.
9.1.5.2 Processing Procedure
2087 Steps:
2088 1. Capture 10 captures of the transmitted clock pattern, with 10 times oversampling each, that would
2089 allow for a calculation of 1M (106) Jitter Samples per capture.
2090 2. For each such capture, perform the following:
2091 A. Pass the captured signal through a single-pole High-Pass Filter at:
2092 i. For PAM-X Gears: Use pole frequency of Baud/20.
2093 E.g., for 4 GBaud, HPF is at 200 MHz.
2094 ii. For 8B10B Gears: Use pole frequency of Baud/160.
2095 E.g., for 4 GBaud, HPF is at 25 MHz.
2096 B. Compute the Time series (Ts) of the High-Pass filtered signal, 1M zero crossings locations
2097 (use linear interpolation between captured samples for accurate computation of zero-crossing
2098 times)
2099 C. Compute the Average UI as the average of the 1M−1 differences between two adjacent Ts
2100 locations (Ts(n+1) − Ts(n))
2101 D. Compute Nominal Ts (NomTs) by starting from NomTs(1) = Ts(1) with constant difference,
2102 between adjacent locations of Average UI (NomTs(n+1) − NomTs(n) = Average UI)
2103 E. Compute the jitter vector, Tj, as the difference vector of (Ts(n) − NomTs(n))
2104 F. Pass the resulted Tj jitter vector through a single-pole High-Pass filter at Baud/2500 to
2105 account for CDR tracking BW. E.g., for 4 GBaud, HPF is at 1.6 MHz.
2106 G. Compute the Peak-to-Peak of the resulted Tj jitter as P2P = max(Tj) − min(Tj)
2107 3. Average the 10 P2P results computed for the ten captures.
EH
ERH
EW ERW
Level
Zero
2121
Figure 91 NRZ Downlink Transmitter Eye Diagram
2122 In the Figure 91 Eye Diagram:
2123 • EW is a representation of the horizontal opening of an eye diagram, and is measured at the voltage
2124 level that maximizes the reading. For a differential signal, that level is usually the differential zero
2125 crossing.
2126 • EH is a representation of the vertical opening of an eye diagram, and is measured between the
2127 minimum One Level and maximum Zero Level at a time instant that maximizes the reading.
2128 • ERW is a representation of the horizontal width of the embedded rectangle in the octagon mask.
2129 • ERH is a representation of the vertical height of the embedded rectangle in the octagon mask.
2143 Note:
2144 1. Normative requirement described in Section 9.1.5.
2145 2. Informative number. BER target is 10-12. Normative requirements for TM4 eye mask are described
2146 in Section 9.1.7.
2147 3. “X” indicates that the component contributes to the jitter budget
2243
2244
2245 %add Normal Noise to NL products
2246 NN = 10^(-54/20)*randn(length(tx),1) + sNL + dNL;
2247 clear sNL dNL
2248
2249 %Add all noises to tx
2250 tx = tx + NN;
2251
2252 %tx output first order Low pass at x1.5 Nyquist
2253 [B,A]=butter(1,1.5/10);
2254 tx=filter(B,A,tx);
2255
2256 %----- End of “Synthetic TX signal” Model------------
2257
2258 %tx signal captured / modelled analysis starts here...
2259
2260 % (RX) "Receiver's" second order LPF at Nyquist,
2261 [B,A]=butter(2,1/10,'low');
2262 tx=filter(B,A,tx);
2263
2264 % (RX) "Receiver's" first order HPF at 1/10 Nyquist
2265 [B,A]=butter(1,0.1/10,'high');
2266 tx=filter(B,A,tx);
2267
2268 % Average Input to remove random noise and remove filter transitions, resulted tx is
2269 % row vector
2270 tx=mean(reshape(tx([1:length(tm4)*10*31]+2e3),length(tm4)*10,31)');
2271
2272 DistArr = []; %Save Distortions
2273
2274 % Compute distortion for 10 clock phases
2275 for n=1:10
2276 tx1=tx(n:10:end);
2277 % Align data and test pattern
2278 [val,index]=max(xcorr(tx1,tm4));
2279 X=circshift(X0, [0, mod(index+Nc/2,Ns)]);
2280 % Compute coefficients that minimize squared error
2281 coef=tx1/X;
2282 % Linear canceller
2283 err=tx1-coef*X;
2284 % Peak distortion
2285 dist(n) = max(abs(err));
2286
2287 DistArr = [DistArr,err(:)] ; %Save Distortions
2288 end
2289 % Print distortion in mV for 10 sampling phases
2290 format bank
2291 peakDistortion_mV = 1000*dist'
2292
2293 %Per phase: Distortion RMS and Distortion Peak to Signal RMS ratio
2294 DistortionRMSToSignalRMSPerPhase_dB = 20*log10(rms(DistArr)./rms(reshape(tx(:),10,length(tx)/10)'))
2295 DistortionPeakToSignalRMSPerPhase_dB = 20*log10(max(abs(DistArr))./rms(reshape(tx(:),10,length(tx)/10)'))
2316 The Sink shall follow the requirements as specified in the Unidirectional Startup according to the following
2317 sub Modes:
2318 • RTM6A: When this sub mode is enabled, the Sink shall cease to transmit its Uplink transmission
2319 • RTM6B: When this sub mode is enabled, the Sink shall transmit its Uplink transmission as specified
2320 during the Unidirectional Startup, with the expectation that its Link partner will completely ignore
2321 this Uplink transmission (i.e., no RTS/ReTrain requests can be sent, RTS is not operating, etc.).
10 Modes of Operation
2322 The A-PHY Port has two Operation Modes: Active and Non-Active. Within each Operation Mode there are
2323 some States, and a set of Transitions between the States, that together define the Operation Mode State
2324 Machine detailed in Section 10.3.
Active Mode
Normal
State
Sleep
Transition Link- Link-
Down Establish
Trans. Transition
Stop
Start-Up Test Mode
Transition
State
Wakeup
Transition
Test Test Mode
State Transition
Sleep
State
Power-Up
State
Non-Active Mode
2334
Figure 92 A-PHY Port Operation Mode State Machine
2335 The same state machine is defined for both A-PHY Source Ports and A-PHY Sink Ports. Unless otherwise
2336 specified, the same definitions of states and transitions apply to both A-PHY Source Ports and A-PHY Sink
2337 Ports. In Figure 92, transitions are color-coded by type per the Table 73 legend.
2338 Table 73 Transition Appearance Legend
Transition Appearance Transition Description
Transitions from Any State into a particular other state
Red Arrow
(e.g., Reset Transition)
Transitions that are the result of a local or remote (on the A-PHY Link)
Purple Arrow Control/Command/Sequence
(e.g., Sleep Transition)
Transitions that are the result of a local only Control/Command/Sequence
Green Arrow
(e.g., Ready Transition)
Transitions that are the result of Link Establishment process
Blue Arrow
(e.g., Link Establish Transition)
Transitions that are the result of Link Down conditions
Orange Arrow
(e.g. Link-Down Transition)
10.3.2 States
2364 This specification defines the four States detailed in this section: Power-Up, Start-Up, Normal, and Sleep.
10.3.2.1 Power-Up State
2365 The A-PHY Port shall be in Non-Active Operation Mode while in Power-Up State.
2366 Possible reasons for an A-PHY Port to enter the Power-Up State are:
2367 • Power is not applied/not sufficient.
2368 • Reset is asserted.
2369 The A-PHY will exit the Power-Up State upon Ready_ind assertion.
2370 Ready_ind is asserted when Power is meeting working conditions and RESET is de-asserted.
10.3.2.2 Start-Up State
2371 The A-PHY Port shall be in Active Operation Mode while in Start-Up State.
2372 The Start-Up State may be entered as a result of a Link-Down Transition (Section 10.3.3.6), Wakeup
2373 Transition (Section 10.3.3.8), or Ready Transition (Section 10.3.3.3), as depicted in Figure 92.
2374 The Start-Up State is the state of the A-PHY Port during its process of establishing a Link with the remote
2375 A-PHY partner (its ‘Link partner’). Within the Interconnect conditions defined in Section 6, the process of
2376 Link establishment (measured from the time of entering the Start-Up State until the time of entering the
2377 Normal State) shall not exceed a time period of SUPT.
2378 The Start-Up Sub-State-Machine is described in Section 8.3.3.
2379 Upon successful completion of the Start-Up Sub-State-Machine, the Link is considered to be established and
2380 the Start-Up State shall be exited, taking the Link-Establish Transition, and the Normal State shall be entered.
2381 Upon unsuccessful completion of the Start-Up Sub-State-Machine, another attempt shall be made as long as
2382 the StartUpFail_cnt number of successive iterations (see Register FSM_CONFIG, Table 134) is not
2383 exceeded. If during any attempt to complete the Start-Up sequence, there is no response from the other side
2384 other than Silent, the next attempt shall be preceded with WUP (the Wake-Up Protocol, see Section 10.5).
2385 In the event of StartUpFail_cnt continuous failures to complete the Link Start-Up Sub-State-Machine
2386 successfully, the A-PHY Port shall take the Stop Transition, exiting the Start-Up State and entering the Sleep
2387 State. The Stop Transition shall result in notifying the Local System by activating the AutoStop_ind. In this
2388 event, the upper layer should take the correct measures to resolve the issue (e.g., change Configuration,
2389 activate the Reset or Power, or both, in order to cause the A-PHY to re-start, etc.).
10.3.3 Transitions
2417 The Operation Mode State Machine defines eight Transitions as detailed in the following sub-sections:
2418 • Power-Off Transition
2419 • Reset Transition
2420 • Ready Transition
2421 • Stop Transition
2422 • Link Establish Transition
2423 • Link Down Transition
2424 • Sleep Transition
2425 • Wakeup Transition
10.3.3.1 Power-Off Transition
2426 <from Any-State to Power-Up State>
2427 Upon a Power-Off Transition, the A-PHY Port shall automatically enter the Power-Up State, regardless of its
2428 current state (i.e., from Any-State).
System System
Sleep / Wake SleepReqIn SleepReqOut Sleep / Wake
A-PHY A-PHY
Control Control
Port Port
Function SleepReqOut SleepReqIn Function
6. Same as (3) above 5. Same as (2) above 4. As result, the System may
activate the
2452 SleepRequestIn_ind indication
2453 Figure 94 presents the same Sleep sequence in a second way, i.e., as a waveform diagram. Steps 1–6 are the
2454 same in both Figures.
SLPONGOT
Sleep
SLP T
SleepRequestOut_ind 5) Side B
4)
SleepRequestIn_ind
Move to Sleep State
2455 SLPACKT
2456 In order to synchronize the transition into Sleep State at both A-PHY Ports (i.e., both Link partners), the
2457 A-PHY Ports shall use the indications RemoteSleep_cmd (see Section 11.3.3), SleepRequestIn_ind
2458 (see Table 134), and SleepRequestOut_ind (see Table 135), and the following set of rules; together, these are
2459 referred to as the Sleep Sequence:
2460 • Rule 1: On activation of the SleepRequestIn_ind indication, the A-PHY Port shall start sending the
2461 RemoteSleep_cmd periodically every SLPT.
2462 • Rule 2: On reception of the RemoteSleep_cmd, the A-PHY Port shall activate the
2463 SleepRequestOut_ind indication.
2464 • Rule 3: If no RemoteSleep_cmd is received for a time period of more than NOSLPT, the A-PHY
2465 Port shall deactivate the SleepRequestOut_ind indication.
2466 • Rule 4: When the SleepRequestIn_ind and the SleepRequestOut_ind are both asserted for a time
2467 period of at least SLPACKT, the A-PHY Port shall move to Sleep State.
2468 • Rule 5: When the SleepRequestIn_ind and the SleepRequestOut_ind are both asserted for a time
2469 period of at least SLPONGOT, the A-PHY Port shall consider any “Link Down” event as a
2470 SLPACKT expired event, and shall accordingly move to the Sleep State.
2496 The WUP signal may be initiated by any one of the Remote or Local systems. The initiating entity is referred
2497 to as the WUP_Initiator, and the other partner entity is referred to as the WUP_Follower. The WUP_Initiator
2498 generates and transmits the WUP signal. The WUP_Follower receives and detects the WUP signal, as shown
2499 in Figure 96.
2501 The WUP signal is sent and received on the A-PHY Interconnect.
2502 When the device is set as the WUP_Initiator, the WakeupIn_ind is used as an input signal indicating to the
2503 WUP_Initiator to start the generation of the WUP signal.
2504 When the device is set as the WUP_Follower, it uses the WakeupOut_ind as an output signal indicating that
2505 a WUP signal was detected, per Figure 97.
VSTBY VSTBY
2507 As a result of receiving the WakeupOut_ind signal, the WUP_Follower’s Local System performs its power-
2508 up procedures to supply VDD.
2509 For efficiency, the WUP_Initiator can start its own power-up procedure to provide VDD in parallel or prior to
2510 the generation of the WUP signal.
10.5.2 Wake-Up Pattern (WUP) Signal
2511 The waveform shown in Figure 98 describes in general the main signaling associated with the Wake-up
2512 procedure. The following sub-sections describe it in greater detail.
WakeupIn_ind
at the WUP_Initiator ...
Bit Rate
GENT
2513
WakeupOut_ind
at the WUP_Follower ...
Figure 98 General Waveform of Main Signals
WakeupIn_ind
at the WUP_Initiator
WUP_ACK_TimeOut
WakeupOut_ind
at the WUP_Follower
VDD_Enb / VSTBY_Dis
2550
Figure 99 WUP Handshake ACK/NACK
2551 When the WUP Handshake Procedure results in a NACK, the A-PHY Port shall follow the unsuccessful
2552 completion of the Start-Up sequence as described in Section 10.3.2.2.
Native Protocol
(APDLL)
(APDLL)
(NPAL)
(NPAL)
(APPL)
(APPL)
(NP)
(NP)
Cable
2558 The A-PHY Data Link Layer interfaces with the Native Protocol Adaptation Layer via the A-PHY Protocol
2559 Interface (APPI) (see Section 11.7).
2560 Each Native Protocol Adaptation Layer has at least one APPI connection to the A-PHY Data Link Layer.
2561 Each Native Protocol Adaptation Layer serves at least one Native Protocol (NP) and has all relevant Native
2562 Interfaces (NI) for that.
2563 A-PHY Data Link Layer may be connected to multiple Native Protocols Adaptation Layers using a single
2564 Local Function (see Section 11.4).
2565 The A-PHY Data Link Layer may have a single A-PHY Network Function connected to it, or multiple A-PHY
2566 Network Functions (see Section 11.6).
Native Video
Native CSI-2
Native DSI
Interface
Interface
Interface
Native
Interfaces
CSI-2
I2C
CSI-2 DSI Non MIPI Video
Combo GPIO
Adaptation Layer Adaptation Layer Adaptation Layer
Adaptation Layer
APPI
APPI
APPI
APPI
Local Function (ID=1)
2569 The Native Protocol Adaptation Layer is responsible for translating the incoming Native Protocol data
2570 streams into the A-PHY representation. In the opposite direction, it is responsible for translating from the
2571 A-PHY representation back to the Native Protocol representation.
2572 The A-PHY Data Link Layer representation is in the form of packets, referred to as A-Packets
2573 (see Section 11.2).
2574 The A-Packet is structured to carry the native protocol data (i.e., the payload) and all information that the
2575 A-PHY Data Link Layer requires to perform its functions efficiently, such as the packet’s Target Address,
2576 required QoS, etc.
2577 The A-PHY Data Link Layer is responsible for:
2578 • Routing of A-Packets:
2579 • If there are multiple Native Protocol Adaptation Layers, then the distribution of A-Packets to their
2580 respective Native Protocol Adaptation Layer is done by the Local Function of the APDLL
2581 (see Section 11.4).
2582 • If there are multiple A-PHY ports, then the routing and forwarding of all A-Packets (from
2583 Adaptation Layers and/or A-PHY Ports) is done by the Multi-Port Function of the APDLL
2584 (see Section 11.5).
2585 • Scheduling of A-Packets forwarded to the same A-PHY Port is done by the Network Function
2586 (see Section11.6).
2587 The A-PHY Protocol Interface (APPI) is a bi-directional, asymmetric, parallel, digital, packet-based
2588 interface.
A-Packet
Adaptation
BAD
RES
b7
b6
b5
b4
b3
b2
b1
b0
b7
b6
b5
b4
b3
b2
b1
b0
2601
Figure 102 A-Packet Format
Normal Priority
1 Large Provides low latency-variation for high-bandwidth traffic such
as Camera data, Video, etc.
2 Reserved Reserved for future use
Highest Priority
3 Small Provides low latency for low-bandwidth, time-critical traffic
such as I3C, I2C, GPIO, Controls, etc.
APPI
APPI
Local Function (ID=1) Local Function (ID=1) Local Function (ID=1)
Data Link Layer Data Link Layer Data Link Layer Data Link Layer Data Link Layer Data Link Layer
PHY Layer PHY Layer PHY Layer PHY Layer PHY Layer PHY Layer
A-PHY Port A-PHY Port A-PHY Port A-PHY Port A-PHY Port A-PHY Port
6. Nth A-Packet
can still be
identified as
1. Send Nth A-Packet Bad packet
5. Receive Nth A-Packet without error
(i.e. detected with CRC and MC fields)
4. Send Nth A-Packet
2657 The use of the Order sub-field is specified separately for each Adaptation Layer, together with its Chunk size
2658 and ordering.
11.2.1.4 PHY2 Field
2659 The 8-bit PHY2 field is PHY-related, and is described in Section 8.1.5. The APDLL sets this field to zero
2660 when sending, and ignores it when receiving.
1 Reserved
2664 The Target Entity is the consumer of the A-Packet stream tagged with its assigned Target Address.
2665 This addressing mechanism supports multiple methods of Target Address assignment:
2666 • One-to-One Target Address Assignment: One Target Entity is assigned with a single, unique
2667 Target Address
2668 • One-to-Many Target Address Assignment: Several Target Entities are assigned with the same
2669 single and unique Target Address
2670 • Many-to-One Target Address Assignment: One Target Entity is assigned with multiple different,
2671 unique Target Addresses
2672 A Target Entity is typically associated with an Adaptation Layer ID, which identifies a specific instance of
2673 the Adaptation Layer. In more advanced cases, a single instance of the Adaptation Layer can be assigned
2674 multiple Target Entities, where each Entity handles a specific stream of A-Packets targeted to that Target
2675 Entity.
2676 An example with multiple Target Addresses Entities (Many-to-One) is shown in Figure 104. An example of
2677 One-to-Many is shown in Figure 105.
2678
Figure 104 Many-to-One Target Address Assignment Example
2679
Figure 105 One-to-Many Target Address Assignment Example
K
If K is Even 𝑁= 0
2
K+1
If K is Odd 𝑁= 1
2
A-Payload
Data Byte
#0 ... Data Byte
#N
1 byt e 1 byt e
2742
Figure 106 Basic BIST A-Payload Format
2743 The Extended BIST A-Payload format is depicted in Figure 107, and its fields and sub-fields are specified
2744 in Table 86.
A-Payload
2745 1 byte 1 byte 1 byte 1 byte 4 bytes 4 bytes 1 byte 1 byte 4 bytes
2755 The bytes of the Timestamp value shall be ordered from the most significant byte (MSByte) to the least
2756 significant byte (LSByte), with the most significant byte located in the A-Payload closer to A-Header. The
2757 Timestamp field shall only exist if the TS sub-field of Field Bitmap is set to 1.
2758 One option is to use the TBS (see 11.6.2.1.5) to share and synchronize the RTBC (see Section 11.3.4) of both
2759 link partners and use the RTBC as the Timestamp values.
11.3.1.1.3 Data Bytes
2760 The number of Data Bytes shall be:
2761 • Number of Data Bytes (N) = Number of A-Payload Bytes (K) – MC*4 – TS*4 – CR*4 – 4
2762 Please refer to Section 11.2.1.7 for a description of K.
2763 The value of the Data Bytes shall be:
2764 • Zero (0) if DATA sub-field of Field Bitmap is set to 0 (4’b0000)
2765 • PRBS if DATA sub-field of Field Bitmap is set to 1 (4’b0001)
11.3.1.1.4 CRC Field
2766 Field CRC shall be a 32-bit CRC with polynomial and rules according to Section 8.2.5.4. The CRC value
2767 shall be calculated over all the bytes comprising the A-Payload, by their order, up to the CRC field (not
2768 including the CRC field itself). The bytes of the CRC value shall be ordered from the most significant byte
2769 (MSByte) to the least significant byte (LSByte) with the most significant byte is located in the A-Payload
2770 closer to A-Header. The CRC field shall only exist if the CR sub-field of Field Bitmap is set to 1.
11.3.1.2 BIST Payload Patterns
2771 The BIST Payload Pattern shall be set according to field bistPATT in Register BIST_TX_CTRL4 (see Table
2772 118), using the BIST Payload Pattern Code values defined in Table 87.
2773 Table 87 BIST Payload Pattern Codes
BIST Payload Pattern Code
As set in Register Description
BIST_TX_CTRL4
0 All Payload bytes contain 0x00
1 PRBS as described below.
2 – 15 Reserved
2779 The PRBS shall be updated in steps of 8 bits, after which the value of states S0:S7 is considered as the Data
2780 Byte value (S0 as the LSB), ordered in sequential order into the BIST Payload such that Data Byte 0 conveys
2781 the result of the first step, Data Byte 1 conveys the result of the second step, and Data Byte #N conveys the
2782 result of the last step.
2783 The initial value of the BIST PRBS states S0 through S31 shall be all ones (0xFFFFFFFF).
2784 Table 88 illustrates an example.
2785 Table 88 BIST Data Bytes Sequence Example
Data Data Data Data
8-bit 8-bit 8-bit 8-bit
Byte Byte Byte Byte
Step Step Step Step
Value Value Value Value
1 0x00 9 0x07 17 0x00 25 0xD2
2 0x00 10 0xEC 18 0x21 26 0x7A
3 0x01 11 0x60 19 0xB6 27 0x5F
4 0xFB 12 0x84 20 0x0B 28 0x74
5 0x00 13 0xFF 21 0x42 29 0xFC
6 0x03 14 0xFF 22 0xC6 30 0xFF
7 0xFF 15 0xEF 23 0xC8 31 0x30
8 0xCF 16 0x4F 24 0xF9 32 0xF9
11.3.2 Keep-Alive
2803 The Network Function shall monitor its packet scheduling over time. If no packets are scheduled for
2804 transmission in a given direction (whether Downlink or Uplink) for a time period longer than KEPALVT
2805 (defined in Table 74), then the Network Function shall send a Keep-Alive Packet. Both directions shall use
2806 the same value of KEPALVT. The KEPALVT period is renewed with any A-Packet transmission.
2807 At the receiver Port, if no A-Packets are received and delivered to the relevant Network Port’s Link Layer
2808 for a period larger than (KEPALVT * N, N>1), then it shall be considered as an error. The value of N shall
2809 be decided on a system level, depending on system-level fault tolerance time for relevant safety goals. Such
2810 an error event should be detected by monitoring the following fields in the Diagnostic Counter Registers
2811 (see Section 12.2.5.2):
2812 • Field GoodOriginalReceived in register DIAG_CNT5
2813 • Field BadOriginalReceived in register DIAG_CNT7
2814 • Field GoodDelivered in register DIAG_CNT1
2815 • Field BadDelivered in register DIAG_CNT3
2816 In a Keep-Alive A-Packet for any Port (i.e., Source or Sink):
2817 • The Adaptation Type sub-field shall contain 0x1
2818 • The QoS sub-field shall contain 2’b00
2819 • The Prio (Priority) sub-field shall contain 2’b01
2820 • The Target Address (T-Address) field shall contain 0x00 (Link Partner)
2821 • The Payload shall consist of a single byte, set to 0x00
11.3.3 Remote Sleep Command
2822 To support the Sleep Transition specified in Section 10.3.3.7, the RemoteSleep_cmd indication shall be
2823 passed by using the Remote Sleep Command.
2824 In a Remote Sleep Command A-Packet:
2825 • The Adaptation Type sub-field shall contain 0x1
2826 • The QoS sub-field shall contain 2’b00
2827 • The Prio (Priority) sub-field shall contain 2’b01
2828 • The Target Address (T-Address) shall contain 0x00 (Link Partner)
2829 • The Payload shall consist of a single byte, set to 0x0E
LOC_TBL Entry
12
...
LOC_TBL Entry
13
Entry
Descriptor
Entry-Element#1 Entry-Element#2 ...
LOC_TBL Entry
14
...
...
2868
Figure 109 Local Table Example
Entry-Element#n Entry-Element#n
2872
Figure 110 Entry-Element Formats
2873 In Direct Assignment Format, A-Packets with a designated Adaptation Layer Type and with matching
2874 T-Address are distributed to the Adaptation Later specified by its Adaptation Layer ID.
2875 In Range Assignment Format, A-Packets with designated Adaptation Layer Type and with T-Address value
2876 within the range defined between the From T-Address and the To T-Address are distributed to the Adaptation
2877 Later specified by its Adaptation Layer ID.
2878 An Entry that is defined as Direct Assignment Format, has only one Entry-Element (i.e., with Length=1), and
2879 where the T-Address field of its single Entry-Element is set to zero, is considered as “All T-Addresses”. In
2880 this case, all A-Packets with the designated Adaptation Layer Type are distributed to the Adaptation Layer
2881 specified by its Adaptation Layer ID, ignoring the T-Address value.
2882 When a Local Table Entry consists of more than one Entry-Element where the Adaptation Layer ID values
2883 are not all the same, this is considered as an “Adaptation Layer Cluster Type”, meaning that this A-PHY
2884 Device implements multiple Adaptation Layers of the same type (e.g., three CSI-2 Adaptation Layer
2885 instances).
2886 Figure 111 depicts examples of the different cases.
Entry-Element#1
T-Address Range AL-ID
LOC_TBL Entry 0x21
14 30 39 4 A-Packets with AL-Type=14
with T-Address values in the
Range between 30–39
...
2907 Each A-Packet is forwarded according to the value in the Target Address field in its A-Header
2908 (see Section 11.2.1.5).
Network Port ID = 4
ROUT_TBL
...
2917
Figure 112 ROUT_TBL Example
2929 Any T-Address value may appear in the Entry-Element list, providing that a given T-Address value does not
2930 appear in more than one Entry-Element of the same DUP_TBL Entry.
2931 Figure 113 illustrates a DUP_TBL example.
Network Port ID = 4
DUP_TBL
...
DUP_TBL Entry Descriptor Entry-Element A-Packets with T-Address = 12
12 =1 = 12 are not changed
2932
Figure 113 DUP_TBL Example
2969
Figure 114 CFS A-Packet Payload Format
2970 The fields of the CFS A-Packet payload are described in the following sub-sections.
11.6.2.1.1 Frequency Offset (FreqOffset) Field
2971 Each CFS A-Packet shall have a Frequency Offset field (see Figure 114) which is handled by each forwarding
2972 A-PHY Port along the A-PHY Network path.
2973 The FreqOffset field shall carry the relative difference between the origin MAL reference clock (Forc,
2974 normalized to its nominal value) and the reference clock (Ftxc normalized to its nominal value) of the A-PHY
2975 Port that is transmitting the CFS A-Packet in 2-25 units (e.g., a FreqOffset value of 32 means 1 PPM).
2976 The FreqOffset field is a two’s-complement signed value in the range of (−215 to (215 – 1)) x 2-25 ≈
2977 (−977 to 977) PPM.
2978 Each A-PHY Port transmitting the CFS A-Packet shall update the FreqOffset field accordingly. For example,
2979 if an intermediate device needs to forward a CFS A-Packet and the received CFS A-Packet's FreqOffset is
2980 set to V1 (that represents the difference between Forc to the transmitted device Ftx1), then it needs to add to
2981 that value the difference between its receiving Refence Clock (Frvc), on which it must be locked, and its own
2982 transmitting Reference Clock (Ftxc2). The new value of FreqOffset V2 should be: V2 = V1 + (Frvc − Ftxc2).
3013 All A-PHY Ports shall update fields FreqOffset and ACC_DELAY in the CFS A-Packets used for TBS,
3014 according to Section 11.6.2.1.1 and Section 11.6.2.1.4, respectively.
3029 Note:
3030 The data bus width (‘N’) shall be the same for both interfaces (DI_DAT and DO_DAT)
DI_REQ
Native Protocol Adaptation Layer
DI_RDY
DI_PSTRT
DI_DAT[N-1:0]
DO_REQ
DO_RDY
DO_PSTRT
DO_DAT[N-1:0]
3031
Figure 115 APPI Connectivity
24 NA NA 375 MHz
32 NA NA 500 MHz
Newer Older
MSB
MSB
MSB
MSB
MSB
MSB
MSB
MSB
MSB
MSB
MSB
MSB
Dn Dn-1 Dn-2 Dn-3 Dn-4 D3 D2 D1 D0 H7 H6 H5 H4 H3 H2 H1 H0
LSB
LSB
LSB
LSB
LSB
LSB
LSB
LSB
LSB
LSB
LSB
LSB
MSB
MSB
MSB
MSB
MSB
MSB
APPI 16b Bus
LSB
APPI3 APPI2 APPI1 APPI0
LSB
LSB
LSB
LSB
APPI5 APPI4
LSB
MSB
MSB
MSB
APPI2 APPI1 APPI0 APPI 32b Bus
LSB
LSB
LSB
MSB
APPI0 APPI 64b Bus
LSB
3038
Figure 116 APPI A-Packet Mapping
DI_REQ
DI_RDY
DI_PSTRT
APPI CLOCK
DO_REQ
DO_RDY
DO_PSTRT
3040
Figure 117 APPI Timing
3041 Note:
3042 i) APPI Clock is defined in Section 11.7.2
3043 ii) DI_DAT and DO_DAT shall have the same N bus width
3044 iii) Dx_RDY can be asserted regardless of Dx_REQ status
3045 iv) Data is valid be transmitted upon asserting both Dx_REQ and Dx_RDY
3046 v) Dx_PSTRT is asserted at the start of packet transmission
External Opt.
Mapper
Internal Adaptation Layer ... Adaptation Layer
Opt. LEGEND
PHY PHY
3063 The Internal Native Option (marked as a dotted line between Adaptation Layer and Mapper) is the option
3064 that allows ACMD to be accessed without an external interface (e.g., connector), typically used in integrated
3065 devices. An A-PHY Device shall implement at least one of the options (External Option, Internal Option, or
3066 both).
1. DedicatedCM
1a. Non-Integrated
Adaptation Adaptation
Layer Layer
APP A-PHY A-PHY Peripheral
Data Data
(HOST) Port Port (e.g. SNS)
CTRL
CTRL
To Integrated era
1b. Integrated
Adaptation Adaptation
Layer Layer
APP A-PHY A-PHY Peripheral
Data Data
(HOST) Port Port (e.g. SNS)
CTRL
CTRL
3083 Typically, in Automotive, the A-PHY network will be deployed in a fixed topology where all the network
3084 information is known in advance (pre-configuration). Such networks are typically relatively small and require
3085 relatively simple control and management efforts, but at the same time have demanding requirements for
3086 bring-up and response times, and/or optimized utilization and/or performance.
3087 In Figure 119, an evolution of solution is presented, from the legacy systems that were designed and limited
3088 for “close proximity” solutions with a dedicated control and management channel (“1. DedicatedCM” in the
3089 figure), through a distributed solution that is based on A-PHY technology but uses A-PHY bridges which are
3090 not integrated within the application device (“1a. Non-Integrated”), and on to the case where A-PHY
3091 technology is integrated into the application device providing a single-device solution (“1b. Integrated”). All
3092 of these solutions still use the same control and management channel concepts known to the legacy systems.
3093 Fixed-topology networks allow dynamic and real-time events like selection of active session, duplication and
3094 termination of sessions, changing session properties, changing Adaptation Layer behavior, etc., and can
3095 support several configuration models like per-element configuration, single-point-of-configuration, change
3096 of configuration, etc.
12.2 ACMD
3097 The A-PHY Control and Management Database (ACMD) is built from a collection of Registers. The Register
3098 address is a 16-bit value referred to as the Base Address (BA) and the Register data is an 8-bit, 16-bit, or
3099 32-bit value referred to as Register Data.
12.2.1 Register Base Address Alignment
3100 The Register’s Base Address shall be aligned according to Table 98.
3101 Table 98 Register Base Address (BA) Alignment
Register Base Address (BA)
Register Data Size Example
Alignment
8-bit 8-bit aligned 0x0001, 0x0002, 0x0057
16-bit 16-bit aligned 0x0002, 0x0004, 0x0056
32-bit 32-bit aligned 0x0004, 0x0008, 0x0054
3105 The Table 99 example shows example data byte layouts for 8-bit, 16-bit, and 32-bit Registers:
3106 • Register REG_EIGHT (orange background) is an 8-bit Register with BA = 0x0010
3107 • Its single data byte is located at the same BA, 0x0010
3108 • Register REG_SIXT (purple background) is a 16-bit Register with BA = 0x0012.
3109 • Its most significant data byte is located at the same BA, 0x0012
3110 • Its least significant data byte is located at BA 0x0013
3111 • Register REG_THIRTYT (green background) is a 32-bit Register with BA = 0x0014
3112 • Its most significant data byte is located at the same BA, 0x0014
3113 • Its second most significant data byte (MH) is located at BA 0x0015
3114 • Its third most significant data byte (ML) is located at BA 0x0016
3115 • Its least significant data byte is located at BA 0x0017
0x0000
Example:
CCS Registers 0x1000
0x0000–0x1FFF
0x2000
Example:
Image Statistics Registers
0x2000–0x2FFF
0x3000
Application-Specific
Registers 0x4000
0x0000– 0x7FFF
Example: 0x5000
Manufacturer-Specific
Registers (MSR)
0x3000–0x7FFF 0x6000
0x7000
0x8000
A-PHY Common Registers
0x8000–0x8FFF
0x9000
0xA000
0xB000
0xE000
0xF000
3117 0xFFFF
Figure 120 ACMD Register Space
3118 Each instance in the A-PHY Ports and Adaptation Layer Instances Register Space (from 0x9000 to 0xFFFF)
3119 shall start with INST_DESC Registers, which shall have the format defined in Table 128.
3120 The A-PHY Ports and Adaptation Layer Instances Register Space shall be constructed according to Figure
3121 121.
Instance Instance
INST_DESC Reg Next Instance Ptr
Type Index/ID
...
Instance Instance
INST_DESC Reg Next Instance Ptr
Type Index/ID
...
Instance Instance
...
INST_DESC Reg Next Instance Ptr
Type Index/ID
...
3122
Figure 121 Ports and AL Instances Register Space Arrangement
3123 The A-PHY Ports and Adaptation Layer Instances Register Space shall be arranged so that the first instances
3124 are A-PHY Port instances and the rest are Adaptation Layer instances. The number of A-PHY Port instances
3125 shall be located in Register PORT_NUM (see Table 104), and the number of Adaptation Layer instances shall
3126 be located in Register AL_NUM (see Table 105).
+ 0x12 – – – –
… – – – –
… – – – –
+ 0x100
to Vendor_Specific – – –
+ 0x7FF
MIPI Manufacturer ID
ManufacturerID 16 0 – (216−1) RO
[MIPI08]
Vendor-specific product
ProductID 16 0 – (216−1) RO
identifier
0: SW
Value 0 (SW) represents an
4 1: I2C
InterfaceCode RO internal, software-based
b3:b0 2: I3C
interface
3 – 15: Reserved
0: None
4
InterruptCode 1: GPIO – –
b7:b4
2 – 15: Reserved
3145 A Device supporting ACMP-MN shall support and map to the ACMD register space all required registers as
3146 defined in the respective ACMP-MN specification.
1
Reserved Reserved WR Reserved
b0
0: Time-Base is disabled
1: Time-Base is enabled on
2 TX
TIME_BASE_EN WR Time-Base enable
b2:b1 2: Time-Base is disabled on
RX
3: Reserved
Repetitive Scrambler Reset for Test
1 0: RSRT is disabled
RSRT_EN WR (RSRT) shall only be enabled for
b3 1: RSRT is enabled tests
Target Address
8 (T-Address) for
bistT See Section 11.3.1 WR
b7:b0 generated BIST
A-Packets
5
Reserved – – –
b4:b0
Number of received
BIST A-Packets with
good payload (e.g. good
pattern of zeros or
rcvGOOD 32 Packet Number WR PRBS, good Extended
BIST CRC field, good
Extended BIST
Message Counter field,
etc.)
Number of received
BIST A-Packets with a
wrong payload (e.g.
wrong pattern of zeros
rcvWRONG 32 Packet Number WR or PRBS, wrong
Extended BIST CRC
field, wrong Extended
BIST Message Counter
field, etc.)
Number of received
rcvBAD 32 Packet Number WR BIST A-Packets with
their BAD bit set to one
Number of missing
BIST A-Packets, based
rcvMISS 32 Packet Number WR on received Extended
BIST Message Counter
fields
0: Reserved
4
GearSelect 1 – 5: Selected GearX RW –
b3:b0
6 – 7: Reserved
1 0: Not Enabled
GL3P2 RW –
b4 1: Enabled
1 0: Not Enabled
G3P1 RW –
b5 1: Enabled
2
Reserved – – –
b6:b7
0: Reserved
1: TM1
2: TM2
4 3: TM3 Test Mode select according to
TMSelect RW
b3:b0 4: TM4 Section 9.1.2.
5: TM5
6: TM6
7 – 15: Reserved
1
Reserved 0 – –
b4
2
TMData 0–3 RW Per Test Mode Selection
b6:b5
1 0: Normal Mode While this bit is set, the device is in
TMEnable RW
b7 1: Test Mode Test Mode
12.3 ACMP
3185 The A-PHY Control and Management Protocol (ACMP) is designed for Controller/Target systems where the
3186 A-PHY device is a Target. The initiation of ACMP Messages is made by the Controller, typically the Host
3187 (e.g., Application Processor). The Host is required to initiate a Read Message in order to receive information
3188 from the A-PHY device. The A-PHY device only generates the ACMP Interrupt. The ACMP Interrupt is
3189 discussed in Section 12.3.3.
3190 This specification defines the control and management protocol that runs above the interfaces being used
3191 (e.g., I2C, I3C, etc.).
3192 Applications should make use of the ACMP protocol and its Functional Safety provisioning to perform
3193 control and management tasks. In addition, specific product dependent and proprietary functionalities may
3194 also make use of the ACMP protocol as part of the specified Vendor-Defined Register Space of ACMD.
3195 ACMP defines an additional protocol on top of the interface being used (e.g., I2C, I3C, etc.), as specified in
3196 the following sections.
3197 ACMP defines N+1 optional modes, which are denoted as ACMP-Mn with n ranging from 0 to N:
3198 • ACMP Mode 0 (ACMP-M0) is defined in Section 12.3.1. The ACMP-M0 message format integrates
3199 Functional Safety elements. The overall amount of traffic required for control and management is
3200 slightly increased. Processing of the Functional Safety elements is immediate, and can be validated
3201 by either side (i.e., by the Host side and/or by the Peripheral side).
3202 • ACMP Mode 1 (ACMP-M1) through ACMP Mode N (ACMP-MN) shall be defined by a higher-layer
3203 MIPI protocol specification, or by any other specification explicitly authorized by the MIPI Alliance
3204 Board of Directors.
3205 Any A-PHY Device shall support at least one of the ACMP optional modes.
3206 Example: The MIPI Alliance Camera Services Extensions (CSE) specification [MIPI10] defines ESS-CCI
3207 Mode 1 and ESS-CCI Mode 2 to meet the safety and security goals of the Camera Command Interface (CCI).
3208 ACMP-M1 may be defined as ESS-CCI Mode 1, and ACMP-M2 may be defined as ESS-CCI Mode 2.
3209 Applications (e.g., at the Host) using ACMP should use the ACMP’s Functional Safety related fields to
3210 implement the safety requirements and meet their safety goals.
Address
Header
8-bit
Message
Descriptor
8-bit
BA MSB
8-bit
BA LSB
8-bit
LEN MSB
8-bit
LEN LSB
8-bit
HCRC
8-bit
Data-1
8-bit
... Data-N
8-bit
PCRC
MSB
8-bit
PCRC
LSB
8-bit
Write
Message
Header Part Payload Part
Address
Header
8-bit
Message
Descriptor
8-bit
BA MSB
8-bit
BA LSB
8-bit
LEN MSB
8-bit
LEN LSB
8-bit
HCRC
8-bit
Address
Header
8-bit
Message
Descriptor
8-bit
Data-1
8-bit
... Data-N
8-bit
PCRC
MSB
8-bit
PCRC
LSB
8-bit
Read
Message
Header Part Payload Part
3216
Figure 122 ACMP-M0 Message Format
3217 The Byte Fields that are shown with dashed outlines in Figure 122 are optional, and exist only for certain
3218 Message Formats, as detailed in Table 152 and Table 153.
3219 Transmission Order:
3220 • The bits of the ACMP-M0 Message shall be transferred MSB (most significant bit) first, in field
3221 order (i.e., with Address Header first and PCRC last, from left to right).
3222 • Byte fields shall be transferred MSB first.
3223 • Multi-Byte fields shall be transmitted most significant byte first.
3224 Example: When writing a 16-bit Register value, Data-1 shall convey the most significant byte (i.e.,
3225 the most significant 8 bits) of the Register value, and Data-2 shall convey the least significant byte
3226 (i.e., the least significant 8 bits) of the Register value.
3247 See also Section 12.3.2.2 regarding the ACMP-M0 Message receiver’s responsibilities in the event of an
3248 erroneous value in the PCRC field.
S
Address
+W
8-bit
A
Message
Descriptor
8-bit
A
BA MSB
8-bit
A
BA LSB
8-bit
A
LEN MSB
8-bit
A
LEN LSB
8-bit
A
HCRC
8-bit
A
Data-1
8-bit
A ... Data-N
8-bit
A
PCRC
MSB
8-bit
A
PCRC
LSB
8-bit
A P
Write Message
Mapping to I2C
S
Address
+W
8-bit
A
Message
Descriptor
8-bit
A
BA MSB
8-bit
A
BA LSB
8-bit
A
LEN MSB
8-bit
A
LEN LSB
8-bit
A
HCRC
8-bit
A
r
S
Address
+R
8-bit
A
Message
Descriptor
8-bit
A
Data-1
8-bit
A ... Data-N
8-bit
A
PCRC
MSB
8-bit
A
PCRC
LSB
8-bit
A P
Read Message
Mapping to I2C
3256
Figure 123 ACMP-M0 Message Mapping to I2C
Downlink
Line Driver
8B/10B
Replica
PCS
Slicer
+
BPF
Clock
CR
3310
Figure 124 Profile 1 G1–2 Source with Internal Replica
Downlink
Line Driver
8B/10B
PCS
Clock
CR
Slicer
POC
Filter
3311
Figure 125 Profile 1 G1–2 Source with External Diplexer
Uplink
Line Driver
Uplink
LPF TX
8B/10B
PCS
Replica CR
Slicer
+ CTLE +
DFE
3312
Figure 126 Profile 1 G1–2 Sink PMD
Downlink Line
Driver
PAM-X
Downlink
PCS
DAC
Replica
DAC
Uplink BPF
ADC
Hybrid
8B/10B
PCS
3313
Figure 127 G3–5 Source PMD
Uplink
Line Driver
8B/10B
Uplink Line
PCS
TX LPF
Replica
Slicer
PAM-X
Downlink
PCS
+ FFE +
ADC BPF
Input RD = −1 RD = +1 Input RD = −1 RD = +1
3332 Note:
1. The alternate encoding for the K.x.y codes with disparity 0 allow for K.28.1, K.28.5, and K.28.7 to
be “comma” codes that contain a bit sequence that can't be found elsewhere in the data stream.
Input RD = −1 RD = +1
3337 Note:
1. Within the control symbols, K.28.1, K.28.5 are comma symbols. Comma symbols are used for
synchronization (finding the alignment of the 8b and 10b codes within a bit-stream). K28.7 also has
comma properties, but sets constraints on the symbols around it. Because K.28.7 is not used, the
unique comma sequences 0011111 or 1100000 cannot be found at any bit position within any
combination of normal codes.
2. See note 1 for Table 155.
B.3.1 RD Characteristics
3341 In the absence of transmission errors, the RD stays within −3 and +3, while it always equals −1 or +1 at any
3342 of the 6b and 4b sub block boundaries. All sub blocks have a disparity of 0, −2, or +2. Sub blocks with
3343 non-zero disparity have complementary representations with positive and negative disparity. In these cases,
3344 the representation with the disparity polarity opposite to the RD shall be used, such that RD changes from −1
3345 to +1 or vice versa at sub block boundaries, and accumulation of disparity cannot occur. The starting value
3346 of the RD may be +1 or −1 for any symbol.
3347
Participants
The list below includes those persons who participated in the Working Group that developed this Specification and who
consented to appear on this list.
Nadav Banet, Valens Semiconductor Ariel Lasry, Qualcomm Incorporated
Amit Barzilai, InvenSense, Inc. Eyran Lida, Valens Semiconductor
Craig Bezek, Teledyne LeCroy Sirius Lin, MediaTek Inc.
Alexander Brill, Intel Corporation Raj Kumar Nagpal, Synopsys, Inc.
Ned Brush, Protocol Insight, LLC Makoto Nariya, Sony Group Corporation
Tony Carosa, Protocol Insight, LLC Ramesh P E, Tektronix, Inc.
Edo Cohen, Valens Semiconductor Yash Pathak, BitifEye Digital Test Solutions GmbH
Yair Darshan, Valens Semiconductor Bill Simms, NVIDIA
Arno Distel, Valens Semiconductor Joseph Stenger, Molex CVS Dabendorf GmbH
Jatin Domadiya, Tektronix, Inc. Giuseppe Tofanicchio, STMicroelectronics
Katsushi Hanaoka, Sony Group Corporation Shinichi Watanabe, Sony Group Corporation
Eric Hong, Mixel, Inc. Stephen Wong, Intel Corporation
Kevin Kershner, Keysight Technologies Inc. Charles Wu, OmniVision Technologies, Inc.
Mohit Kumar, Intel Corporation Kentaro Yasunaka, Sony Group Corporation