Forum Discussion
Altera_Forum
Honored Contributor
17 years agoThanks for your reply,
I've already typed my first verilog program :) What do you think about this? module clk1s (CLOCK_50,LED); input CLOCK_50; output LED; reg LED; integer count; wire CLOCK_50; always @ (posedge CLOCK_50) begin count = count + 1; if (count >= 50000000)begin LED = ~LED; count = 0; end end endmodule Is there a simplest/better solution? Regards