Changeset 10760 for firmware/FTM/Timing_counters
- Timestamp:
- 05/20/11 12:24:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
firmware/FTM/Timing_counters/Timing_counter.vhd
r10742 r10760 70 70 signal read_counter_state : type_read_counter_state := IDLE; 71 71 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) ;72 signal counting : std_logic_vector (TC_WIDTH - 1 downto 0) := (others => '0'); 73 signal counter_reading_sig : std_logic_vector (TC_WIDTH - 1 downto 0) := (others => '0'); 74 signal precounting : std_logic_vector (PRECOUNT_WIDTH - 1 downto 0) := (others => '0'); 75 75 76 76 … … 87 87 if enable = '1' then 88 88 precounting <= precounting + 1; 89 if (precounting = PRECOUNT_DIVIDER) then89 if (precounting = (PRECOUNT_DIVIDER - 1)) then 90 90 counting <= counting + 1; 91 precounting <= (others => '0'); 91 precounting <= (others => '0'); 92 92 end if; 93 93 end if;
Note:
See TracChangeset
for help on using the changeset viewer.