]> jspc29.x-matter.uni-frankfurt.de Git - mdcoep.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 26 May 2011 15:02:03 +0000 (15:02 +0000)
committerhadeshyp <hadeshyp>
Thu, 26 May 2011 15:02:03 +0000 (15:02 +0000)
design2/trigger_handler.vhd

index 55a49cb6fc3741162914fa2e4f9c5bd291fe8fd5..7f8ce80cd91f4523848b72076639f904eddacc02 100644 (file)
@@ -60,7 +60,7 @@ end entity;
 
 
 architecture trigger_handle_trg_arch of trigger_handler is
-  constant WAIT_AFTER_BEGRUN     : unsigned(11 downto 0) :=  x"7D0";
+--   constant WAIT_AFTER_BEGRUN     : unsigned(11 downto 0) :=  x"7D0";
 
   type state_type is (IDLE, BEGRUN, DO_REINIT, DO_REINIT2, TIMING_TRIGGER, CALIB_TRIGGER,
                       DO_READOUT, RELEASE_LVL1, WAIT_FOR_FINISHED_STORING);
@@ -75,7 +75,7 @@ architecture trigger_handle_trg_arch of trigger_handler is
   signal finished_cycle_i        : std_logic;
   signal lvl1_release_i          : std_logic;
 
-  signal timer                   : unsigned(11 downto 0);
+  signal timer                   : unsigned(3 downto 0);
   signal timer_clear             : std_logic;
 
   signal state_bits              : std_logic_vector(3 downto 0);
@@ -181,7 +181,7 @@ begin
               current_state               <= BEGRUN;
 
             when TIMING_TRIGGER =>
-              if timer = x"02" then
+              if timer = x"2" then
                 current_state             <= DO_READOUT;
                 start_readout_i           <= '1';
               end if;