Visible to Intel only — GUID: usz1575514982490
Ixiasoft
3.2.4.6. Ethernet MAC Wrapper Register Access
Host processor access to Ethernet MAC Wrapper is by the CCI-P interface using MMIO indirect access as described in the FPGA Internal Register Access section. The RTL modules for register access are included in the encrypted portion of N3000 design and these modules must be included in your design.
- CCI-P required Device Feature Header (DFH) and Information registers are located inside fpga_top.
- Indirect access control register and status registers are located in phy_indir_wrap.
- Ethernet MAC, PHY and multiplex/de-multiplex control and status registers are located in nfv_eth_wrapper.
inteldevstack/src/opae-*.*/usr/tools/extra/fpgadiag/fpgastats.py
The following description of registers below is provided for informational purposes. Do not change or modify this area code, but understanding how this works helps you create your AFU. When the lightweight mode is used, the Ethernet MAC registers are not included.
Register | Address Offset |
ETH_GROUP_0_DFH | 0x7000 |
ETH_GROUP_0_INFO | 0x7008 |
ETH_GROUP_0_CTRL | 0x7010 |
ETH_GROUP_0_STAT | 0x7018 |
ETH_GROUP_1_DFH | 0x8000 |
ETH_GROUP_1_INFO | 0x8008 |
ETH_GROUP_1_CTRL | 0x8010 |
ETH_GROUP_1_STAT | 0x8018 |
The Information register consists of the following fields:
FIELD NAME | RANGE | ACCESS | DEFAULT | DESCRIPTION |
Reserved | [63:26] | RsvdZ | 0x0 | Reserved |
MAC light weight mode | [25] | RO | 0x0 | 0 - MACs are in normal mode 1 - MACs are in light weight mode |
Direction | 24 | RO | 0x0 | 0 – XL710 side 1 - Network side |
Speed_Gbs | [23:16] | RO | 0xA | Allowed: 10, 25, 40 Gbs. |
NofPHYs | [15:8] | RO | 0x8 | Number of PHYs in group |
GroupID | [7:0] | RO | 0x0 | Unique identifier of phy group. ETH_GROUP_0 = 0, ETH_GROUP_1 = 1 |
The indirect control field has one version for 10G mode and a second version for 25G and 40G mode. The 10G mode is shown below:
FIELD NAME | RANGE | ACCESS | DEFAULT | DESCRIPTION |
command | [63:62] | RW | 0x0 | Command: 0x0 - NOP 0x1 - RD request 0x2 - WR request |
reserved | [61:54] | RO | 0x0 | |
device select | [53:49] | RW | 0x0 | 0x0 - Ethernet Wrapper regs select 0x2, 0x4, 0x6, 0x8, 0xA, 0xC, 0xE, 0x10 - PHY select 0x3, 0x5, 0x7, 0x9, 0xB, 0xD, 0xF, 0x11 - MAC select |
PHY select | device select = 0x2, 0x4, 0x6, 0x8, 0xA, 0xC, 0xE, 0x10 | |||
add features select | [48] | RW | 0x0 | 0x0 - phy select 0x1 - reset controller / link status select |
PHY Address/reset ctrl/link status | [47:32] | RW | 0x0 | add features select = 0x0: PHY reconfiguration interface www.altera.com/literature/hb/arria-10/ug_arria10_xcvr_phy.pdf add features select = 0x1: ref. to add features tab. |
MAC register address | [48:32] | RW | 0x0 | When device select = 0x3, 0x5, 0x7, 0x9, 0xB, 0xD, 0xF, 0x11 This field is for Ethernet MAC IP registers as defined in: www.altera.com/en_US/pdfs/literature/ug/ug_32b_10g_ethernet_mac.pdf. |
ethernet wrapper regs address | [48:32] | When device select = 0x0 This field includes Ethernet Mux/De-Mux registers |
||
write data | [31:0] | RW | 0x0 | Write data for phy registers |
For 25G and 40G mode:
FIELD NAME | RANGE | ACCESS | DEFAULT | DESCRIPTION |
command | [63:62] | RW | 0x0 | Command: 0x0 - NOP 0x1 - RD request 0x2 - WR request |
reserved | [61:54] | RO | 0x0 | |
device select | [53:49] | RW | 0x0 | 0x0 - ethernet wrapper regs select 0x2, 0x4, 0x6, 0x8 - PHY select 0x3, 0x5, 0x7, 0x9 - MAC select |
PHY select | device select = 0x2, 0x4, 0x6, 0x8 | |||
add features select | [48] | RW | 0x0 | 0x0 - phy select 0x1 - reset controller / link status select |
PHY Address/reset ctrl/link status | [47:32] | RW | 0x0 | add features select = 0x0: add features select = 0x1: ref. to add features tab. |
MAC select | device select = 0x3, 0x5, 0x7, 0x9 | |||
[48:32] | ||||
Ethernet Wrapper regs address | [48:32] | When device select = 0x0 This field includes Ethernet Mux/De-Mux registers |