yosys/manual/CHAPTER_StateOfTheArt/always02_pub.v

15 lines
195 B
Verilog
Raw Normal View History

2013-07-20 08:19:12 -05:00
module uut_always02(clock,
reset, count);
input clock, reset;
output [3:0] count;
reg [3:0] count;
always @(posedge clock) begin
count <= count + 1;
if (reset)
count <= 0;
end
endmodule