cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Adventurer
Adventurer
2,694 Views
Registered: ‎10-19-2015

Ap_uint with more than 1024 bits

Jump to solution

Hi All,

 

 

According to HLS documentation, ap_uint<bit_width>, bit_width is 1024 bits at most. I need a design that gets 2048 bit input, and outputs these in 64-bit width chunks as below. However, currently, ap_uint does not support 2048 bit widths. What is the best way of doing this? 

 

top_level_example(ap_uint<2048>IN, ap_uint<32> out[64]) {

 

 

}

 

Thanks in advance. 

Tags (3)
0 Kudos
Reply
1 Solution

Accepted Solutions
Voyager
Voyager
4,176 Views
Registered: ‎06-24-2013

Hey @akboken

 

From UG902, the HLS User Guide ....

#define AP_INT_MAX_W 4096 // Must be defined before next line 
#include "ap_int.h" 

ap_int<4096> very_wide_var;

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!

View solution in original post

0 Kudos
Reply
1 Reply
Voyager
Voyager
4,177 Views
Registered: ‎06-24-2013

Hey @akboken

 

From UG902, the HLS User Guide ....

#define AP_INT_MAX_W 4096 // Must be defined before next line 
#include "ap_int.h" 

ap_int<4096> very_wide_var;

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!

View solution in original post

0 Kudos
Reply