In this second part of the PERST# deep dive, we delve deep into the propagation of PERST# from the edge of the AIC all the way to SoC. We also try to draw a detailed picture of how PERST# affects each component of the AIC.
PERST#: Board-Level Connection Routing
For an AIC (or a board-to-board embedded link), PERST# has to physically traverse the card edge connector, board traces, potential voltage domains, and any role-selection logic before it reaches the SoC pin. Key elements are:
Gold fingers (card edge connector): On a CEM AIC, PERST# is a dedicated pin on the card edge connector that is at a defined position per the CEM mechanical spec. This is always driven from the host/slot side into the card, and is always an input for the card-side PHY and controller.
Voltage translators: PERST# on the CEM connector is specified at a 3.3V-tolerant logic level. Many modern SoCs run their GPIO/IO rings at 1.8V or lower for the relevant bank. Any board that bridges a 3.3V CEM-defined PERST# net to a lower-voltage SoC pin needs a level translator in the path. Omitting this detail is a classic cause of intermittent PERST# sensing failures or, worse, IO reliability issues from over-voltage stress on an SoC pad not rated for 3.3V.
MUX to GPIO for dual role (EP/RC) support: Where the SoC's PCIe controller/PHY can operate as either an endpoint or a root complex depending on product configuration, the PERST# pin's direction requirement flips (input when acting as EP, output when acting as RC driving a downstream device). Board designers handle this either with an actual analog mux/switch selecting the net's source, or — more commonly in modern SoCs — by muxing the function at the SoC pin level (pinmux selecting GPIO output mode vs. dedicated PERST-input mode) and using a resistor/no-populate strategy on the board to define which mode is stuffed for a given board variant.
Figure 1: PERST# signal flow path on an EP AIC
PERST#: On-SoC Connection Routing
Inside the SoC, PERST# (or its internal GPIO-muxed equivalent) has to be distributed from the pad, through pinmux and pad-strength configuration, into the correct reset domains feeding the PHY and controller, all while respecting the SoC's broader power-domain and reset-domain architecture.
Figure 2: Typical routing of PCIe EP data/control paths and PERST# in an SoC
SoC PinMUX: Even when the board doesn't do external role selection, the SoC pinmux itself typically must select whether a given pad functions as a dedicated PERST# input, a general-purpose GPIO (driven as PERST# output in RC mode), or another alternate function entirely — this is standard SoC pad-mux configuration, set by boot firmware/fused configuration before the PCIe subsystem is brought out of reset.
Routing to the PHY: Internally, PERST# (post-synchronization) is typically distributed as a low-skew reset tree directly to the PHY's reset pins (per-lane SerDes reset and PLL reset) as well as to the MAC/controller reset input, often with local reset synchronizer flops in each destination clock domain to convert the asynchronous PERST# assertion into a clean synchronous release in that domain's clock.
Reset domains and power planes: This is where PERST#'s system-level significance really shows up in SoC power architecture. PERST# sensing logic is frequently placed in an always-on (AON) power domain, so the SoC can detect and respond to PERST# assertion/deassertion even if the main PCIe/core power domain is power-gated for low-power states — this matters for platforms that power down the PCIe PHY/controller during suspend but still need to observe PERST# transitions to know when to re-power and re-initialize. Correspondingly, the PCIe subsystem often spans multiple power planes (VDD_AON for reset/wake sensing, VDD_CORE for digital MAC logic, VDD_PHY/VDDA for the analog SerDes), and the reset architecture has to guarantee that PERST#-driven resets are asserted and held correctly across all of these planes' power-up sequencing — i.e., the digital core reset must not release before its power plane is stable, and the PHY analog reset must not release before its own (often separately sequenced) analog supply and REFCLK are valid, even though all of it is ultimately gated by the same external PERST# event.
Drive strength control in RC mode: When the pin is configured as an output driving PERST# to a downstream device, pad drive-strength settings need to be configured to meet the downstream device's input timing and the trace's electrical characteristics
PERST# and the EP Controller
Inside the digital controller — the LTSSM, Data Link Layer, Transaction Layer, and configuration space block — PERST# is typically wired as (or synchronized into) the controller's primary asynchronous reset. Architecturally this reset needs to be:
Asynchronous assert, synchronous deassert. PERST# can assert at any time relative to the core clock (it's an external, asynchronous event), so the reset tree must guarantee immediate assertion regardless of clock state, while deassertion is synchronized to the core clock domain to avoid metastability on the LTSSM's state registers.
Global to the LTSSM and DLL/TL state machines. On assertion, the LTSSM is forced back to its initial detect-equivalent state, all replay buffers and DLLP sequence-number state in the Data Link Layer are cleared, and Transaction Layer credit initialization state is invalidated — the link has to fully re-establish flow control credits after the next LTSSM training sequence, exactly as it would after a cold boot.
Global to configuration space, with the caveat that PCIe explicitly permits certain state to be sticky across fundamental reset if it's powered by Vaux (auxiliary power) and the device advertises AUX_PWR support — this is the mechanism that allows PME context and some wake-related state to survive PERST# assertion in systems that keep 3.3Vaux alive during S3/S4/S5.
The important nuance for a core architect: PERST# is usually not fed raw into every flop in the design. It's brought in as a chip-level asynchronous reset, synchronized locally per clock domain (core clock, AUX clock, PIPE PCLK domain), because a modern controller has several clock domains that are not all active or valid at the same time PERST# transitions.
PERST# and the PHY Instance
The PHY (SerDes) is arguably more sensitive to PERST# sequencing than the digital core, because it contains analog blocks — PLLs, bias generators, receiver termination and CDR — that have real settling-time and reference-stability requirements. When PERST# is asserted:
PLLs are typically held in reset/power-down, since there is no guarantee REFCLK is stable or even present.
Transmitters are forced to electrical idle (no differential signaling), which is a hard PCIe electrical requirement — an endpoint must never drive TX during PERST# assertion.
Receiver termination and detection circuits are held inactive, since receiver detect (the analog mechanism the LTSSM's Detect state uses to sense a far-end termination) is meaningless without a stable reference and powered analog front end.
Calibration state (Tx driver impedance calibration, Rx offset calibration, etc.) is invalidated and must be re-run as part of PHY initialization after PERST# deasserts.
This is why PERST# deassertion is never the moment link training begins — it's the moment PHY initialization is permitted to begin. There's a whole sequence (PLL lock, calibration, PIPE interface handshake) that must complete before the LTSSM is even allowed to leave Detect.Quiet for Detect.Active.
PERST# and the PIPE Interface
The PIPE (PHY Interface for PCI Express) specification defines the standardized digital boundary between the MAC/controller and the SerDes PHY, and it explicitly includes reset semantics in that boundary. PERST# (or a chip-level derivative of it, as depicted in the diagram) is generally wired to the PHY's reset input as defined in PIPE, and its effect on the PIPE interface signals includes:
PCLK validity: PIPE's parallel clock (PCLK), sourced from the PHY back to the MAC, is not guaranteed valid until PHY reset has been released and the PLL has locked. Controllers must not sample PIPE signals off an invalid PCLK.
PowerDown state forcing: PIPE defines PowerDown[1:0] encodings (P0, P0s, P1, P2, and the PIPE-specific reset-adjacent states). On PERST# assertion, PowerDown is forced/expected to reflect a non-operational state, and the MAC does not attempt to transition the PHY through P0 (active) until reset is released.
TxElecIdle forced active: consistent with the electrical idle requirement, TxElecIdle is held asserted so the PHY's transmit drivers remain in idle.
RxValid/PhyStatus gating: RxValid and PhyStatus outputs from the PHY are not considered meaningful while the PHY is held in reset — the MAC must not act on receiver status until after the standard PIPE initialization handshake (PhyStatus toggling to indicate PHY ready, RxElecIdle reporting valid electrical idle detection, etc.) completes post-PERST#.
PERST# and the AXI/APB
On an SoC, the PCIe controller is a NoC-attached peripheral, typically exposing:
One or more AXI (or AXI-like) master interfaces carrying the data path — inbound and outbound TLPs translated to/from AXI read/write transactions, DMA traffic, MSI/MSI-X writes, etc.
An AXI slave interface for the host/local processor to access the controller's memory-mapped BARs or perform configuration-space-mapped accesses in RC mode.
A separate APB (or similar low-speed) control interface, used for register configuration, status/interrupt reporting, and debug access to the controller and PHY
DBI/DBI2 (via APB ↔ DBI/2 bridge) for Internal / Configuration space / shadow register access
PERST#'s relationship to these interfaces is an important design decision, not an automatic consequence:
The AXI data path is almost always reset by PERST# (directly or via the controller's internal reset tree), because there is no valid TLP traffic possible while the link is down — any in-flight AXI transaction tied to link activity becomes meaningless and potentially dangerous to leave outstanding (a hung AXI transaction can stall the NoC if not fenced off).
The APB control/status interface is frequently kept out of the PERST# reset domain, or reset by a separate, narrower reset, specifically so that firmware/software can still read status and sticky registers (link state history, AER logs, PHY calibration status, error counters) after a PERST# event, for debug and recovery decision-making. This is a deliberate architectural split to make the control-plane register file available for analysis to determine what state things were in beforehand, even though the data-plane pipeline is being torn down.
This split is one of the more subtle but important pieces of SoC-level PCIe integration: PERST# is not a single flat reset net, but one fans out into at least two or three distinct reset domains (PHY analog reset, MAC/LTSSM core reset, and AXI datapath reset).
In the next part of this series, we will discuss several issues on a production AIC which all were traced back to PERST# and some of the methods to solve/eliminate such problems.
Closing Thought
What makes PERST# worth an entire article series is that it's simultaneously the simplest signal in the PCIe stack — one wire, one polarity, one job — and the signal most deeply entangled with everything outside the protocol: power sequencing, clock architecture, board electrical design, and firmware boot flow. The LTSSM gets all the attention in protocol discussions, but the LTSSM doesn't even get to start until PERST#, REFCLK, and power have all agreed the system is ready — which is exactly why so many "protocol" bring-up bugs turn out, on inspection, to be PERST# sequencing bugs in disguise.
Fighting a PCIe bring-up, link-training or PCI-SIG compliance issue? Bluehatsoft helps teams bring up PCIe endpoints and pass compliance. Get in touch with us or email us at contact(at-the-rate)bluehatsoft(dot)com.