This article is part of a three-part series on PCIe PERST#.
Now that we have a clear understanding about how PERST#’s routing on an AIC board as well as an SoC, let us examine some design ideas on SoCs and AIC boards with reference to PERST#
Depending on the power, clock, and reset domain, some registers may not be accessible during the time PERST# is asserted. Worse yet, some registers are readable (reads reset values) but silently discards the written value. SoC designers are strongly recommended to document the correct register file behavior so that firmware access won’t cause surprises later during bring-up phase.
If the SoC is targeted at AIC designs, to meet the AIC timing specification with reference to PERST#, the LTSSM must enter Detect within 20 ms of PERST# deassertion. Since PERST# can deassert as early as 100 ms after power is stable, that leaves roughly 120 ms from power-good in the worst case. This is a very tight timeline to meet for an SoC that has to do LBIST/MBIST as a part of hardware initialization. Please consider a small boot island with minimal subsystems if you are targeting such markets.
For the ease of software implementation a few board designs features PERST# triggering a board reset. This is a BAD design on multiple counts
The spec guarantees a minimum of 100us between stable REFCLK to PERST# deassert. But, if your clock generator (or parts of clock tree) requires more time than that to produce stable clock outputs, a small (often configurable) delay circuit may be introduced. This could help you in avoiding very weird situations like the PHY behaving badly when its brought out of reset without a stable clock … and other very hard to debug component/IP behaviors.
If your SoC does not provide a method to generate interrupts (as described previously), it would be a good option to connect PERST# to a GPIO pin that can be configured as an input which can be read by firmware determine the PERST# state. This pin can be configured as an interrupt in the GPIO block, but may entail a few problems because:
An interrupt source, with the facility to read the current value would be the ideal solution. Otherwise, a polling routine set up at sub-millisecond interval would be sufficient.
The following table lists various initializations the system firmware executes that are typically associated with different types of host’s booting
| Action by AIC firmware | Host Cold boot | Host Warm boot |
|---|---|---|
| OCM initialization | YES | NO |
| NOC initialization | YES | NO |
| MUX programming (can be several levels of multiplexers) | YES | NO |
| SIO/GPIO controller initialization | YES | NO |
| PHY reset sequence | YES | YES |
| PHY uC firmware loading and stabilization | YES | YES |
| PCIe controller reset sequence | YES | YES |
| PCIe register configuration (DBI) | YES | YES |
| GPIO block initialization | YES | NO |
| UART (for debug messages) | YES | NO |
DDR initialization (due to large configuration and training time) and non-essential non-pcie subsystems (ethernet, USB, SPI, I2C/I3C, …etc) are not carried out before the PCIe initialization. Such actions are executed by either Secondary Boot Loader or the system firmware after PCIe EP init is complete.
This section describes the problems the author and team faced while debugging a knotty problem: The Gen5 AIC failed to link up on several server platforms (Intel, AMD, ARM64) during interoperability testing. After the fixes described below, it interoperates with 9 of the 10 platforms tested. The symptoms were varied – some failed to link up, some showed non-standard device ID/vendor id, some intermittently failed, and some other behaved differently across cold and warm boot cycles.
The SoC featured a well known IP vendor’s PCIe core configured as EP(by firmware, not strapped) and PHY with the following characteristics:
The AIC design was supposed to connect PERST# to a GPIO pin, but this requirement was missed out from the board design and was not noticed until it was too late!
As described previously, this was BAD! This worked well in theory, but caused a significant number of unrelated software errors due to flash corruption. Trying to change the file system to more robust ones with journaling did not help much, just delayed the problems. Trying to run the root FS from memory was not feasible as the application required every byte of memory that can be made available, especially with the high cost of DDR now!
The most unexpected side effect was that the EP failed the timing requirement during the PCIe certification. It took about 20ms for the power rails to stabilize after board reset was deasserted. The EP’s LTSSM entered Detect about 68 ms after PERST# deassertion, more than three times the 20 ms limit!
Since the IP used could generate an interrupt on a link down event (technically two: One for LDE and one for surprise LDE), an interrupt handler was installed for serving both LDEs. The handler reads DID/VID register via DBI (for want of any better method). If read the reset values (that of the vendor), it conveyed to the software that a PERST occurred. This register was safe to access via DBI as long as the core_clk was active and stable. So, after checking the SoC clock tree and making sure that core_clk is driven by an independent clock source, this implementation was tried.
During normal operations, the link down event can be triggered by secondary bus reset from the downstream port, hot resets or normal link down events. These events do not cause the reset of the core and can be differentiated from PERST# assertion by reading DID/VID register contents.
Secondary Bus Reset uses Hot Reset to signal the reset and releases hot reset when directed by software on the host. Hot reset causes TS1s with hot reset bit set. The LTSSM leaves the current state (L0) and enter hot reset state for at least 2ms (or till the end of hot reset in case of software triggered SBR) before exiting to Detect state.
Hot reset causes the LDE but not a PERST# event. In addition to LDE, hot reset causes a hot reset interrupt to the upper layer application and is handled gracefully.
1. LDE triggers the interrupt handler that infers PERST assertion. But, it is critical to determine if the PERST deassertion. If not, the controller programming during PERST assert would be discarded silently by the PCIe core because the asserted PERST# kept the controller in reset
In order to handle this case, the interrupt handler started a poll routine to infer the PERST# deassert. The poll routine scheduled for 250us interval programmed DID/VID register once and read it back. During PERST# assert, the programmed values were lost and reset values were read. Once the read values matched the programmed values, PERST# deassert was inferred.
2. During inter-op/Compatibility testing we discovered that there are a few servers that issued multiple PERST# assertions during cold boot. This situation exposed a fatal shortcoming in the logic implemented.
During the cold boot, the firmware in the EP determines the PERST deassertion and programs the configuration space, PHY, and other components before installing the LDE interrupt handler. But, when the second PERST assertion by the host comes in, the LDE event does not occur because the link has never been established! Link down event happens only after the link has been up at least once. During the cold boot, the root port did bring its PHY out of reset and started link training only after the second PERST# assertion.
Since we cannot depend on LDEs during the host boot up state, using a timer interrupt, we implemented a FSM with three states. During cold boot, the FSM would stay in INIT state and infer the PERST# state once every 500us. First run after PERST# deassert, FSM advances to PROGRAMMED state and continue in it. FSM progresses to OPERATIONAL state once the actual link up event occurs. A PERST assert in any state would take the FSM to INIT. An ordinary link down event (or hot-reset/SBR) would cause the FSM to enter PROGRAMMED state and wait for link up event.
The idea behind Receiver Detect bitfield is that, once LTSSM enters the Detect.Active state, it would execute the Electrical Detection procedure and find if a link partner exists. This method turned out to be unreliable in some platforms. There are a few problems associated with this approach.
This register bit shows if the CDM is in reset. Whenever the controller state changes to reset (including PERST# assertion), this bit would be 1. Once PERST# is deasserted and the controller gets out of reset, will change to 0. This bit is readable irrespective of PERST and can be used as an indicator if you want to avoid read/write cycles to VID/DID register.
During SBR/Hot Reset, this bit gets asserted even when PERST# remain deasserted. So, additional checks are required to infer correct state of PERST#
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.
This article is part of a three-part series on PCIe PERST#.
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.
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:

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.

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:
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.
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:
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.
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:
On an SoC, the PCIe controller is a NoC-attached peripheral, typically exposing:
PERST#’s relationship to these interfaces is an important design decision, not an automatic consequence:
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.
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.
This article is part of a three-part series on PCIe PERST#.
Most PCIe bring-up debug efforts eventually trace back to one net: PERST#. Beginners take it as an unassuming active-low signal that is driven from the RC side to indicate it is ready for link training. As one gains more experience working with PCIe, it becomes clear that PERST#’s role is way beyond that initial take — it plays a vital role in power sequencing, clock domain design, PHY architecture, and system firmware. Getting it wrong either in the SoC design or in the board design gets you a link that trains intermittently, a device that enumerates only on cold boot, or only on a set of host machines, or a controller that hangs waiting for a PHY that never came out of reset cleanly. This is the first part of an article series that walks you through PERST# from the protocol definition down to the physical pin, aimed at engineers who already are familiar with LTSSM and configuration space, and have a fair understanding of PCIe controllers, PHYs, and the interconnects used in SoC designs as well as board designs. The author sincerely hopes that this article series would be helpful in throwing some light on the reasons this signal is treated with so much reverence in both the CEM specification and real SoC integration guides.
PERST# (PCI Express Reset, active low) is the signal controlling the fundamental reset of the PCI Express hierarchy, defined in the PCI Express Card Electromechanical (CEM) Specification and referenced throughout the PCIe Base Specification as the mechanism that forces every downstream component into a known, deterministic state. Please note that this is not the fundamental reset signal, but one that triggers the fundamental reset. It is distinct from every other reset mechanism listed previously, for PERST# is the only one of these that is a physical, sideband, asynchronous signal. Hence its significance: it doesn’t depend on the link being trained, doesn’t depend on REFCLK being valid, and doesn’t depend on any prior protocol state. It exists specifically so that the system can guarantee a clean, known starting point regardless of what state the device or the link was previously in — including states where the LTSSM itself might be wedged.
In such contexts, PERST# needs to be treated as the synchronization boundary between the power/clock domain and the protocol domain. Nothing in the LTSSM, DLLP, or TLP layer is deemed to be valid until PERST# has been properly sequenced relative to power rails and REFCLK.
PERST# is unambiguously a Root Complex (host)-driven, downstream signal. In a conventional topology — whether that’s a CEM add-in card, an M.2 SSD, or an SoC-to-SoC embedded link — the Root Complex side (or, more precisely, the platform reset logic associated with the RC) drives PERST# to every downstream port it owns. The endpoint never drives its own PERST# input; it only observes it.
In practice, “the RC drives it” is a simplification worth unpacking for board/SoC and firmware designs, because the actual driver is rarely the PCIe controller IP itself:
One point worth calling out explicitly for multi-slot hosts: PERST# is generally wired exclusive to a slot, even when the upstream rails and clock feeding those slots are shared or commonly-derived. 12V and 3.3V main power are typically sourced from common system rails but gated per slot through individual power switches; 3.3Vaux is generally a shared standby rail; and REFCLK is usually distributed from a single oscillator through a clock buffer/fanout IC into electrically separate, per-slot outputs (a “common clock” architecture), or in SRNS/SRIS designs, as fully independent per-slot oscillators. PERST#, by contrast, is recommended to be allocated per slot and driven by dedicated platform sequencing or hot-plug controller logic, because each slot needs to be independently populatable, sequenced, and resettable without disturbing devices already running in neighboring slots — a shared PERST# line would trigger every device on it into fundamental reset whenever any one slot was hot-plugged or reset.
Because PERST# deassertion timing has a minimum but no maximum, the actual moment PERST# is released is entirely a host/platform policy decision, not a protocol-mandated one. In practice this means:
The practical takeaway for anyone debugging enumeration failures: if a device isn’t training reliably, the first two things to interrogate are —
(1) was PERST# actually held long enough relative to rail stability and REFCLK stability, and
(2) is the deassertion edge itself clean (no glitching from a marginal GPIO driver or a poorly-terminated long trace) — because the spec’s permissiveness on maximum timing means platform firmware bugs, not protocol ambiguity, are the usual root cause of PERST#-related bring-up issues.
From the endpoint’s point of view, PERST# is the master signal that holds the entire PCIe subsystem — controller, PHY, and often parts of the interconnect bridge logic — in a defined reset state while platform configures and stabilizes the electrical and clocking environment. Specifically, while PERST# is asserted, a compliant endpoint must:
Thus, PERST# is not “just a reset” but serves as the gating signal for the entire endpoint bring-up state machine. The rest of this article series follows PERST# down through the core, the PHY, and the PIPE interface.
The CEM specification defines the PERST# related timing for add-in cards. Every embedded implementation modeling itself on CEM AIC behavior must comply with these timings. The three timing parameters that matter most are:
Critically, there is no maximum time specified for PERST# deassertion. That means, PERST# may remain asserted indefinitely with no protocol-level consequence — a system can sit with PERST# held low for milliseconds, seconds, or (in some low-power/standby platform states) far longer, and the endpoint is required to simply continue waiting in its reset state. This “no max” property is what makes PERST# usable as a general-purpose platform sequencing tool rather than a narrowly-timed protocol signal. This lets platform designers freely gate PERST# release behind arbitrarily long board-level or firmware-level sequencing without violating the spec.

In the next part of this article series, we delve deep into the relevance of PERST# in an Endpoint — from the design stage of the SoC all the way up to board bring up.
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.