xcorr

class caf_verilog.xcorr.XCorr(ref, rec, ref_i_bits=12, ref_q_bits=0, rec_i_bits=12, rec_q_bits=0, pipeline=True, output_dir='.')[source]

Bases: caf_verilog.caf_verilog_base.CafVerilogBase

gen_quantized_output()[source]
Returns:
gen_submodules()[source]
gen_tb()[source]
template_dict(inst_name=None)[source]
write_tb_values()[source]
write_xcorr_tb_module()[source]
caf_verilog.xcorr.dot_xcorr(ref, rec)[source]

Perform the cross correlation using the dot product. This produces an output list of magnitudes that are inverse offset from the center of the reference signal.

Parameters:
  • ref
  • rec
Returns:

caf_verilog.xcorr.simple_xcorr(f, g, nlags)[source]
Parameters:
  • f
  • g
  • nlags
Returns:

caf_verilog.xcorr.size_visualization(f, g, nlags)[source]