module strobe #(
    parameter BITS=8
) (
    input reset,
    input clk,
    output out
);
    reg  [BITS-1:0] count;
    wire [BITS-1:0] next;
    assign next = count + 'b1;
    assign out = next == 'b0;
    always @(posedge clk) begin
        if (reset) begin
            count <= 'b0;
        end else begin
            count <= next;
        end
    end
endmodule