Brocade Fabric OS Command Reference Manual - Supporting Fabric OS v5.3.0 (53-1000436-01, June 2007)

194 Fabric OS Command Reference Manual
53-1000436-01
fcrChipTest
2
fcrChipTest
Tests the functionality of FC Router FPGA.
Synopsis fcrchiptest [--slot slotnumber][-testtype type][-unit number]
Description Use this command to verify that all SRAM and register data bits in each ASIC can be independently
written and read successfully.
The method used is to write a walking 1 pattern to each location. This is accomplished by writing a
patter of 0x00000001 to register N, perform DMA read, and ensure the same pattern previously
written is read back. Shift the pattern to the left by 1 bit (to 0x00000002), repeat the write, read,
and compare the cycle. Shift again and repeat until the last writable bit in register N is reached
(0x80000000 for a 32-bit register).
For example, a 6-bit register is effectively tested with the following patterns:
0x0001 0x0002 0x0004 0x0008
0x0010 0x0020 0x0040 0x0080
0x0100 0x0200 0x0400 0x0800
0x1000 0x2000 0x4000 0x8000
Repeat the above steps until all FPGA registers are tested.
The BIST test runs to verify the SRAM of the FPGAs.
This command is supported only on Brocade FR4-18i blades and Brocade 7500 platforms.
Operands This command has the following operands:
--slot slotnumber Specifies the slot number on which the diagnostic operates. The default is 0
and operates on fixed-port-count products.
-testtype type Specifies the test type to run. By default, the command runs all tests. Valid
tests include:
0 All tests
1 DMA test
2 SRAM BIST test
-unit number Specifies the FC Router FPGA to test. By default, all FC Router FPGA in the
specified slotnumber are used. Valid number values include:
0 FC Router FPGA 0
1 FC Router FPGA 1
2 All FC Router FPGA
Examples To run all tests on slot 7 and FC Router FPGA 1:
switch:admin> fcrchiptest --slot 7 -unit 1 -testtype 0
Running fcrchiptest ..............
Test Complete: fcrchiptest Pass 1 of 1
Duration 0 hr, 0 min & 4 sec (0:0:4:351).
passed.