Комментарии:
Pin selection on fpga?
Ответитьhere is the script.
module project_LED (in,out,clk);
input in,clk;
output reg out;
reg [22:0] count;
always @(posedge(clk))
begin
if(in==1)
begin
if (count == 0)
begin
out <= ~out;
end
count <= count + 1;
end
else
begin
out <= 0;
count <= 1;
end
end
endmodule
was really helpful. thanks
Ответитьthanks for this. i swear i learn more from these simple helloworld/blink led projects than from hours of scrolling through language tutorials
Ответить