|
RENEWLab
1.1.0
RENEW project
|
Functions | |
| def | uint32tocfloat (arr, order='IQ') |
| def | cfloat2uint32 (arr, order='IQ') |
| def | bin_to_int (val, nbits) |
| def | int_to_bin (val, nbits) |
| def type_conv.bin_to_int | ( | val, | |
| nbits | |||
| ) |
Compute the two's complement of integer value
| def type_conv.cfloat2uint32 | ( | arr, | |
order = 'IQ' |
|||
| ) |
Convert floating point iq values to uint32 (FPGA format)
ARGS:
- arr: Data array
- order: Whether it is IQ or QI
RETURNS:
- corresponding uint32 value
| def type_conv.int_to_bin | ( | val, | |
| nbits | |||
| ) |
Convert int to a binary string
| def type_conv.uint32tocfloat | ( | arr, | |
order = 'IQ' |
|||
| ) |
Convert uint32 (FPGA format) to floating point iq values
ARGS:
- arr: Data array
- order: Whether it is IQ or QI
RETURNS:
- corresponding floating point value
