Low Latency 40G Ethernet IP User Guide: Agilex™ 5 FPGAs and SoCs

ID 813652
Date 10/24/2025
Public
Document Table of Contents

7.6. Shadow Register

The statistics counters can take a snapshot of the counter values during operation. This allows for coherent reads of the upper and lower halves of the 64-bit counters without concern of rollover glitches.
Note: The statistics counters continue to increment while in shadow register access mode. Only the register read operations are affected. Shadow register operations are independent for receiver and transmitter statistics counters. To freeze both, you need to set bit 2 on both registers 0x845 and 0x945, and confirm the request by checking bit 1 on registers 0x846 and 0x946.

Follow these steps to perform shadow register accesses:

  1. Set bit 2 of offset 0x45 to perform a shadow request.
  2. Wait until bit 1 of register offset 0x46 is set to indicate a shadow request grant.
  3. You can now perform reads on all frozen statistics counter values.
  4. When finished, clear bit 2 of register 0x45 to release shadow request.
  5. Wait until bit 1 of register 0x46 has cleared to confirm release of shadow request.