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:
CafVerilogBase
- async caf_verilog.xcorr.capture_test_output_data(dut, cycle_timeout=11) tuple [source]¶
This method will wait for signal s_axis_tvalid to become 1, and then return the out_max and index values.
- caf_verilog.xcorr.dot_xcorr(ref, rec) list [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.gen_tb_values(ref, rec)[source]¶
Reference and received vectors to be provided to the module. Copies the ref vector by the length of the ref vector. Received vector is shifted in by a positive offset each time.