I am currently doing a project in VHDL in which I have a counter that needs to be updated in 100ms or in 1000 ms if a Key is pressed.
Example:
If Key3=0 then
c=c+1 (100ms)
elsif key3=1 then
c=c+1 (1000ms)
I'd like to know how to do it in VHDL.
I Believe I should use a process(clock, Key3) but I am not sure how to make the counter increase based on the period.
thanks in advance !