Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Frequency_setting: process(SMCLK, RESET)
- begin
- if RESET = '1' then
- time_counter <= "0000000000000000000000";
- shift_counter <= "00000000";
- elsif SMCLK'event and SMCLK = '1' then
- shift_counter <= shift_counter + "1";
- if shift_counter(7 downto 0) = "11111111" then
- shift_counter <= "00000000";
- flag_8b <= '1';
- else
- flag_8b <= '0';
- end if;
- if flag_half_sec = '0' then
- time_counter <= time_counter + "1";
- if time_counter(21 downto 0) = "1111111111111111111111" then
- flag_half_sec <= '1';
- else
- flag_half_sec <= '0';
- end if;
- end if;
- end if;
- end process Frequency_setting;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement