Changeset 10742 for firmware/FTM


Ignore:
Timestamp:
05/18/11 17:20:01 (14 years ago)
Author:
vogler
Message:
FTM Timing counters added
Location:
firmware/FTM
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/ftm_definitions.vhd

    r10740 r10742  
    4848--
    4949-- kw 28.04.: changed SD_SINGLE_WORD_SIZE to X"002", added W5300_S0_KPALVTR (keep alive)
     50--
     51-- modified: Patrick Vogler, May 18 2011
     52-- constants for light pulser and timing counter added
    5053--
    5154----------------------------------------------------------------------------------
     
    387390  );
    388391
    389   -- Light pulser interface
    390   constant low_PLC : integer := 16;   -- minimal pulse duration in units of 4 ns
    391   constant width_PLC : integer := 6;  -- counter width pulse duration
    392 
     392  --======================================================================================
     393  -- Constants for Light pulser interface width (8ns+value*4ns)
     394  --======================================================================================
     395  -- constant low_PLC : integer := 16;   -- minimal pulse duration in units of 4 ns
     396  -- constant width_PLC : integer := 6;  -- counter width pulse duration
     397  constant FLD_PULSE_LENGTH       : integer := 12;       
     398  constant FLD_MIN_FREQ_DIV       : integer := 25;     
     399  constant FLD_FD_MULT            : integer := 50;       
     400  constant FLD_FD_MAX_RANGE       : integer := 64;     
     401 
    393402  -- Timing counter
    394   --  constant tc_width : integer := 48;    -- width (number of bits) of timing counter
    395   --  constant zero : unsigned (tc_width - 1 downto 0) := (others => '0'); 
    396 
     403  constant TC_WIDTH         : integer := 48;
     404  constant PRECOUNT_WIDTH   : integer := 8;
     405  constant PRECOUNT_DIVIDER : integer := 50;
     406 
    397407  --======================================================================================
    398408  -- Constants for calibration and pedestal triggers generation
Note: See TracChangeset for help on using the changeset viewer.