data/full_repos/permissive/117736309/debounce.v
1: b"%Error: data/full_repos/permissive/117736309/debounce.v:14: Cannot find file containing module: 'timer_1ms'\n    timer_1ms m0(clk, clk_1ms);\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/117736309,data/full_repos/permissive/117736309/timer_1ms\n             data/full_repos/permissive/117736309,data/full_repos/permissive/117736309/timer_1ms.v\n             data/full_repos/permissive/117736309,data/full_repos/permissive/117736309/timer_1ms.sv\n             timer_1ms\n             timer_1ms.v\n             timer_1ms.sv\n             obj_dir/timer_1ms\n             obj_dir/timer_1ms.v\n             obj_dir/timer_1ms.sv\n%Error: Exiting due to 1 error(s)\n"
module debounce(
    input wire clk,
    input wire button,
    output reg click
);

    reg [3:0] cnt;
    wire clk_1ms;

    localparam threshold = 10;

    timer_1ms m0(clk, clk_1ms);

    always @(posedge clk_1ms)
    begin
        if (button == 0) begin
            click = 0;
            cnt = 0;
        end
        else begin
            if (cnt < threshold) begin
                cnt = cnt + 1'b1;
                click = 0;
            end else begin
                click = 1;
            end
        end
    end

endmodule
module debounce(
    input wire clk,
    input wire button,
    output reg click
);


    reg [3:0] cnt;
    wire clk_1ms;

    localparam threshold = 10;

    timer_1ms m0(clk, clk_1ms);

    always @(posedge clk_1ms)
    begin
        if (button == 0) begin
            click = 0;
            cnt = 0;
        end
        else begin
            if (cnt < threshold) begin
                cnt = cnt + 1'b1;
                click = 0;
            end else begin
                click = 1;
            end
        end
    end

endmodule