- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 blinking (I tried it in different ways using different pins). I want to know the issue of this.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a very generic description of a problem. Can you provide more detail? Did you make I/O pin assignments to connect the outputs of your design to LEDs on the board? Can you provide the HDL code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're never changing the value of outp. It's always 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I didn't change the output value. That is 0.. Can you help me with this to generate a pulse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Athauda,
The question is very generic lot. Can you narrow down the issue ? Make sure the functionality is correct. Assuming code wise and functionality is simulated as expected, maybe some location assignment/pin planner for you PIO wrongly assigned? Need to double check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I checked it by changing the pins as well. But no change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Athauda,
Any update at your end regarding this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes.. I got it using above code by editing it as outp <= ~outp.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page