Texas Instruments TMS320DM643x DMP Switch User Manual


 
www.ti.com
5.49NetworkStatisticsRegisters
5.49.1GoodReceiveFramesRegister(RXGOODFRAMES)
5.49.2BroadcastReceiveFramesRegister(RXBCASTFRAMES)
5.49.3MulticastReceiveFramesRegister(RXMCASTFRAMES)
EthernetMediaAccessController(EMAC)Registers
TheEMAChasasetofstatisticsthatrecordeventsassociatedwithframetraffic.Thestatisticsvalues
areclearedtozero38clocksaftertherisingedgeofreset.WhentheGMIIENbitintheMACCONTROL
registerisset,allstatisticsregisters(seeFigure75)arewrite-to-decrement.Thevaluewrittenis
subtractedfromtheregistervaluewiththeresultstoredintheregister.Ifavaluegreaterthanthe
statisticsvalueiswritten,thenzeroiswrittentotheregister(writingFFFFFFFFhclearsastatistics
location).WhentheGMIIENbitiscleared,allstatisticsregistersareread/write(normalwritedirect,so
writing00000000hclearsastatisticslocation).Allwriteaccessesmustbe32-bitaccesses.
Thestatisticsinterrupt(STATPEND)isissued,ifenabled,whenanystatisticsvalueisgreaterthanor
equalto80000000h.Thestatisticsinterruptisremovedbywritingtodecrementanystatisticsvalue
greaterthan80000000h.Thestatisticsaremappedintointernalmemoryspaceandare32-bitswide.
AllstatisticsrolloverfromFFFFFFFFhto00000000h.
Figure75.StatisticsRegister
3116
COUNT
R/WD-0
150
COUNT
R/WD-0
LEGEND:R/W=Read/Write;WD=Writetodecrement;-n=valueafterreset
ThetotalnumberofgoodframesreceivedontheEMAC.Agoodframeisdefinedashavingallofthe
following:
AnydataorMACcontrolframethatmatchedaunicast,broadcast,ormulticastaddress,ormatched
duetopromiscuousmode
Wasoflength64toRXMAXLENbytesinclusive
HadnoCRCerror,alignmenterror,orcodeerror
SeeSection2.5.5fordefinitionsofalignment,code,andCRCerrors.Overrunshavenoeffectonthis
statistic.
ThetotalnumberofgoodbroadcastframesreceivedontheEMAC.Agoodbroadcastframeisdefined
ashavingallofthefollowing:
AnydataorMACcontrolframethatwasdestinedforaddressFF-FF-FF-FF-FF-FFhonly
Wasoflength64toRXMAXLENbytesinclusive
HadnoCRCerror,alignmenterror,orcodeerror
SeeSection2.5.5fordefinitionsofalignment,code,andCRCerrors.Overrunshavenoeffectonthis
statistic.
ThetotalnumberofgoodmulticastframesreceivedontheEMAC.Agoodmulticastframeisdefinedas
havingallofthefollowing:
AnydataorMACcontrolframethatwasdestinedforanymulticastaddressotherthan
FF-FF-FF-FF-FF-FFh
Wasoflength64toRXMAXLENbytesinclusive
HadnoCRCerror,alignmenterror,orcodeerror
SeeSection2.5.5fordefinitionsofalignment,code,andCRCerrors.Overrunshavenoeffectonthis
statistic.
108EthernetMediaAccessController(EMAC)/SPRU941AApril2007
ManagementDataInput/Output(MDIO)
SubmitDocumentationFeedback