quantizer¶
- caf_verilog.quantizer.bin_num(n, n_bits)[source]¶
Produce a signed representation of the number n using n_bits.
- Parameters:
n – Number n
n_bits – Number of bits
- Returns:
- caf_verilog.quantizer.get_max(data)[source]¶
Get the maximum value of the array that can be used for the -Xmax to Xmax range.
- Parameters:
data –
- Returns:
- caf_verilog.quantizer.is_complex(data)[source]¶
Test whether the data has a complex value in it or not.
- Parameters:
data –
- Returns: