Home

AXEL-X MB8AA3020 Programmer Manual

image

Contents

1. MAC Addresses API Access REG_STA aa bb cc dd ee ff data 0x0000 type 0x0000 data 0x0000 msw ee ff data 0x0000 lsw2 cc dd data 0x0000 lswl aa bb Example MAC Address Assignment to REG STA Below is an example where a MAG address of 00 11 F5 76 82 61 and an EtherType of 88B5 to the REG STA MAC Addresses API Access Reg STA 00 11 F5 76 82 61 data 0x88b5 type 0x88b5 data 0x8261 msw 82_61 data OxF576 lsw2 F5_76 data 0x0011 lswl 00_11 Example MAC Address Assignment to PORT 0 Below is an example where a MAC address of 00 11 F5 AB CD EF is applied to port 0 Recall that for ports an EtherType entry is not required a MAC Addresses Port MAC Control Hst_Adr_0 00 11 F5 AB CD EF data 0x0000 data OxCDEF data OxF5AB data 0x0011 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 10 2 3 2 Configuring 10GBE Transmitter and Receiver Fujitsu MB8AA3020 10GBE switch has an integrated 5 TAP FIR
2. Interface Core ICB skip data ref ICB MDIO MII 0 Interface ICB task29 bp3 MDIO Port 2 bp 3 skip data 0x0000 Interface Core ICB skip data ref ICB MDIO MII 0 Interface ICB Task Dependency MDIO 1 gt Port 21 MDIO 2 gt Port 23 In addition to the PHY initialization the CB_mdio asm file needs to be modified based on the PHY initialization sequence This is especially true if the MDIO interface is connected to the PHY because the PHY address is embedded in the initialization code Using the AXEL X evaluation board as an example port21 is polling PHY register 1 at PHY address 0 via MDIO 1 and port 23 is polling PHY register 1 at PHY address 0 via MDIO 2 Below is an excerpt of the Firmware asm showing this task21_bp3 Task Port 21 bp 4 3 Port IRQ Service Required vector Mode data 0x4003 Use MDIO 0 for polling Mode 3 data 0x0000 Link up Check Threshold This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or anv other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminarv and should not be relied upon for accuracv or completeness 17 task23_bp3 Task P
3. XAUI ports i e ports 0 3 4 7 19 and transmitter and receiver polarity are swapped for XFI ports i e ports 1 2 5 6 This may not be appropriate for all applications In order to modify the lane or polarity swapping use XL LANE POLARITY SWAP CONTROL REGISTER i e 0xC002 as described in Table 49 of AXEL X MB8AA3020 PCS Register Specification Below is an example where the transmit XAUI ports lanes are swapped but the transmit polarity is not swapped This parameter can be found in both the axelx_pcs_phy_cfg_adaptive_eval_board txt or axelx_pcs_phy_cfg_fixed_eval_board txt file S2 0xc002 0x0030 XL_LANE_SWAP_CTL Set Tx polarity swap This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 13 2 3 2 3 Configuring the Port Configuration Register By default all 1OGBE ports are disabled with the generic firmware version In order to enable the ports by default follow the instructions below Below is an excerpt from the file CB_reg asm In this file the first two data fields of the pointer ICB Default 0 controls the
4. Port Configuration Register i e base 000h as described in AXEL X MB8AA3020 Register Specification ICB Default 0 all Port Config data 0x0001 0xd2000001 data 0xd100 131 Port Reset data 0x3800 data ref ICB Default 1 In order to change the port from the default disable state to a forwarding state bits 16 17 in the port configuration register needs to change from their current state of 00 to 11 This is illustrated below ICB Default 0 all Port Config data 0x0001 0xd2000001 data 0xd103 31 Port Reset data 0x3800 data ref ICB Default 1 2 3 3 Initializing GMII MII Registers The initialization of the MII GMIl interface is dependent on the user environment By default the generic firmware version initialization sequence for the GBE interface is based on the AXEL X evaluation board which has two external PHYs connected to the AXEL X s MII GMII ports So by default the generic firmware initializes these two 10 100 GBE ports as GMII and assumes that there is an external PHY connected to these ports While this is appropriate for the AXEL X evaluation board it may not be suitable for all applications This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without not
5. filter used for additional pre emphasis and a 2 order linear amplifier used for receiver equalization The details of which can be found in AXEL X MB8AA3020 PCS Register Specification Before programming the on chip the user must decide on the following configuration parameters XAUI mode of operation of XFI mode of operation for XFI 10GBE ports Transmit pre emphasis co efficient to be used Fixed gain or adaptive gain equalization for the receiver Transmitter lane swapping Transmitter polarity swapping Receiver lane swapping Receiver polarity swapping Below is an example of how to modify the on chip code for adaptive gain Example Modification of Receiver Gain In order to modify the receiver for fixed or dynamic gain open the Makefile Below is an excerpt from the Makefile AWK gawk PCS_AWK bin ICB_PCS awk PCS_CONF axelx_pcs_phy_cfg_adaptive_eval_board txt PCS_CONF register axelx_pcs_phy_cfg_adaptive_eval_board txt PCS_CONF register axelx_pcs_phy_cfg_fixed_eval_board txt By default the on chip code is set up to use adaptive gain If you wish to use fix gain comment out the line PCS_CONF axelx pes phv cfg adaptive eval board txt and uncomment out the fixed gain line PCS CONF axelx pcs phv cfg fixed eval board txt This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or
6. used for manufacturing or anv other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminarv and should not be relied upon for accuracv or completeness 11 Below is an example of a Makefile that uses fixed gain AWK gawk PCS_AWK bin ICB_PCS awk PCS_CONF axelx_pcs_phy_cfg_adaptive_eval_board txt PCS_CONF register axelx_pcs_phy_cfg_fixed_eval_board txt Note Please remember to assign the right path to these files Without the correct path the Makefile will not compile properly For adaptive gain you do not need to modify any receiver co efficient since they are determined automatically using the adaptive equalization algorithm this is not the case for fixed gain For fixed gain you need to modify the following the gain co efficient The file that need to be modified is axelx_pcs_phy_cfg_fixed_eval_board txt and the procedure used to modify the fixed gain parameters can be found in AXEL X MB8AA3020 PCS Register Specification 2 3 2 1 Configuring Transmit Pre emphasis The default transmit pre emphasis parameters can be found in either axelx_pcs_phy_cfg_adaptive_eval_board txt or axelx_pcs_phy_cfg_fixed_eval_board txt depending if the user is using fixed or adaptive gain Below is an excerpt from the axelx_pcs_phy_cfg_adaptive_eval
7. 14 MAC Address xx xx xx xxixxixx N A Port 14 Hst Adr 15 MAC Address xx xx xx xxixxixx N A Port15 Hst Adr 16 MAC Address xx xx xxIxxixxixx N A Port 16 Hst Adr 17 MAC Address xx xx xx xxixxixx N A Port 17 Hst_Adr_18 MAC Address XX XX XX XX XX XX N A Port 19 Hst_Adr_19 MAC Address xx xx xx xxixxixx N A Port 20 Hst Adr 21 MAC Address xx xx xxIxxixxixx N A Port21 Hst Adr 23 MAC Address xx xx xx xxixxixx N A Port 23 Reg STA MAC Address xx xx xx xxixxixx Ethertvpe U l J v Register Station Address Figure 1 Field Description MAC Address and EtherType Field This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness Note It is important to note that in order for the switch to function properly a valid MAC address must be assigned for every port and station address Below is an excerpt from the MAC_address asm file The first data field is two bytes long and refer to the EtherType the rest of the data field refer to the MAC address The EtherType is only used in the REG_STA address there is no requirement to assign an EtherType for the ports
8. AXEL X MB8AA3020 On Chip Code User Manual REVISION 1 2 TABLE OF CONTENTS TABLE OF CONTENTS cccccccssscsssccecssccsccsccsescessscsecssccncsscsseceecsessesssccecsscsnececcsessussscsecsescsececsceseesesssecees 2 LIST OB BIGURES i ii sssictectatissstctaces cosesicassesensacsdeassecevacsdasdebdescbosaesenedsassieucbessbcdsbacaesssbessasesbeccocbebacadasonns 3 LIST OF TABLE G cccsssssssssssessessssessessssessessssessessssessessssessesessessessssessessssessessssessessssessesessessessssessessssesees 3 1 0 ABOUT THIS MANUAL uuu cccssccscsscsessnssccsscscnscssenessssnscesnessossessnessssnessessessessessnsssssnessessessosseseoes 4 1I DOCUMENT ATA l STA A 4 1 2 ACRONYM A AE eo saire SES ait 5 2 0 INTRODUCTION iisccccscpcsisteactscceneseboatecadescnsectssasesctsssesassesnsececsdensetessaansedsseasecndiacasedsocessdecseceicbecceasieosse 6 2 1 BYTE DATA ORGANIZATION iii vit beta i EEA Es ps 7 2 2 MIGRO COMMANDS iii sie EENE evecsnestrertuteseebeet 8 2 3 GETTING STARTED i ib bie bo bat SK abba EEEo oth econ EA EEE SE EEEE EEEE 9 2 3 1 Assigning MAC Addresses sen esnenennnenenannnnanan nanna smart an ans nanna ananas 9 2 3 2 Configuring LOGBE Transmitter and Receiver sse eneenenenenennnenznnnznnenznnnnnnnnnnann nanna 11 2 3 2 1 Configuring Transmit Pre emphasis sess nennennnennnnennnznnnenannnnnsnnnsannnnnnn nsa nn na an 12 2 3 2 2 Configuring Transmit Receive Lane and Polarity Swapping ss ssmeeseeesenzznnnznzznnzenzzznz
9. ICB gt ik Enable Link GearBox Reset Fault Handler Execute PCS Wait Count O Restart ICB A Wait Timer C Wait Count PCS Status Clear Wait Time Check Link Status mee Read PCS Status 2 Read PCS Status 2 clear link handler bit 11 10 Wait Count 0 Wait Timer A Wait Count Threshold ku Wait Count lt Threshold Check Link Status T U Execute Link Fault p ICB o Threshold 1 No ied mMWait Count lt Threshold Figure 4 Initialization Sequence for 1OGBE Task This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 24 4 0 Building MB8AA3020 Firmware Image This section describes how to build the image for MB8AA3020 These same instructions can be found in the ReadMe file of the On Chip Code released with the chip 4 1 Build Procedure In order to compile the MB8AA3020 code the following is needed e MB8AA3020 on chip source code described ab
10. _Count 0 l Wait Timer A 10ms l Wait_Count Wait_Count 0 Wait Link Down Polling Timer Wait Count m a TA Lge SS ae ey LA lt 8 wae Threshold 1 Ta Wait_Count lt Threshold lt Se ME Ves Threshold 1 Wait Count lt Threshold im eee MAN ML i S Se ar no Wait Timer B 10ms Execute Link up ICBA Wait Timer C 10ms l l Execute Link up ICB B Enable Link Fault Handler End Execute Link Fault ICB Figure 3 Initialization Sequence for MII GMII Task This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 23 3 3 2 Initialization Sequence for 10GBE Shown in Figure 4 is the initialization sequence for the 10GBE task Execute PCS Restart ICB B Wait Timer B Execute Port ICB l Execute PCS ICB Execute PCS Link up ICB Wait Time for GearBox Reset Execute Link up
11. _board txt transmit pre emphasis co efficients for port 0 These transmit pre emphasis co efficients are optimized specifically for the AXEL X evaluation board and may not be appropriate for all applications PORT 00 Select port number 00 19 mode value f M1 5 Select adaptive mode step addr data S2 0x0007 0x0001 PCS_CTL2 Select XAUI mode S2 0xc002 0x000f XL_LANE_SWAP_CTL Set Tx polarity swap S2 0xc003 0x86a0 PHY PLL MODE CTL Set PHY PLL mode S2 0xc000 Ox00ff PHY_PWR_DOWN_CTL Assert PHY Tx Rx PD signals S2 0x0000 0x8000 PCS_CTL1 Reset PCS S2 Oxc010 0x03f0 HA PHV TXO EQ CFGO Set Tx lane 0 tap 0 with 463 0 S2 Oxc0ll 0x03f0 PHV TXO EQ CFG1 Set Tx lane 0 tap 1 with 463 0 S2 Oxc012 0x0330 HA PHV TXO EQ CFG2 Set Tx lane 0 tap 2 with 451 0 S2 O0xc013 Ox13f1 PHV TXO EQ CFG3 Set Tx lane 0 tap 3 with 63 1 S2 Oxc014 0x0000 PHV TXO EQ CFG4 Set Tx lane 0 tap 4 with 0 0 S2 Oxc015 0x03f0 HA PHY_TX1_EQ CFGO Set Tx lane 1 tap 0 with 63 0 S2 Oxc016 0x03f0 HA PHV TXI EQ CFG1 Set Tx lane 1 tap 1 with 63 0 S2 Oxc017 0x0330 HA PHY_TX1_EQ CFG2 Set Tx lane 1 tap 2 with 51 0 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All infor
12. e accurate such information is preliminary and should not be relied upon for accuracy or completeness 21 From MAC Address Table ICB Set Initialization Completion Flag task_ 26 27 Firmware asm task_24 Firmware asm task 28 29 Firmware asm task_ 0 19 Firmware asm task 21 23 Firmware asm Port Core ICB Port Tasks I F I2C MDIO Task API Handler Ready Resolve Task Resolve Task Dependency Dependency Port ICB I F Reg ICB PCS ICB I F ICB I F ICB Done Wait Link Up Set Initialization Completion Flag Set Initialization Completion Flag l Sleep and wait request Figure 2 Initialization Sequence This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 22 3 3 1 Initialization Sequence for MII GMII Shown in Figure 3 is the initialization sequence for task 21 23 MII GMII task Start l Execute Port ICB l Wait
13. i 13 2 3 2 3 Configuring the Port Configuration Register sms ennenenenenennnnnnn ens nnnn nn nsa 14 2 3 3 Initializing GMII MII Registers senser eee ens ns s sena 14 29 31 External PAY Initializatioti 5 22 cevasessancese se cxsags se seetns irekkosi ie tesiiv aeee ea aine a oae 16 2 3 3 Initializing 2C Master POVtS oirn dis see paa ss qas b da 19 3 0 MICRO ENGINE DESCRIPTION sssnsonosnnonzonnsnonoonoonoensooenneesonneoneneessenoen ses esneesoeneenemeen sena 20 Ball MASK STRUCTURE ves i a visses isp tecescouceneustesecesenvesteelevaests cst a O E AAS 20 3 2 MB8AA3020 INITIALIZATION SEQUENCE cccsssssscecececeeseaeceeccecsessaececececseseaececececeeseaseeeeeseseneaees 21 3 3 1 Initialization Sequence for MII GMII Lee nennnnn nn nn nan anna ann ern sas nsa 23 3 3 2 Initialization Sequence for IOGBE LLL nee sens ens nannan tannar ann sr nassa 24 4 0 BUILDING MB8AA3020 FIRMWARE IMAGE sssnssnosnennzsnnennonnenonoensonoensensenneoneeneenoemeeseena 25 4 1 BUIED PROCEDURE aoteana ae E a rE AE A cols ri b a b b a 25 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or anv other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is prelimi
14. ice While the information contained herein is believed to be accurate such information is preliminarv and should not be relied upon for accuracv or completeness 14 Below is an excerpt from the Firmware asm file which shows the initialization of the two Ethernet ports to GMII task24_bp3 Firmware Main Task bp 4 Port Mode data ref ICB Post Core O data 0x0000 mode 23 0 21 0 0000 for 23 21 0 GMII 1 MII The following configuration possibilities apply If the user wishes to modify both ports to MII the following modification needs to be performed Example Both ports converted to MIl task24 bp4 data ref ICB Port Core O data 0x0a00 Only port 21 converted to MII but port 23 left as GMII the following modification needs to be done Example Port 21 is MII Port 23 is GMIl task24 bp4 data ref ICB Port Core O data 0x0200 Port 21 is GMII but port 23 is MII the following modification needs to be done Example Port 21 is GMIl Port 23 is MII task24 bp4 data ref ICB Port Core O data 0x0800 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or anv other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is prel
15. iminarv and should not be relied upon for accuracv or completeness 15 2 3 3 1 External PHY Initialization If external PHY are connected and the user wants to configure these PHYs in MII mode then the following modification must be performed Below is an excerpt of task28 and task29 responsible for MDIO ports found in the Firmware asm file ES task28_bp3 MDIO Port l bp 3 skip data 0x0000 Interface Core ICB skip data ref ICB MDIO GMII 0 Interface ICB Lf task29_bp3 MDIO Port 2 bp 3 skip data 0x0000 Interface Core ICB skip data ref ICB MDIO GMII 0 Interface ICB Task Dependency Tf MDIO 1 gt Port 21 MDIO 2 gt Port 23 Lf The default setting is for GMII however to convert from GMII to MII simply change the data ref text from GMII to MII Below is an example This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 16 Example Converting MDIO ports from GMIl to MII task28_bp3 MDIO Port 1 bp 3 skip data 0x0000
16. is preliminarv and should not be relied upon for accuracv or completeness 20 3 2 MB8AA3020 Initialization Sequence Shown in Figure 2 is the initialization sequence for the MB8AA3020 Fujitsu switch Power On J ys Port Reset MAC Address i Download firmwarel Firmware is downloaded from EEPROM A II eo o TA R A i This process is skip eee l a gt when the AXEL X has i ese been warm restarted Start Multi task Environment l Firmware Task STATIC i Ag Device ICB i lCB reg asmi Set IRQ Handler ii CONFIGURABLE im Set Buffer Firmware asm Management ven task_24 bp 3 Register byte4 byte7 Set MAC MAC addresses are 2 Add gt a programmed by user in l resses H MAG addres asm file TN Set Switch Firmware asm Configuration gt task_24 bp 3 Register byte0 byte 3 VLAN ICB i Disable Ports MAC Address Table ICB task_24 Firmware Set Initialization Flag Complete This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to b
17. mation contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 12 S2 Oxc018 0x13f1 Hd PHX TXI EQ CFG3 Set Tx lane 1 tap 3 with 63 1 S2 O0xc019 0x0000 PHV TXI EQ CFGA Set Tx lane 1 tap 4 with 0 0 S2 OxcOla 0x03f0 Hd PHY_TX2_EQ CFGO Set Tx lane 2 tap 0 with 63 0 S2 Oxc0olb 0x03f0 HA PHY_TX2_EQ CFG1 Set Tx lane 2 tap 1 with 63 0 S2 OxcOlc 0x0330 HA PHV TX2 EQ CFG2 Set Tx lane 2 tap 2 with 451 0 S2 Oxcold Ox13 1 PHX TX2 EQ CFG3 Set Tx lane 2 tap 3 with 63 1 S2 Oxc0le 0x0000 PHY_TX2_EQ CFG4 Set Tx lane 2 tap 4 with 0 0 S2 Oxc0lf 0x03f0 PHY_TX3_EQ CFGO Set Tx lane 3 tap 0 with 63 0 S2 Oxc020 0x03f0 HA PHY_TX3_EQ CFG1 Set Tx lane 3 tap 1 with 63 0 S2 Oxc021 0x0330 HA PHY_TX3_EQ CFG2 Set Tx lane 3 tap 2 with 51 0 S2 0xc022 Ox13 1 PHY_TX3_EQ CFG3 Set Tx lane 3 tap 3 with 63 1 S2 0Oxc023 0x0000 HA PHV TX3 EQ CFG4 Set Tx lane 3 tap 4 with 0 0 S2 0xc052 0x0000 PHY_TX23_MON_CTL Set Tx lane 3 MON CTLI6 0 In order to modifv these parameters please follow the procedure outlines in the AXEL X MB8AA3020 PCS Register Specification 2 3 2 2 Configuring Transmit Receive Lane and Polaritv Swapping Bv default the transmit polaritv is swapped on the AXEL X evaluation board for
18. narv and should not be relied upon for accuracv or completeness LIST OF FIGURES Figure 1 Field Description MAC Address and EtherType Field 9 Figure 2 Initialization S qQuence resia eas Sale ewe weal 22 Figure 3 Initialization Sequence for MIVGMII Task nn een nn nennnn ena 23 Figure 4 Initialization Sequence for LOGBE Task seren ens ester 24 LIST OF TABLES Table 1 Data Byte Relationship re bii ia tered i toracth Sc ace celine eons ents 7 Table 2 Micro Commands ti E e 8 Table 3 Task DES GU A a a fa 20 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or anv other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminarv and should not be relied upon for accuracv or completeness 1 0 About This Manual This document is intended to provide configuration description for Fujitsu MB8AA3020 10Gbps Ethernet switch on chip code 1 1 Document Overview The document includes a description of the following Getting started example Micro engine specification Memory map description Initialization sequence Global variable description Task descriptions Initialization code block While all registers can be modified using the On Chip code the
19. ormation which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 2 1 Byte data Organization In order to begin configuring the on chip code firmware we must first understand how the byte structure is set up in the assembly files Below is an example of a factious symbol and the data fields associated with the symbol Example of data description Example svmbol 0 Example of svmbol data 0x0123 byte l 01 byte 0 23 data 0x4567 byte 3 45 byte 2 67 data Ox89AB byte 5 89 byte 4 AB data OxCDEF byte 7 CD byte 6 EF Example of data description The organization of the data fields always start with byte 1 and byte 0 corresponding to the first data field byte 3 and byte 2 corresponding to the second data field and so on Table 1 Data Byte Relationship describes the Data Byte relationship Data Bytes data Byte 1 Byte 0 data Byte 3 Byte 2 data Byte 5 Byte 4 data Byte 7 Byte 6 Table 1 Data Byte Relationship This document contains confidential information which shall n
20. ort 23 bp 4 3 Port IRQ Service Required vector Mode data 0x8003 Use MDIO 2 for polling Mode 3 data 0x0000 Link up Check Threshold data 0x0801 11 Port Security Violation 0 Link Fault data 0x0000 By default the on chip code poll the PHY status check with link fault handler This may not be appropriate for all situations because the user may not have a PHY or the MDIO may not be connected up to the PHY If this is the case in then you will want to bypass the PHY status check by enabling Mode 2 Below is an example where the PHY status Example of MDIO with PHY status disable task21_bp3 Task Port 21 bp 4 3 Port IRQ Service Required vector Mode data 0x4002 Use MDIO 0 for polling Mode 2 data 0x0000 Link up Check Threshold task23_bp3 Task Port 23 bp 4 3 Port IRQ Service Required vector Mode data 0x8002 Use MDIO 2 for polling Mode 2 data 0x0000 Link up Check Threshold data 0x0801 11 Port Security Violation 0 Link Fault data 0x0000 Lastly by default of the PHY address on the AXEL X evaluation is 0 for both port 21 and port 23 however this is not universal for all design In order to change this refer to Firmware asm file task21_bp6 and task 23 bp6 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose with
21. ot be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 2 2 Micro commands Listed in Table 2 is a list of commonly used micro commands that are executed by the MB8AA3020 micro engine Micro command Description align block Align the block frame N A Skip Skip the current data 0x1234 instruction Skip data 0x4567 to the data data_ref The data is reference data_ref ICB PCS_0 to a pointer that is defined by the user ICB PCS 0 using data 0x1234 data 0x4567 Skip Skip Table 2 Micro Commands This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 2 3 Getting Started As mentioned in the introduction at the very least the user must set up the MAC add
22. out prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminarv and should not be relied upon for accuracv or completeness 18 Below is an excerpt from this file task21_bp3 Task Port 21 bp 4 6 Link Up Wait Time data 40 10ms data 0 Oms data 0x0000 data 0x6006 PHY Addr 0 PHY Register 1 task23_bp3 Task Port 23 bp 4 6 Link Up Wait Time data 40 10ms data 0 Oms data 0x0000 data 0x6006 PHY Addr 0 PHY Register 1 if 2 3 3 Initializing I2C Master Ports Initialization of the 12C master ports is essential for proper operation of I2C master ports on AXEL X chip By default the on chip code initializes I2C port 2 as the master but user may use both I2C ports 1 and port 2 as master ports which would require both to be initialized properly Note No initialization of I2C slave ports is required This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminarv and sho
23. ove MB8AA3020 Make file e GNU Compiler Collection i e gcc The procedure for building the MB8AA3020 firmware image is described below 1 As stated in Section 2 3 1 Assigning MAC Addresses the user needs to assign an appropriate MAC address for the chip as well as each port This is done by editing the MAC address asm file 2 Choose either fixed gain i e axel_pcs_phy_cfg_fixed_eval_board txt or adaptive gain i e axel pcs phv cfg adaptive eval board txt in the Makefile 3 Type make on the command line Two files named firmware dat and firmware sym will be generated and placed in the obj directory Firmware dat is the file that will be downloaded into the MB8AA3020 s EEPROM This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 25
24. ress for every port as well as the chip for the 10GBE switch to function properly 2 3 1 Assigning MAC Addresses By default the source code provided by the Fujitsu MB8AA3020 has a MAC address and EtherType of 0 So at the very minimum the user must assign a valid MAC address and Ethertype to every port and the station address in order for the switch to function properly These variables can be found in the MAC_address asm file under the symbol Hst_Adr_ 0 23 Shown in Figure 1 is the field description for the MAC address and EtherType field Byte 7 Byte 6 Byte 5 Byte 4 Byte 3 Byte 2 Byte 1 Byte O description Hst Adr O MAC Address xx xx xxIxxixxixx N A Port O Hst_Adr_1 MAC Address xx xx XX XXIXXIXX N A Port 1 Hst_Adr_2 MAC Address xx xx XX XXIXXIXX N A Port 2 Hst_Adr_3 MAC Address XX XX XX XX XX XX N A Port 3 Hst Adr 4 MAC Address xx xx xx xxixxixx N A Port 4 Hst Adr 5 MAC Address XXx xx xx xxixxixx N A Port 5 Hst Adr 6 MAC Address XXx xx xx xxixxixx N A Port 6 Hst Adr 7 MAC Address xx xx xxixxixxixx N A Port7 Hst Adr 8 MAC Address XXx xx xx xxixxixx N A Port 8 Hst Adr 9 MAC Address XXx xx xx xxixxixx N A Port 9 Hst Adr 10 MAC Address XX xx xx xxixxixx N A Port 10 Hst Adr 11 MAC Address xx xx xx xxixxixx N A Port 11 Hst_Adr_12 MAC Address xx xx xx xxixxixx N A Port 12 Hst_Adr_13 MAC Address XX XX XX XX XX XX N A Port 13 Hst_Adr_
25. se are the main registers that are supplied by default All setting in the switch configuration registers All setting in the port configuration registers All port interrupt status registers Switch status register Buffer management register Management port control register Host VLAN counter configuration register MAC configuration register MII GMII status control register Default MAC addresses for the switch and all ports Fixed or adaptive gain for receiver equalizer The above list while not exhaustive illustrates the programmability of the MB8AA3020 This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 1 2 Acronyms EEPROM Electrically Erasable Read Only Memory ENV Environment GMII Giga bit Media Independent Interface ICB Initialization Code Block I F Interface IRQ Interrupt Request LAN Local Area Network MAT MAC Address Table MII Media Independent Interface MAC Medium Access Control RAM Random Access Memory VLAN Virtual Local Area Network This document contains confidential information which
26. shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information is preliminary and should not be relied upon for accuracy or completeness 2 0 Introduction This section focuses on a step by step example of how to configure and compile the MB8AA3020 AXEL X on chip code It uses the MB8AA3020 AXEL X evaluation board as an example for a more detail description of the MB8AA3020 AXEL X evaluation board please refer to AXEL X Evaluation Board Hardware Manual The generic firmware that is included with the Fujitsu MB8AA3020 AXEL X chip does not assign MAC addresses to the ports or the chip so at the very least the user must assign a MAC address for every port as well as the chip address for the 10GBE switch to function properly In addition to this the user must decide whether to use fixed or dynamic gain before compiling the firmware Before we begin our example we must first understand how the byte structure is organized in the assembly files as well as understand the various micro commands Section 2 Byte data Organization describes the byte structure organization while Section 2 2 Micro commands describes the micro commands This document contains confidential inf
27. uld not be relied upon for accuracv or completeness 19 3 0 Micro Engine Description Fujitsu MB8AA3020 10Gbps Ethernet switch uses an integrated 312 5 MHz core 32KB RAM micro engine to decoded micro commands sent to the switch via a user designated Ethernet management interface The micro commands are encapsulated into an Ethernet frame and decoded by the micro engine The use of the micro engine gives users the added flexibility in programming the MB8AA3020 and at the same time reducing software development time 3 1 Task Structure There are a total of 32 individual tasks which are described in Table 3 The memory is context switched so each tasks uses the entire 2KBx64bytes of memory Task Number Thread Name Initial Task State Description 10G port monitor Ready MII GMII port monitor task_none Reserved 23 task_port_1g MII GMII port monitor Firmware Firmware Main task_none Reserved Handler Handler Handler Handler 30 task_test Sleep For Firmware Test Purposes task_RTC Real Time Clock Table 3 Task Description This document contains confidential information which shall not be reproduced or transferred to other documents or disclosed to others or used for manufacturing or any other purpose without prior written permission from FUJITSU Ltd All information contained in this document is subject to change without notice While the information contained herein is believed to be accurate such information

Download Pdf Manuals

image

Related Search

Related Contents

学 生 募 集 要 項  Touchmonitor User Guide  User Manual  Service Manual  Lexmark 8300 Series Printer User Manual    Rubbermaid Lobby Pro 2531  Zebra MZ320  Page 1 GRILLE DE COMPILATION DE MALADRESSES ET D  Palsonic 3435TS User's Manual  

Copyright © All rights reserved.
Failed to retrieve file