]> jspc29.x-matter.uni-frankfurt.de Git - cri.git/commitdiff
Adapt MBS generator max count to 240 MHz clock
authorThomas Gessler <Thomas.Gessler@exp2.physik.uni-giessen.de>
Mon, 12 Oct 2020 14:59:49 +0000 (16:59 +0200)
committerThomas Gessler <Thomas.Gessler@exp2.physik.uni-giessen.de>
Mon, 12 Oct 2020 14:59:49 +0000 (16:59 +0200)
src/mbs_generator_cbmrich.vhd

index ac7c9770df06722c1a370cab993e268283363b12..50b7bf3446716b75691cf3dab5647eb376d913d0 100644 (file)
@@ -55,14 +55,14 @@ begin
      elsif (dlm_rx_i = '1') then
        mbs_local_trigger     <= '1';
        mbs_local_trigger_num <= (others => '0');    
-       cnt := 20479;--(10240*2)-1;
+       cnt := 24575;--(12288*2)-1;
      else
        cnt := cnt + 1;
-       if (cnt = 20479) then --(10240*2)-1;
+       if (cnt = 24575) then --(12288*2)-1;
          mbs_local_trigger     <= '1';
          mbs_local_trigger_num <= std_logic_vector(unsigned(mbs_local_trigger_num) + 1);
        end if;
-       if (cnt = (10240*2)) then
+       if (cnt = (12288*2)) then
          mbs_local_trigger <= '1';
          cnt := 0;
        end if;