Ignore:
Timestamp:
05/20/11 12:24:51 (14 years ago)
Author:
weitzel
Message:
FTM: reset of timing counters implemented
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTM/Timing_counters/Timing_counter.vhd

    r10742 r10760  
    7070signal read_counter_state       : type_read_counter_state  := IDLE;   
    7171 
    72 signal counting            : std_logic_vector (TC_WIDTH - 1       downto 0);
    73 signal counter_reading_sig : std_logic_vector (TC_WIDTH - 1       downto 0);
    74 signal precounting         : std_logic_vector (PRECOUNT_WIDTH - 1 downto 0);
     72signal counting            : std_logic_vector (TC_WIDTH - 1       downto 0) := (others => '0');
     73signal counter_reading_sig : std_logic_vector (TC_WIDTH - 1       downto 0) := (others => '0');
     74signal precounting         : std_logic_vector (PRECOUNT_WIDTH - 1 downto 0) := (others => '0');
    7575
    7676
     
    8787           if enable = '1' then
    8888              precounting <= precounting + 1;
    89               if (precounting = PRECOUNT_DIVIDER) then         
     89              if (precounting = (PRECOUNT_DIVIDER - 1)) then         
    9090                counting <= counting + 1;
    91                 precounting <= (others => '0');                  
     91                precounting <= (others => '0'); 
    9292              end if;         
    9393       end if;       
Note: See TracChangeset for help on using the changeset viewer.