Altera_Forum
Honored Contributor
10 years ago#in Verilog
HI, I have a question what is# 1 in the command here. Is it just a comment. Sorry, im a newbie in verilog.
module simple_counter (
CLOCK_50,
counter_out
);
input CLOCK_50 ;
output counter_out;
reg counter_out;
always @ (posedge CLOCK_50) // on positive clock edge
begin
counter_out <=# 1 counter_out + 1;// increment counter
end
endmodule // end of module counter
module simple_counter (
CLOCK_50,
counter_out
);
input CLOCK_50 ;
output counter_out;
reg counter_out;
always @ (posedge CLOCK_50) // on positive clock edge
begin
counter_out <= #1 counter_out + 1;// increment counter
end
endmodule // end of module counter