1 2 3 4 5 6 7
module inc(clock, counter); input clock; output reg [7:0] counter; always @(posedge clock) counter <= counter + 1; endmodule