#include "xil_types.h"
#include "xil_assert.h"
#include "xstatus.h"
#include "xspi_l.h"
Classes | |
struct | XSpi_Stats |
struct | XSpi_Config |
struct | XSpi |
Defines | |
#define | XSPI_H |
#define | XSpi_IntrGlobalEnable(InstancePtr) |
#define | XSpi_IntrGlobalDisable(InstancePtr) XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_DGIER_OFFSET, 0) |
#define | XSpi_IsIntrGlobalEnabled(InstancePtr) |
#define | XSpi_IntrGetStatus(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_IISR_OFFSET) |
#define | XSpi_IntrClear(InstancePtr, ClearMask) |
#define | XSpi_IntrEnable(InstancePtr, EnableMask) |
#define | XSpi_IntrDisable(InstancePtr, DisableMask) |
#define | XSpi_IntrGetEnabled(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_IIER_OFFSET) |
#define | XSpi_SetControlReg(InstancePtr, Mask) XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET, (Mask)) |
#define | XSpi_GetControlReg(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET) |
#define | XSpi_GetStatusReg(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_SR_OFFSET) |
#define | XSpi_SetXipControlReg(InstancePtr, Mask) XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET, (Mask)) |
#define | XSpi_GetXipControlReg(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET) |
#define | XSpi_GetXipStatusReg(InstancePtr) XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_SR_OFFSET) |
#define | XSpi_SetSlaveSelectReg(InstancePtr, Mask) XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_SSR_OFFSET, (Mask)) |
#define | XSpi_GetSlaveSelectReg(InstancePtr) XSpi_ReadReg((InstancePtr)->BaseAddr, XSP_SSR_OFFSET) |
#define | XSpi_Enable(InstancePtr) |
#define | XSpi_Disable(InstancePtr) |
Configuration options | |
#define | XSP_MASTER_OPTION 0x1 |
#define | XSP_CLK_ACTIVE_LOW_OPTION 0x2 |
#define | XSP_CLK_PHASE_1_OPTION 0x4 |
#define | XSP_LOOPBACK_OPTION 0x8 |
#define | XSP_MANUAL_SSELECT_OPTION 0x10 |
Typedefs | |
typedef void(* | XSpi_StatusHandler )(void *CallBackRef, u32 StatusEvent, unsigned int ByteCount) |
Functions | |
int | XSpi_Initialize (XSpi *InstancePtr, u16 DeviceId) |
XSpi_Config * | XSpi_LookupConfig (u16 DeviceId) |
int | XSpi_CfgInitialize (XSpi *InstancePtr, XSpi_Config *Config, u32 EffectiveAddr) |
int | XSpi_Start (XSpi *InstancePtr) |
int | XSpi_Stop (XSpi *InstancePtr) |
void | XSpi_Reset (XSpi *InstancePtr) |
int | XSpi_SetSlaveSelect (XSpi *InstancePtr, u32 SlaveMask) |
u32 | XSpi_GetSlaveSelect (XSpi *InstancePtr) |
int | XSpi_Transfer (XSpi *InstancePtr, u8 *SendBufPtr, u8 *RecvBufPtr, unsigned int ByteCount) |
void | XSpi_SetStatusHandler (XSpi *InstancePtr, void *CallBackRef, XSpi_StatusHandler FuncPtr) |
void | XSpi_InterruptHandler (void *InstancePtr) |
int | XSpi_SelfTest (XSpi *InstancePtr) |
void | XSpi_GetStats (XSpi *InstancePtr, XSpi_Stats *StatsPtr) |
void | XSpi_ClearStats (XSpi *InstancePtr) |
int | XSpi_SetOptions (XSpi *InstancePtr, u32 Options) |
u32 | XSpi_GetOptions (XSpi *InstancePtr) |
#define XSP_CLK_ACTIVE_LOW_OPTION 0x2 |
#define XSP_CLK_PHASE_1_OPTION 0x4 |
#define XSP_LOOPBACK_OPTION 0x8 |
#define XSP_MANUAL_SSELECT_OPTION 0x10 |
#define XSP_MASTER_OPTION 0x1 |
The Master option configures the SPI device as a master. By default, the device is a slave.
The Active Low Clock option configures the device's clock polarity. Setting this option means the clock is active low and the SCK signal idles high. By default, the clock is active high and SCK idles low.
The Clock Phase option configures the SPI device for one of two transfer formats. A clock phase of 0, the default, means data if valid on the first SCK edge (rising or falling) after the slave select (SS) signal has been asserted. A clock phase of 1 means data is valid on the second SCK edge (rising or falling) after SS has been asserted.
The Loopback option configures the SPI device for loopback mode. Data is looped back from the transmitter to the receiver.
The Manual Slave Select option, which is default, causes the device not to automatically drive the slave select. The driver selects the device at the start of a transfer and deselects it at the end of a transfer. If this option is off, then the device automatically toggles the slave select signal between bytes in a transfer.
#define XSpi_Disable | ( | InstancePtr | ) |
XSpi_SetControlReg((InstancePtr), \ XSpi_GetControlReg((InstancePtr)) & ~XSP_CR_ENABLE_MASK)
Disable the device. Preserves the current contents of the control register.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_Enable | ( | InstancePtr | ) |
{ \ u16 Control; \ Control = XSpi_GetControlReg((InstancePtr)); \ Control |= XSP_CR_ENABLE_MASK; \ Control &= ~XSP_CR_TRANS_INHIBIT_MASK; \ XSpi_SetControlReg((InstancePtr), Control); \ }
Enable the device and uninhibit master transactions. Preserves the current contents of the control register.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_GetControlReg | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET) |
Get the contents of the control register. Use the XSP_CR_* constants defined above to interpret the bit-mask returned.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_GetSlaveSelectReg | ( | InstancePtr | ) | XSpi_ReadReg((InstancePtr)->BaseAddr, XSP_SSR_OFFSET) |
Get the contents of the slave select register. Each bit in the mask corresponds to a slave select line. Only one slave should be selected at any one time.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_GetStatusReg | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_SR_OFFSET) |
Get the contents of the status register. Use the XSP_SR_* constants defined above to interpret the bit-mask returned.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_GetXipControlReg | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET) |
Get the contents of the XIP control register. Use the XSP_CR_XIP_* constants defined above to interpret the bit-mask returned.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_GetXipStatusReg | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_SR_OFFSET) |
Get the contents of the status register. Use the XSP_SR_XIP_* constants defined above to interpret the bit-mask returned.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSPI_H |
#define XSpi_IntrClear | ( | InstancePtr, | |||
ClearMask | ) |
XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_IISR_OFFSET, \ XSpi_IntrGetStatus(InstancePtr) | (ClearMask))
This function clears the specified interrupts in the Interrupt status Register. The interrupt is cleared by writing to this register with the bits to be cleared set to a one and all others bits to zero. Setting a bit which is zero within this register causes an interrupt to be generated.
This function writes only the specified value to the register such that some status bits may be set and others cleared. It is the caller's responsibility to get the value of the register prior to setting the value to prevent an destructive behavior.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
ClearMask | is the Bitmask for interrupts to be cleared. Bit positions of "1" clears the interrupt. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSP_INTR_* bits defined in xspi_l.h. |
#define XSpi_IntrDisable | ( | InstancePtr, | |||
DisableMask | ) |
XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_IIER_OFFSET, \ XSpi_ReadReg(((InstancePtr)->BaseAddr), \ XSP_IIER_OFFSET) & (~ ((DisableMask) & XSP_INTR_ALL )))
Disable the specified Interrupts in the Interrupt Enable Register.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
DisableMask | is the bitmask of the interrupts to be disabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSP_INTR_* bits defined in xspi_l.h. |
#define XSpi_IntrEnable | ( | InstancePtr, | |||
EnableMask | ) |
XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_IIER_OFFSET, \ (XSpi_ReadReg(((InstancePtr)->BaseAddr), \ XSP_IIER_OFFSET)) | (((EnableMask) & XSP_INTR_ALL )))
This function sets the contents of the Interrupt Enable Register.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
EnableMask | is the bitmask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSP_INTR_* bits defined in xspi_l.h. |
#define XSpi_IntrGetEnabled | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_IIER_OFFSET) |
This function gets the contents of the Interrupt Enable Register.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_IntrGetStatus | ( | InstancePtr | ) | XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_IISR_OFFSET) |
This function gets the contents of the Interrupt Status Register. This register indicates the status of interrupt sources for the device. The status is independent of whether interrupts are enabled such that the status register may also be polled when interrupts are not enabled.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_IntrGlobalDisable | ( | InstancePtr | ) | XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_DGIER_OFFSET, 0) |
This macro disables all interrupts for the device by writing to the Global interrupt enable register.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_IntrGlobalEnable | ( | InstancePtr | ) |
XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_DGIER_OFFSET, \ XSP_GINTR_ENABLE_MASK)
This macro writes to the global interrupt enable register to enable interrupts from the device.
Interrupts enabled using XSpi_IntrEnable() will not occur until the global interrupt enable bit is set by using this function.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_IsIntrGlobalEnabled | ( | InstancePtr | ) |
(XSpi_ReadReg(((InstancePtr)->BaseAddr), XSP_DGIER_OFFSET) == \ XSP_GINTR_ENABLE_MASK)
This function determines if interrupts are enabled at the global level by reading the global interrupt register.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
#define XSpi_SetControlReg | ( | InstancePtr, | |||
Mask | ) | XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET, (Mask)) |
Set the contents of the control register. Use the XSP_CR_* constants defined above to create the bit-mask to be written to the register.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
Mask | is the 32-bit value to write to the control register. |
#define XSpi_SetSlaveSelectReg | ( | InstancePtr, | |||
Mask | ) | XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_SSR_OFFSET, (Mask)) |
Set the contents of the slave select register. Each bit in the mask corresponds to a slave select line. Only one slave should be selected at any one time.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
Mask | is the 32-bit value to write to the slave select register. |
#define XSpi_SetXipControlReg | ( | InstancePtr, | |||
Mask | ) | XSpi_WriteReg(((InstancePtr)->BaseAddr), XSP_CR_OFFSET, (Mask)) |
Set the contents of the XIP control register. Use the XSP_CR_XIP_* constants defined above to create the bit-mask to be written to the register.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
Mask | is the 32-bit value to write to the control register. |
typedef void(* XSpi_StatusHandler)(void *CallBackRef, u32 StatusEvent, unsigned int ByteCount) |
The handler data type allows the user to define a callback function to handle the asynchronous processing of the SPI driver. The application using this driver is expected to define a handler of this type to support interrupt driven mode. The handler executes in an interrupt context such that minimal processing should be performed.
CallBackRef | A callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked. Its type is unimportant to the driver component, so it is a void pointer. | |
StatusEvent | Indicates one or more status events that occurred. See the XSpi_SetStatusHandler() for details on the status events that can be passed in the callback. | |
ByteCount | Indicates how many bytes of data were successfully transferred. This may be less than the number of bytes requested if the status event indicates an error. |
int XSpi_CfgInitialize | ( | XSpi * | InstancePtr, | |
XSpi_Config * | Config, | |||
u32 | EffectiveAddr | |||
) |
Initializes a specific XSpi instance such that the driver is ready to use.
The state of the device after initialization is:
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
Config | is a reference to a structure containing information about a specific SPI device. This function initializes an InstancePtr object for a specific device specified by the contents of Config. This function can initialize multiple instance objects with the use of multiple calls giving different Config information on each call. | |
EffectiveAddr | is the device base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the device physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, use Config->BaseAddress for this parameters, passing the physical address instead. |
void XSpi_ClearStats | ( | XSpi * | InstancePtr | ) |
Clears the statistics for the SPI device.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
u32 XSpi_GetOptions | ( | XSpi * | InstancePtr | ) |
This function gets the options for the SPI device. The options control how the device behaves relative to the SPI bus.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
Options contains the specified options to be set. This is a bit mask where a 1 means to turn the option on, and a 0 means to turn the option off. One or more bit values may be contained in the mask. See the bit definitions named XSP_*_OPTIONS in the file xspi.h.
u32 XSpi_GetSlaveSelect | ( | XSpi * | InstancePtr | ) |
Gets the current slave select bit mask for the SPI device.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
void XSpi_GetStats | ( | XSpi * | InstancePtr, | |
XSpi_Stats * | StatsPtr | |||
) |
Gets a copy of the statistics for an SPI device.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
StatsPtr | is a pointer to a XSpi_Stats structure which will get a copy of current statistics. |
int XSpi_Initialize | ( | XSpi * | InstancePtr, | |
u16 | DeviceId | |||
) |
Initializes a specific XSpi instance such that the driver is ready to use.
The state of the device after initialization is:
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
DeviceId | is the unique id of the device controlled by this XSpi instance. Passing in a device id associates the generic XSpi instance to a specific device, as chosen by the caller or application developer. |
void XSpi_InterruptHandler | ( | void * | InstancePtr | ) |
The interrupt handler for SPI interrupts. This function must be connected by the user to an interrupt source. This function does not save and restore the processor context such that the user must provide this processing.
The interrupts that are handled are:
InstancePtr | is a pointer to the XSpi instance to be worked on. |
The slave select register is being set to deselect the slave when a transfer is complete. This is being done regardless of whether it is a slave or a master since the hardware does not drive the slave select as a slave.
XSpi_Config* XSpi_LookupConfig | ( | u16 | DeviceId | ) |
Looks up the device configuration based on the unique device ID. A table contains the configuration info for each device in the system.
DeviceId | contains the ID of the device to look up the configuration for. |
A pointer to the configuration found or NULL if the specified device ID was not found. See xspi.h for the definition of XSpi_Config.
void XSpi_Reset | ( | XSpi * | InstancePtr | ) |
Resets the SPI device by writing to the Software Reset register. Reset must only be called after the driver has been initialized. The configuration of the device after reset is the same as its configuration after initialization. Refer to the XSpi_Initialize function for more details. This is a hard reset of the device. Any data transfer that is in progress is aborted.
The upper layer software is responsible for re-configuring (if necessary) and restarting the SPI device after the reset.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
int XSpi_SelfTest | ( | XSpi * | InstancePtr | ) |
Runs a self-test on the driver/device. The self-test is destructive in that a reset of the device is performed in order to check the reset values of the registers and to get the device into a known state. A simple loopback test is also performed to verify that transmit and receive are working properly. The device is changed to master mode for the loopback test, since only a master can initiate a data transfer.
Upon successful return from the self-test, the device is reset.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
int XSpi_SetOptions | ( | XSpi * | InstancePtr, | |
u32 | Options | |||
) |
This function sets the options for the SPI device driver. The options control how the device behaves relative to the SPI bus. The device must be idle rather than busy transferring data before setting these device options.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
Options | contains the specified options to be set. This is a bit mask where a 1 means to turn the option on, and a 0 means to turn the option off. One or more bit values may be contained in the mask. See the bit definitions named XSP_*_OPTIONS in the file xspi.h. |
This function makes use of internal resources that are shared between the XSpi_Stop() and XSpi_SetOptions() functions. So if one task might be setting device options while another is trying to stop the device, the user is required to provide protection of this shared data (typically using a semaphore).
int XSpi_SetSlaveSelect | ( | XSpi * | InstancePtr, | |
u32 | SlaveMask | |||
) |
Selects or deselect the slave with which the master communicates. Each slave that can be selected is represented in the slave select register by a bit. The argument passed to this function is the bit mask with a 1 in the bit position of the slave being selected. Only one slave can be selected.
The user is not allowed to deselect the slave while a transfer is in progress. If no transfer is in progress, the user can select a new slave, which implicitly deselects the current slave. In order to explicitly deselect the current slave, a zero can be passed in as the argument to the function.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
SlaveMask | is a 32-bit mask with a 1 in the bit position of the slave being selected. Only one slave can be selected. The SlaveMask can be zero if the slave is being deselected. |
This function only sets the slave which will be selected when a transfer occurs. The slave is not selected when the SPI is idle. The slave select has no affect when the device is configured as a slave.
void XSpi_SetStatusHandler | ( | XSpi * | InstancePtr, | |
void * | CallBackRef, | |||
XSpi_StatusHandler | FuncPtr | |||
) |
Sets the status callback function, the status handler, which the driver calls when it encounters conditions that should be reported to the higher layer software. The handler executes in an interrupt context, so it must minimize the amount of processing performed such as transferring data to a thread context. One of the following status events is passed to the status handler.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
CallBackRef | is the upper layer callback reference passed back when the callback function is invoked. | |
FuncPtr | is the pointer to the callback function. |
int XSpi_Start | ( | XSpi * | InstancePtr | ) |
This function enables interrupts for the SPI device. If the Spi driver is used in interrupt mode, it is up to the user to connect the SPI interrupt handler to the interrupt controller before this function is called. If the Spi driver is used in polled mode the user has to disable the Global Interrupts after this function is called. If the device is configured with FIFOs, the FIFOs are reset at this time.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
int XSpi_Stop | ( | XSpi * | InstancePtr | ) |
This function stops the SPI device by disabling interrupts and disabling the device itself. Interrupts are disabled only within the device itself. If desired, the caller is responsible for disabling interrupts in the interrupt controller and disconnecting the interrupt handler from the interrupt controller.
In interrupt mode, if the device is in progress of transferring data on the SPI bus, this function returns a status indicating the device is busy. The user will be notified via the status handler when the transfer is complete, and at that time can again try to stop the device. As a master, we do not allow the device to be stopped while a transfer is in progress because the slave may be left in a bad state. As a slave, we do not allow the device to be stopped while a transfer is in progress because the master is not done with its transfer yet.
InstancePtr | is a pointer to the XSpi instance to be worked on. |
This function makes use of internal resources that are shared between the XSpi_Stop() and XSpi_SetOptions() functions. So if one task might be setting device options while another is trying to stop the device, the user is is required to provide protection of this shared data (typically using a semaphore).
int XSpi_Transfer | ( | XSpi * | InstancePtr, | |
u8 * | SendBufPtr, | |||
u8 * | RecvBufPtr, | |||
unsigned int | ByteCount | |||
) |
Transfers the specified data on the SPI bus. If the SPI device is configured to be a master, this function initiates bus communication and sends/receives the data to/from the selected SPI slave. If the SPI device is configured to be a slave, this function prepares the data to be sent/received when selected by a master. For every byte sent, a byte is received.
This function/driver operates in interrupt mode and polled mode.
The caller has the option of providing two different buffers for send and receive, or one buffer for both send and receive, or no buffer for receive. The receive buffer must be at least as big as the send buffer to prevent unwanted memory writes. This implies that the byte count passed in as an argument must be the smaller of the two buffers if they differ in size. Here are some sample usages:
XSpi_Transfer(InstancePtr, SendBuf, RecvBuf, ByteCount) The caller wishes to send and receive, and provides two different buffers for send and receive.
XSpi_Transfer(InstancePtr, SendBuf, NULL, ByteCount) The caller wishes only to send and does not care about the received data. The driver ignores the received data in this case.
XSpi_Transfer(InstancePtr, SendBuf, SendBuf, ByteCount) The caller wishes to send and receive, but provides the same buffer for doing both. The driver sends the data and overwrites the send buffer with received data as it transfers the data.
XSpi_Transfer(InstancePtr, RecvBuf, RecvBuf, ByteCount) The caller wishes to only receive and does not care about sending data. In this case, the caller must still provide a send buffer, but it can be the same as the receive buffer if the caller does not care what it sends. The device must send N bytes of data if it wishes to receive N bytes of data.
In interrupt mode, though this function takes a buffer as an argument, the driver can only transfer a limited number of bytes at time. It transfers only one byte at a time if there are no FIFOs, or it can transfer the number of bytes up to the size of the FIFO if FIFOs exist.
As a master, the SetSlaveSelect function must be called prior to this function.
InstancePtr | is a pointer to the XSpi instance to be worked on. | |
SendBufPtr | is a pointer to a buffer of data which is to be sent. This buffer must not be NULL. | |
RecvBufPtr | is a pointer to a buffer which will be filled with received data. This argument can be NULL if the caller does not wish to receive data. | |
ByteCount | contains the number of bytes to send/receive. The number of bytes received always equals the number of bytes sent. |
This function is not thread-safe. The higher layer software must ensure that no two threads are transferring data on the SPI bus at the same time.
Copyright © 1995-2014 Xilinx, Inc. All rights reserved.