Saras015
Banned
I am working on factorial program in HLS, and have created the IP.
Created source code (in HLS) ->synthesis->Generating IP core
Integrated IP core through VIVADO to generate bit stream
Export hardware->Launch SDK
Now stuck at launching on Hardware using SDK c program. Could anyone help me correcting my code in SDK?? Using kintex7 board, AXI and Tera Terminal.
Source Code in HLS
Just calling my generated HLS IP in SDK, but I am not getting correct result in Terminal. please help me ..
Created source code (in HLS) ->synthesis->Generating IP core
Integrated IP core through VIVADO to generate bit stream
Export hardware->Launch SDK
Now stuck at launching on Hardware using SDK c program. Could anyone help me correcting my code in SDK?? Using kintex7 board, AXI and Tera Terminal.
Source Code in HLS
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 int Factorial(int a[NUM]) { int i; long long int fact=1; for (i=1; i<=NUM; i++) { pragma HLS PIPELINE fact = fact*i; } return fact; } SDK Codes include "xfactorial.h" int main() { long long int result; init_platform(); print("\r\n----\r\nFactorial Function\n\r"); XFactorial Xfactorial; XFactorial *xfactptr=&Xfactorial; XFactorial_Initialize(xfactptr,XPAR_FACTORIAL_0_DEVICE_ID); XFactorial_Start(xfactptr); while (!XFactorial_IsDone(xfactptr)); result = XFactorial_Get_return(xfactptr); xil_printf("Factorial is %d\n", result); cleanup_platform(); return 0; }
Just calling my generated HLS IP in SDK, but I am not getting correct result in Terminal. please help me ..