Saras015
Banned
A factorial(30) will require at least a 108-bit output. Since C has no native types this large, i have to use the HLS arbitrary-precision types.
So, i started using that data type in my code. But it showing Type "uint64" can not resolved. Please suggest me why this error. How i need to declare in the HLS CODE
Source Code in HLS
So, i started using that data type in my code. But it showing Type "uint64" can not resolved. Please suggest me why this error. How i need to declare in the HLS CODE
Source Code in HLS
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <stdio.h> #define NUM 10 int Factorial(int a[NUM]) { #pragma HLS INTERFACE s_axilite port=a bundle=a #pragma HLS INTERFACE s_axilite port=return bundle=a int i; long long int fact=1; for (i=1; i<=NUM; i++) { #pragma HLS PIPELINE fact = fact*i; } return fact; }
Last edited by a moderator: