Xilinx ML403 Switch User Manual


 
Simulation
XAPP979 (v1.0) February 26, 2007 www.xilinx.com 28
R
Figure 31 provides the Arbitration Lost test code. This pseudo-code can be tracked in the
simulation.
Figure 31: Arbitration Lost Test Code
write ADR_20 0x20
write CR_20 40
write CR_AA 0x01
write ADR_AA AA
write IER_AA 0x04
write RC_FIFO_PIRQ_20 0x0
write DTR_AA 0x0
write CR_AA 0x0D -- Enables AA as master (5.9us)
write IPIER_20 0x01
write DTR_20 AA
write CR_20 0x0D -- Enables 20 as master
wait_for_intr(30)
read IPISR 0xD3 -- Arbitration lost (260 us)
write CR_20 0x01 -- Clears interrupt
X979_31_012907