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!

Reply
Explorer
Posts: 197
Registered: ‎03-29-2017
Accepted Solution

Error pop_window in XSDK: bit stream is not compatiable with the target

Hi,

 

I am trying PRBS function in HLS, and integrating the HLS IP with XSDK . While running "PROGRAM FPGA" in XSDK, its showing bit stream is not compatiable with the target.

 

SOURCE CODE

 

void LFSR( ap_uint<8> load_data, ap_uint<32> &dout)
{
#pragma HLS INTERFACE s_axilite port=load_data bundle=a
#pragma HLS INTERFACE s_axilite port=dout bundle=a
#pragma HLS INTERFACE s_axilite port=return bundle=a

 static ap_uint<32> reg;
 ap_uint<32> bit;
 load_data =0XF4;
 ap_uint<8> ld =50;

if(ld<=50)
 reg = load_data;
bit = reg[3] ^ reg[2]; // implements the feedback polynomial
reg<<=1; //shifts the bits of the LFSR
reg[0] = bit; // assigns the feedback polynomial result to bit zero of the LFSR
dout = reg;
}

XSDK

 

int main()
{
init_platform();
u32 Resulth;
int load_data =0XF4;
XLfsr PRBS;
XLfsr  *PRBSPTR=&PRBS;
XLfsr_Initialize(PRBSPTR,XPAR_LFSR_0_DEVICE_ID);
XLfsr_Start(PRBSPTR);
XLfsr_Set_load_data_V(PRBSPTR, load_data);
while (!XLfsr_IsDone(PRBSPTR));
Resulth =XLfsr_Get_load_data_V(PRBSPTR);
XLfsr_Get_dout_V_vld(PRBSPTR);
xil_printf("[hw] Resulth = %d \r\n", Resulth);
cleanup_platform();
   return Resulth;
}

 

 

/************************** Function Prototypes *****************************/
#ifndef __linux__
int XLfsr_Initialize(XLfsr *InstancePtr, u16 DeviceId);
XLfsr_Config* XLfsr_LookupConfig(u16 DeviceId);
int XLfsr_CfgInitialize(XLfsr *InstancePtr, XLfsr_Config *ConfigPtr);
#else
int XLfsr_Initialize(XLfsr *InstancePtr, const char* InstanceName);
int XLfsr_Release(XLfsr *InstancePtr);
#endif

void XLfsr_Start(XLfsr *InstancePtr);
u32 XLfsr_IsDone(XLfsr *InstancePtr);
u32 XLfsr_IsIdle(XLfsr *InstancePtr);
u32 XLfsr_IsReady(XLfsr *InstancePtr);
void XLfsr_EnableAutoRestart(XLfsr *InstancePtr);
void XLfsr_DisableAutoRestart(XLfsr *InstancePtr);

void XLfsr_Set_load_data_V(XLfsr *InstancePtr, u32 Data);
u32 XLfsr_Get_load_data_V(XLfsr *InstancePtr);
u32 XLfsr_Get_dout_V(XLfsr *InstancePtr);
u32 XLfsr_Get_dout_V_vld(XLfsr *InstancePtr);

void XLfsr_InterruptGlobalEnable(XLfsr *InstancePtr);
void XLfsr_InterruptGlobalDisable(XLfsr *InstancePtr);
void XLfsr_InterruptEnable(XLfsr *InstancePtr, u32 Mask);
void XLfsr_InterruptDisable(XLfsr *InstancePtr, u32 Mask);
void XLfsr_InterruptClear(XLfsr *InstancePtr, u32 Mask);
u32 XLfsr_InterruptGetEnabled(XLfsr *InstancePtr);
u32 XLfsr_InterruptGetStatus(XLfsr *InstancePtr);

#ifdef __cplusplus
}
#endif

XSDK_Error console.PNG

Accepted Solutions
Highlighted
Teacher
Posts: 5,146
Registered: ‎03-31-2012

Re: Error pop_window in XSDK: bit stream is not compatiable with the target

@thaus_015 this error has nothing to do with HLS. Somehow your part selection doesn't match the actual part you are trying to use. Review your Vivado project where you generate the bit file and make sure it is targeted for the chip you are using properly.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.

View solution in original post


All Replies
Highlighted
Teacher
Posts: 5,146
Registered: ‎03-31-2012

Re: Error pop_window in XSDK: bit stream is not compatiable with the target

@thaus_015 this error has nothing to do with HLS. Somehow your part selection doesn't match the actual part you are trying to use. Review your Vivado project where you generate the bit file and make sure it is targeted for the chip you are using properly.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.