| Electronic Components Datasheet Search |
|
DP83936AVF Datasheet(PDF) 30 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP83936AVF Datasheet(HTML) 30 Page - National Semiconductor (TI) |
|
30 / 104 page ![]() 50 Buffer Management (Continued) and the buffer size to 762 words (1524 bytes) A similar example for 16-bit mode would be EOBC e 759 words (1518 bytes) and the buffer size set to 760 words (1520 bytes) The buffer can be any size but as long as the EOBC is 2 words for 32-bit mode or 1 word for 16-bit mode less than the buffer size only one packet will be buffered in that RBA Note 1 It is possible to filter out most oversized packets by setting the buff- er size to 760 words (1520 bytes) in 32-bit mode or 759 words (1518 bytes) in 16-bit mode EOBC would be set to 758 words (1516 bytes) for both cases With this configuration any packet over 1520 bytes in 32-bit mode or 1518 bytes in 16-bit mode will not be completely buffered because the packet will overflow the buffer When a packet overflow occurs a Receive Buffer Area Exceeded interrupt (RBAE in the Interrupt Status Register Section 646) will occur Note 2 When buffering one packet per buffer it is suggested that the val- ues in Note 1 above be used Since the minimum legal sized Ether- net packet is 64 bytes however it is possible to set EOBC as much as 64 bytes less than the buffer size and still end up with one packet per buffer Figure 5-11 shows this ‘‘range’’ 545 Beginning Of Reception At the beginning of reception the SONIC-T checks its inter- nally stored EOL bit from the previous RXpktlink field for a ‘‘1’’ If the SONIC-T finds EOL e 1 it recognizes that after the previous reception there were no more remaining re- ceive packet descriptors It re-reads the same RXpktlink field to check if the system has updated this field since the last reception If the SONIC-T still finds EOL e 1 reception ceases (See Section 55 for adding descriptors to the list) Otherwise the SONIC-T begins storing the packet in the RBA starting at the Current Receive Buffer Address (CRBA01) registers and continues until the packet has completed Concurrent with the packet reception the Re- maining Buffer Word Count (RBWC01) registers are decre- mented after each word is written to memory This register determines the remaining words in the RBA at the end of reception 546 End Of Packet Processing At the end of a reception the SONIC-T enters its end of packet processing sequence to determine whether to ac- cept or reject the packet based on receive errors and pack- et size At the end of reception the SONIC-T enters one of the following two sequences Successful reception sequence Buffer recovery for runt packets or packets with errors 5461 Successful Reception If the SONIC-T accepts the packet it first writes 5 words of descriptor information in the RDA beginning at the address pointed to by the Current Receive Descriptor Address (CRDA) register It then reads the RXpktlink field to ad- vance the CRDA register to the next receive descriptor The SONIC-T also checks the EOL bit for a ‘‘1’’ in this field If EOL e 1 no more descriptors are available for the SONIC-T The SONIC-T recovers the address of the current RXpktlink field (from a temporary register) and generates a ‘‘Receive Descriptors Exhausted’’ indication in the Interrupt Status register (See Section 547 on how to add descriptors) The SONIC-T maintains ownership of the descriptor by not writ- ing to the RXpktin use field Otherwise if EOL e 0 the SONIC-T advances the CRDA register to the next descriptor and resets the RXpktin use field to all ‘‘0’s’’ The SONIC-T accesses the complete 7 word RDA descrip- tor in a single block operation The SONIC-T also checks if there is remaining space in the RBA The SONIC-T compares the Remaining Buffer Word Count (RBWC01) registers with the static End Of Buffer Count (EOBC) If the RBWC is less than the EOBC a maxi- mum sized packet will no longer fit in the remaining space in the RBA hence the SONIC-T fetches a resource descriptor from the RRA and loads its registers with the pointer and word count of the next available RBA 5462 Buffer Recovery For Runt Packets Or Packets With Errors If a runt packet (less than 64 bytes) or packet with errors arrives and the Receive Control register has been config- ured to not accept these packets the SONIC-T recovers its pointers back to the original positions The CRBA01 regis- ters are not advanced and the RBWC01 registers are not decremented The SONIC-T recovers its pointers by main- taining a copy of the buffer address in the Temporary Re- ceive Buffer Address registers (TRBA01) The SONIC-T re- covers the value in the RBWC01 registers from the Tempo- rary Buffer Word Count registers (TBWC01) 547 Overflow Conditions When an overflow condition occurs the SONIC-T halts its DMA operations to prevent writing into unauthorized memo- ry The SONIC-T uses the Interrupt Status register (ISR) to indicate three possible overflow conditions that can occur TLF12597 – 22 Range of EOBC e (RXrsrcwc01 b2 to RXrsrcwc01 b32) FIGURE 5-11 Setting EOBC for Single Packet RBA http www nationalcom 30 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |