~ruther/jesd204b-vhdl

29df90a79e978d9c6ea9a86440fae3cf701c3b53 — František Boháček 2 years ago 17c4ec0
fix: offset lmfc counter to align with sysref by default
1 files changed, 1 insertions(+), 1 deletions(-)

M src/lmfc_counter.vhd
M src/lmfc_counter.vhd => src/lmfc_counter.vhd +1 -1
@@ 33,7 33,7 @@ begin  -- architecture a1
    elsif ci_device_clk'event and ci_device_clk = '1' then  -- rising clock edge
      count <= (count + 1) mod COUNT_TO;
      if prev_sysref = '0' and ci_sysref = '1' and ci_enable_sync = '1' then
        count <= (-PHASE_ADJUST) mod COUNT_TO;
        count <= (-PHASE_ADJUST + 1) mod COUNT_TO;
      end if;
      prev_sysref <= ci_sysref;
    end if;

Do not follow this link