1 year ago

#338027

test-img

MAJID AHMAD

108-bit integer in test bench

I am using Vivado HLS 2018.3. I am defining 108-bit unsigned integer using ap_int.h library. In the test bench I am initializing a 108-bit variable as :

inData = 259614842926741381426524816461004;

However, while doing C simulation, I am getting error as follows :

warning: integer constant is too large for its type

And my code is not compiling. However this same source code works fine for 16-bit input in test bench. Please suggest a way out. Thanks !

c++

vivado

vivado-hls

0 Answers

Your Answer

Accepted video resources