UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
175 Views
Registered: ‎02-01-2019

HWICAP read frame function

Hi all,

I'm working on fault injection system on ZedBoard.

Through HWICAP I would read one frame, modify and rewrite it.

I'm using the example provided by Vivado SDK in which is called the function XHwIcap_DeviceReadFrame, but I don't understand how to choose the right parameter values to select a specific frame.

In the program is showed the following code:

/*
* These are the parameters for reading a frame of data in
* the slice SLICE_X0Y0
*/
#define HWICAP_EXAMPLE_TOP 0
#define HWICAP_EXAMPLE_HCLK 5
#define HWICAP_EXAMPLE_MAJOR 5
#define HWICAP_EXAMPLE_MINOR 10

Status = XHwIcap_DeviceReadFrame(&HwIcap,
HWICAP_EXAMPLE_TOP,
HWICAP_EXAMPLE_BLOCK,
HWICAP_EXAMPLE_HCLK,
HWICAP_EXAMPLE_MAJOR,
HWICAP_EXAMPLE_MINOR,
(u32 *) &FrameData[0]);

In the C file, the function parameters are explained as follow:

/************************** Function Prototypes *****************************/
/****************************************************************************/
/**
*
* Reads one frame from the device and puts it in memory specified by the user.
*
* @param InstancePtr - a pointer to the XHwIcap instance to be worked on.
* @param Top - top (0) or bottom (1) half of device
* @param Block - Block Address (XHI_FAR_CLB_BLOCK,
* XHI_FAR_BRAM_BLOCK, XHI_FAR_BRAM_INT_BLOCK)
* @param HClkRow - selects the HClk Row
* @param MajorFrame - selects the column
* @param MinorFrame - selects frame inside column
* @param FrameBuffer is a pointer to the memory where the frame read
* from the device is stored
*
* @return XST_SUCCESS else XST_FAILURE.
*
* @note This is a blocking call.
*
*****************************************************************************/

But I don't understand the relationship between these paremeters and implementation floorplan.

Where can I find a documentations about the parameters meaning?

Thanks is advance,

Andrea

0 Kudos