Forum Discussion
Altera_Forum
Honored Contributor
14 years agousing clock
Hi! I'm a beginner with my DE2-115 and vhdl programations. I'm trying to do a simple logic: make a led blink. To do this, I'm working with clock. But, I'm with some problems, because the led doe...
Altera_Forum
Honored Contributor
14 years agoThat code makes clkout go low for a single clk period out of 50000000, so you can't see the 20ns-long blink (assuming a 50MHz clk)
You should change the inner if in this way: if(cnt=25000000)then cnt:=0; clkout<= NOT clkout; else cnt := cnt+1; end if;