cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
132 Views
Registered: ‎10-10-2017

x_complex initialization

Hi,

is there a way to initialize hls::x_complex type variable with an integer such that:

//Cmplx real and imaginary parts are of 16bits length

cmplx.real = (short)int;//low 16bits
cmplx.imag = (short)((int & 0xFFFF0000)>>16); high 16bits;

without doing the arithmetics as the example above?

 

Thanks,
Ziv

0 Kudos
0 Replies