RENEWLab  1.1.0
RENEW project
type_conv Namespace Reference

Functions

def uint32tocfloat (arr, order='IQ')
 
def cfloat2uint32 (arr, order='IQ')
 
def bin_to_int (val, nbits)
 
def int_to_bin (val, nbits)
 

Function Documentation

◆ bin_to_int()

def type_conv.bin_to_int (   val,
  nbits 
)
Compute the two's complement of integer value

◆ cfloat2uint32()

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

◆ int_to_bin()

def type_conv.int_to_bin (   val,
  nbits 
)
Convert int to a binary string

◆ uint32tocfloat()

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
Here is the caller graph for this function: