verilog

Joined
Nov 5, 2012
Messages
1
Reaction score
0
i'm trying to write a program for different led pattern using verilog.But i dont know why loop statement are not executed.this is my program

module led_p(led,clk);
output [7:0] led;
input clk;
reg[7:0] t;
reg [7:0] led;
always @(posedge clk) begin
repeat(10)
begin
t=8'b00000001;
t= t<<1 ;
end
led[7:0]=t;
end
endmodule
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top