Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SSB: PROCESS(clk_1khz, rst_state)
- variable counter : integer := 0;
- begin
- if(rst_state = '1') then
- counter := 0;
- ssb_state <= 0;
- elsif(rising_edge(clk_1khz)) then
- if(start_stop_button_i = '1') then
- counter := counter + 1;
- else
- if(counter > 50) then
- if(ssb_state = 2) then
- ssb_state <= 0;
- ssb_reset <= '1';
- else
- ssb_state <= ssb_state + 1;
- end if;
- end if;
- counter := 0;
- end if;
- end if;
- end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement