sim_helper

caf_verilog.sim_helper.get_sim_cpus() int[source]
caf_verilog.sim_helper.sim_get_runner() object[source]
caf_verilog.sim_helper.sim_shift(ref, ref_center, ref_length, shift=0, rec=None, padding=False, freq_shift=0, fs=625000.0)[source]
Parameters:
  • ref – Reference signal.

  • ref_center – Where to center the simulated signal set.

  • ref_length – The length of the signal equidistant around center.

  • shift – How much shift should be added to the simulated received signal.

  • rec – A received signal can be provided for the correlation simulation.

  • padding – Use padding to add zeros on the reference signal; ex. for generating a plot.

  • freq_shift – Apply a frequency shift to the reference signal, and return with shift as reference.

  • fs – Sampling Frequency

Returns:

ref, rec

Return type:

tuple