the timer written by VHDL