• Maciej Lipinski's avatar
    [streamers] bugfix of streamers simulation · f56b734e
    Maciej Lipinski authored
    For simulation, the second duration is forced to be shorter with the
    generic g_sim_cycle_counter_range. The problem is that the tai/cycle
    counters are still counting full seconds, the trick was done only
    when calculating the delay in function f_cycles_counter_range()
    in fixed_latency_ts_match.vhd. This worked fine unless the timestamps
    were at the edge of the "shorter" second and fixed-latency was
    enabled. In such case, it happened that the time of releasing
    data from streamers was calcualted for TAI+1, yet TAI was incremented
    after the "true" second, not the shorter one. So, the simulation
    was stuck.
    
    To avoid messing up with PPS gen in which the tai/cycles are
    generated, for simulation the tai/cycle values are overriden
    in the xwr_streamer top module. This "alternative" TAI time
    is counted from the time when time_valid goes HIGH.
    
    This solution should work for streamers, provided that tx/rx
    instances have the time_valid go HIGH more or less at the same time.
    As far as I can tell, this is usually the case.
    f56b734e
Name
Last commit
Last update
..
Manifest.py Loading commit data...
build_wb.sh Loading commit data...
dropping_buffer.vhd Loading commit data...
escape_detector.vhd Loading commit data...
escape_inserter.vhd Loading commit data...
fifo_showahead_adapter.vhd Loading commit data...
fixed_latency_delay.vhd Loading commit data...
fixed_latency_ts_match.vhd Loading commit data...
rx_streamer.vhd Loading commit data...
streamers_pkg.vhd Loading commit data...
streamers_priv_pkg.vhd Loading commit data...
ts_restore_tai.vhd Loading commit data...
tx_streamer.vhd Loading commit data...
wr_streamers_wb.html Loading commit data...
wr_streamers_wb.vhd Loading commit data...
wr_streamers_wb.wb Loading commit data...
wr_streamers_wbgen2_pkg.vhd Loading commit data...
xrtx_streamers_stats.vhd Loading commit data...
xrx_streamer.vhd Loading commit data...
xrx_streamers_stats.vhd Loading commit data...
xtx_streamer.vhd Loading commit data...
xtx_streamers_stats.vhd Loading commit data...
xwr_streamers.vhd Loading commit data...