R-Tile Avalon® Streaming FPGA IP for PCI Express* User Guide

ID 683501
Date 8/11/2025
Public
Document Table of Contents

5.2.3.10. Device Serial Number Capability

The PCIe device serial number capability is an optional extended capability that can be implemented by any PCIe device. The device serial number is a 64-bit value that is unique for a given PCIe device.

Table 100.  Device Serial Number Capability
Parameter Value Default Value Description
Enable Device Serial Number Capability True/False False

Enables the device serial number capability. This is an optional extended capability that provides a unique identifier for the PCIe device.

Enable Device Serial Number Write Access True/False False

Enables the Device Serial Number Capability (DEVSER) write access.

Enable this parameter if you want to dynamically set the device serial number.

Note: Setting this checkbox changes the access mechanism for the registers from Read-Only (RO) to Read-Write (RW). You must follow the steps below this table to clear the required bits after use.

Follow the steps below this table to use this feature.

Device Serial Number (DW1) 32 bits 0x0000000000000000 Sets the lower 32 bits of the IEEE 64-bit Device Serial Number (DW1).
Device Serial Number (DW2) 32 bits 0x0000000000000000 Sets the upper 32 bits of the IEEE 64-bit Device Serial Number (DW2).

Use the IP Parameter Editor to set the Device Serial Number. To update the value dynamically, perform the following steps:

  1. Set Enable Device Serial Number Capability in the IP Parameter Editor.
  2. Set Enable Device Serial Number Write Access in the IP Parameter Editor.
  3. Set the default values for Device Serial Number (DW1), Device Serial Number (DW2) in the IP Parameter Editor.
  4. Set the register bit 0x8bc[0] to 1'b1. You can use the Hard IP Reconfiguration Interface to set this bit.
    Note: Setting this bit changes the access mechanism for the registers from RO to RW. You must clear this bit once you write to the registers SER_NUM_REG_DW_1, SER_NUM_REG_DW_2 in the Device Serial Number Capability (step 7).
  5. Set the register bits in registers 0x168, 0x169, 0x16A, 0x16B with a 32-bit value for SER_NUM_REG_DW_1 (0x168 - [7:0], 0x169 -[15:8], 0x16A - [23:16], 0x16B - [31:24]).
  6. Set the register bits in registers 0x16C to 0x16F with a 32-bit value for SER_NUM_REG_DW_2 (0x16C - [7:0], 0x16D -[15:8], 0x16E - [23:16], 0x16F - [31:24]). You can use the Hard IP Reconfiguration Interface to set these bits.
  7. Set the register bit 0x8bc[0] to 1'b0. You can use the Hard IP Reconfiguration Interface to clear this bit.