data/full_repos/permissive/494905093/AES System with PUF/AES System with APUF/debounce.v
1: b'%Error: Cannot find file containing module: System\n        ... Looked in:\n             data/full_repos/permissive/494905093/AES/System\n             data/full_repos/permissive/494905093/AES/System.v\n             data/full_repos/permissive/494905093/AES/System.sv\n             System\n             System.v\n             System.sv\n             obj_dir/System\n             obj_dir/System.v\n             obj_dir/System.sv\n%Error: Cannot find file containing module: with\n%Error: Cannot find file containing module: PUF/AES\n%Error: Cannot find file containing module: APUF,data/full_repos/permissive/494905093\n%Error: Cannot find file containing module: data/full_repos/permissive/494905093/AES\n%Error: Cannot find file containing module: APUF/debounce.v\n%Error: Exiting due to 6 error(s)\n'
module debounce(
    input clk,
    input  sig_in,
    output sig_out
    );
    reg [19:0]count;
    reg q1,q2,q3;
    
    always@(posedge clk)begin
       q1 <= sig_in;
       q2 <= q1;
       q3 <= q2;
    end
    always@(posedge clk)begin
        if(q3)
            count <= {20{1'b0}};
        else if(!count[19])
            count <= count + 1'b1;
    end
    assign sig_out = ~count[19];
endmodule
module debounce(
    input clk,
    input  sig_in,
    output sig_out
    );

    reg [19:0]count;
    reg q1,q2,q3;
    
    always@(posedge clk)begin
       q1 <= sig_in;
       q2 <= q1;
       q3 <= q2;
    end
    always@(posedge clk)begin
        if(q3)
            count <= {20{1'b0}};
        else if(!count[19])
            count <= count + 1'b1;
    end
    assign sig_out = ~count[19];
endmodule