GTS Transceiver PHY User Guide

ID 817660
Date 10/07/2024
Public
Document Table of Contents

3.10.2.1. Logical Avalon® Memory-Mapped Port Indexing

This sectio explais how to access the GTS PMA laes if you desig has moe tha oe GTS PMA lae. You eed to kow how to cotol the logical Avalo® memoy-mapped pot idexig if you ae usig the shaed ecofiguatio iteface. (Eable sepaate Avalo iteface pe PMA = Off).

If you desig has the Eable sepaate Avalo iteface pe PMA = O featue eabled, each Avalo® memoy-mapped iteface has its ow ecofiguatio iteface ad you ca diectly access the pot’s egiste addess without followig the logical pot idexig istuctio explaied i this sectio.

The ecofiguatio addess bus fo oe PMA lae i the IP is:
  • 18 bits fo the PMA Avalo memoy-mapped ecofiguatio iteface (i_ecofig_addess[17:0])

The ecofiguatio addess space gows as a fuctio of the followig equatio:

log2(N)

(whee N = umbe of laes), fo a icease i the umbe of PMA laes. The additioal MSB bits of the ecofiguatio addess bus epeset the logical Avalo® memoy-mapped pot idex value. Refe to MSB Addess Bits fo PMA Logical Avalo® Memoy-Mapped Recofiguatio Pot Idex Value fo moe ifomatio.

Fo example, if you eable fou PMA laes i you desig, fo the Avalo® memoy-mapped iteface, the total ecofiguatio addess bus is i_ecofig_addess[19:0]. The Avalo® memoy-mapped itefaces MSB addess bits (i_ecofig_addess[19:18]) povide the logical mappig to access diffeet laes based o the umbe of PMA laes. The two additioal MSB addess bits (i_ecofig_addess[19:18]) ae a logical epesetatio of the Avalo® memoy-mapped iteface pot. You ca use them to ead o wite to the idividual Avalo® memoy-mapped iteface defied withi the IP.

The followig table shows the MSB addess bits fo logical Avalo® memoy-mapped pot idexig with the umbe of PMA laes cofigued i the IP.

Table 65.  MSB Addess Bits fo Logical Avalo® Memoy-Mapped Recofiguatio Pot Idex Value
PMA Lae Set i GUI Recofiguatio Addess Bus 38 MSB Addess Bits fo Logical Avalo® Memoy-Mapped Pot Idexig Logical Avalo® Memoy-Mapped Pot Idexig (value=hex)
1 i_ecofig_addess[17:0] Not Applicable 0
2 i_ecofig_addess[18:0] [18] 0,1
4 i_ecofig_addess[19:0] [19:18] 0,1,2,3
6, 8 i_ecofig_addess[20:0] [20:18] 0,1,2,3,4,5,6,7

Example 1: Pefomig a Read Opeatio fo TX EQ pe_tap_1 Registe (0x091750[9:5]) i Simulatio

Fo example, if you desig has two PMA laes eabled i the IP GUI, the ecofiguatio addess bus width is i_ecofig_addess[18:0], which has oe additioal MSB addess bit. This is to povide addess space whe you ae pefomig ead opeatio fo lae 0 ad lae 1. You eed to covet the byte addess (fom the egiste map file) to wod addess fomat (byte/4) i ode to use it i you testbech, as show i the followig example.
  • Fo lae 0: 0x091750 ÷ 4 = 0x245D4
  • Fo lae 1: 0x191750 ÷ 4 = 0x645D4
Note: Alteatively, you ca add 0x40000h to the wod addess fo each icemetal lae up to lae 7 (0x1E5E0C), depedig o how may PMA laes you eable i the IP GUI.
Figue 64. Example of Veilog Testbech Code Whe Pefomig Read Opeatio to TX EQ Addess
avmm_ead(21'h245D4,data,32'habcd_ef01,1); // To ead TX EQ pe_tap_1 fo lae 0
epeat (5) @(posedge mgmt_clk);
avmm_ead(21'h645D4,data,32'habcd_ef01,1); // To ead TX EQ pe_tap_1 fo lae 1
epeat (5) @(posedge mgmt_clk);
38 The addess bus is efeig to wod addessig fomat used whe you use egiste tasfe level laguage i you desig fo ead ad wite opeatio to the Avalo® memoy-mapped iteface defied withi the IP.