Forum Discussion
Hakeen
New Contributor
5 years agoDid anybody find a solution? I have the same problem here...
I use the exact code from
https://software.intel.com/content/www/us/en/develop/articles/how-to-program-your-first-fpga-device.html
At the bottom, with 8 LEDs.. No single change done to the code..
Compilation gets stuck at 32%...
Hakeen
New Contributor
5 years agohere the code:
// create module
module blink(
input wire clk, // 50MHz input clock
output wire [7:0] LED // array of 8 LEDs
);
// create a binary counter
reg [31:0] cnt; //32 bit counter
initial begin
cnt <= 32'h00000000; // start count at zero
end
always @(posedge clk) begin
cnt <= cnt+1; // count up
end
//assign LEDs to bits 28 through 21 of the counter
assign LED = cnt[28:21];