]> jspc29.x-matter.uni-frankfurt.de Git - tdc.git/commitdiff
Change stretcher output to left side, increase length for ECP5, make calibration...
authorJan Michel <j.michel@gsi.de>
Thu, 16 Aug 2018 11:21:31 +0000 (13:21 +0200)
committerJan Michel <j.michel@gsi.de>
Thu, 16 Aug 2018 11:21:31 +0000 (13:21 +0200)
releases/tdc_v2.3/Stretcher.vhd
releases/tdc_v2.3/TDC_record.vhd
releases/tdc_v2.3/TriggerHandler.vhd

index 11bdca5d244cbd4eb698ec714ce81ce059972180..104bf4cadc30682a6e4cbc9b2a083668bc0ba0cf 100644 (file)
@@ -40,7 +40,7 @@ begin  -- behavioral
     pulse_a_in(DEPTH*i)                        <= PULSE_IN(i-1);
     pulse_a_in(DEPTH*i-1 downto DEPTH*(i-1)+1) <= pulse_b_out(DEPTH*i-1 downto DEPTH*(i-1)+1);
     pulse_b_in(DEPTH*i-1 downto DEPTH*(i-1)+1) <= pulse_a_out(DEPTH*i-1 downto DEPTH*(i-1)+1);
-    PULSE_OUT(i-1)                             <= transport not pulse_a_out(DEPTH*(i-1)) after 42.186 ns;
+    PULSE_OUT(i-1)                             <= transport pulse_b_out(DEPTH*(i-1)+1) after 42.186 ns;
   end generate GEN;
 
   Stretcher_A_1 : entity work.Stretcher_A
index 11a8e026611f5d8e4b555b98f817d9c1894b57cf..11a00914c9c70122f987fda86dd0ead99aa75561 100644 (file)
@@ -304,7 +304,7 @@ begin
     The_Stretcher : entity work.Stretcher
       generic map (
         CHANNEL => CHANNEL_NUMBER-1,
-        DEPTH   => 4)
+        DEPTH   => 4+(FPGA_TYPE/4)) --4 for ECP3, 5 for ECP5
       port map (
         PULSE_IN  => edge_falling(CHANNEL_NUMBER-1 downto 1),
         PULSE_OUT => edge_falling_d(CHANNEL_NUMBER-1 downto 1));
index 7c168c49a160a5cce68b0c3f63f48508be7aac40..84f23c50cce8c332f9bae52216bc2e40d1bf9d64 100644 (file)
@@ -229,6 +229,7 @@ trg_pulse_tdc(0) <= valid_timing_200;
         elsif valid_notiming_200 = '1' then
           if TRG_TYPE_IN = x"D" then
             STATE_TW_NEXT <= COUNT_CALIBRATION;
+            trg_win_cnt_f <= x"005";
           else
             STATE_TW_NEXT <= WAIT_NEXT_TRIGGER;
           end if;