Chamathka
New Contributor
4 years agoFPGA
I am a beginner in FPGA programming. I wanted to blink LED on my FPGA board. Code compilation was done successfully. So, I programmed it on my DE0- Nano Altera FPGA board. But I could not see the LED...
module LED_blink(clk,outp);
input clk;
output reg outp=0;
reg [25:0] count=0;
always@(posedge clk)
begin
if(count<25000000) // blink 1 sec as clk freq is 50MHz
begin
count<=count+1;
end
else
begin
count<=0;
outp<=outp;
end
end
endmodule
You're never changing the value of outp. It's always 0.