參數(shù)資料
型號: NS32490D
廠商: National Semiconductor Corporation
英文描述: NIC Network Interface Controller(NIC網(wǎng)絡(luò)接口控制器)
中文描述: NIC網(wǎng)絡(luò)接口控制器(NIC網(wǎng)絡(luò)接口控制器)
文件頁數(shù): 31/56頁
文件大?。?/td> 689K
代理商: NS32490D
12.0 Loopback Diagnostics
(Continued)
Alignment of the Received Packet in the FIFO
Reception of the packet in the FIFO begins at location zero,
after the FIFO pointer reaches the last location in the FIFO,
the pointer wraps to the top of the FIFO overwriting the
previously received data. This process continues until the
last byte is received. The NIC then appends the received
byte count in the next two locations of the FIFO. The con-
tents of the Upper Byte Count are also copied to the next
FIFO location. The number of bytes used in the loopback
packet determines the alignment of the packet in the FIFO.
The alignment for a 64-byte packet is shown below.
FIFO
FIFO
LOCATION
CONTENTS
0
LOWER BYTE COUNT
x
UPPER BYTE COUNT
x
First Byte Read
1
Second Byte Read
2
UPPER BYTE COUNT
#
3
LAST BYTE
#
4
CRC1
#
5
CRC2
#
6
CRC3
#
7
CRC4
x
Last Byte Read
For the following alignment in the FIFO the packet length
should be (N
c
8)
a
5 Bytes. Note that if the CRC bit in the
TCR is set, CRC will not be appended by the transmitter. If
the CRC is appended by the transmitter, the last four bytes,
bytes N-3 to N, correspond to the CRC.
FIFO
FIFO
LOCATION
CONTENTS
0
BYTE N-4
x
First Byte Read
1
BYTE N-3 (CRC1)
AR
Second Byte Read
2
BYTE N-2 (CRC2)
#
3
BYTE N-1 (CRC3)
#
4
BYTE N (CRC4)
#
5
LOWER BYTE COUNT
#
6
UPPER BYTE COUNT
x
Last Byte Read
7
UPPER BYTE COUNT
LOOPBACK TESTS
Loopback capabilities are provided to allow certain tests to
be performed to validate operation of the DP8390D NIC pri-
or to transmitting and receiving packets on a live network.
Typically these tests may be performed during power up of
a node. The diagnostic provides support to verify the follow-
ing:
1) Verify integrity of data path. Received data is checked
against transmitted data.
2) Verify CRC logic’s capability to generate good CRC on
transmit, verify CRC on receive (good or bad CRC).
3) Verify that the Address Recognition Logic can
a) Recognize address match packets
b) Reject packets that fail to match an address
LOOPBACK OPERATION IN THE NIC
Loopback is a modified form of transmission using only half
of the FIFO. This places certain restrictions on the use of
loopback testing. When loopback mode is selected in the
TCR, the FIFO is split. A packet should be assembled in
memory with programming of TPSR and TBCR0,TBCR1
registers. When the transmit command is issued the follow-
ing operations occur:
Transmitter Actions
1) Data is transferred from memory by the DMA until the
FIFO is filled. For each transfer TBCR0 and TBCR1 are
decremented. (Subsequent burst transfers are initiated
when the number of bytes in the FIFO drops below the
programmed threshold.)
2) The NIC generates 56 bits of preamble followed by an
8-bit synch pattern.
3) Data transferred from FIFO to serializer.
4) If CRC
e
1 in TCR, no CRC calculated by NIC, the last
byte transmitted is the last byte from the FIFO (Allows
software CRC to be appended). If CRC
e
0, NIC calcu-
lates and appends four bytes of CRC.
5) At end of Transmission PTX bit set in ISR.
Receiver Actions
1) Wait for synch, all preamble stripped.
2) Store packet in FIFO, increment receive byte count for
each incoming byte.
3) If CRC
e
0 in TCR, receiver checks incoming packet for
CRC errors. If CRC
e
1 in TCR, receiver does not check
CRC errors, CRC error bit always set in RSR (for address
matching packets).
4) At end of receive, receive byte count written into FIFO,
receive status register is updated. The PRX bit is typically
set in the RSR even if the address does not match. If
CRC errors are forced, the packet must match the ad-
dress filters in order for the CRC error bit in the RS to be
set.
EXAMPLES
The following examples show what results can be expected
from a properly operating NIC during loopback. The restric-
tions and results of each type of loopback are listed for
reference. The loopback tests are divided into two sets of
tests. One to verify the data path, CRC generation and byte
count through all three paths. The second set of tests uses
internal loopback to verify the receiver’s CRC checking and
address recognition. For all of the tests the DCR was pro-
grammed to 40h.
PATH
TCR
RCR
TSR
RSR
ISR
NIC Internal
02
00
53(1)
02(2)
02(3)
Note 1:
Since carrier sense and collision detect inputs are blocked during
internal loopback, carrier and CD heartbeat are not seen and the CRS and
CDH bits are set.
Note 2:
CRC errors are always indicated by receiver if CRC is appended by
the transmitter.
Note 3:
Only the PTX bit in the ISR is set, the PRX bit is only set if status is
written to memory. In loopback this action does not occur and the PRX bit
remains 0 for all loopback modes.
Note 4:
All values are hex.
31
相關(guān)PDF資料
PDF描述
NS32828 1 Megabit High Speed Dynamic RAM Controller/Drivers
NS32829 1 Megabit High Speed Dynamic RAM Controller/Drivers
NS32FX16-15 FILM/M CAPACITANCE=0.001 VOLT=630
NS32FX16-20 Imaging/Signal Processor
NS32FX16-25 Imaging/Signal Processor
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
NS32491 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Serial Network Interface
NS32491A 制造商:未知廠家 制造商全稱:未知廠家 功能描述:
NS32492B 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Coaxial Transceiver Interface
NS32532-20 制造商:未知廠家 制造商全稱:未知廠家 功能描述:
NS32532-25 制造商:未知廠家 制造商全稱:未知廠家 功能描述: