Xilinx ML403 specifications Arbitration Lost Test Code

Page 28

Simulation

R

Figure 31 provides the Arbitration Lost test code. This pseudo-code can be tracked in the simulation.

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

Figure 31: Arbitration Lost Test Code

XAPP979 (v1.0) February 26, 2007

www.xilinx.com

28

Image 28
Contents Summary Included SystemsIIC Primer IntroductionIntroduction Data Transfer on the IIC Bus Reference System Specifics Reference System SpecificsML403 XC4VFX12 Address Map OPB IIC RegistersOPB IIC Registers Address OPB IIC Control Register Bits Name DescriptionStatus Register SR Status Register Bit Definitions Contd Configuring the OPB IIC Core Microchip 24LC04ML40x Schematic for IIC Connections 24LC04 Control Byte AllocationML40x Resistors Expansion Header TotalPhase Aardvark Adapter Fpga IIC PinsAardvark Control Center Executing the Reference System from EDK Software ProjectsProjects interfacing to Aardvark Adapter Running the Applications Running the ApplicationsProject HyperTerminal Parameters Invoke XPS. Run Hardware → Generate Netlist Using ChipScope with OPB IICRun Start → Programs → ChipScope Pro → ChipScope Inserter Making Net Connections in ChipScope Inserter Start → Programs → ChipScope Pro → ChipScope Pro AnalyzerSetting Up the Chipscope Trigger Linux Kernel Linux KernelBSP Settings Connected Peripherals Simulation Simulation Signal Name Functionality OPB IIC SimulationComplete Simulation Arbitrartion Lost Test Simulation Arbitration Lost Test Code Simulation with iicAA as Master Test code with iicAA as Master X97934012907 Test Code for Simulation with iic20 as Master Revision HistoryReferences Revision