data/full_repos/permissive/113582216/Experiment/design/keyClick.v
1: b"%Error: data/full_repos/permissive/113582216/Experiment/design/keyClick.v:40: Cannot find file containing module: 'keyPress'\n    keyPress u1(\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/113582216/Experiment/design,data/full_repos/permissive/113582216/keyPress\n             data/full_repos/permissive/113582216/Experiment/design,data/full_repos/permissive/113582216/keyPress.v\n             data/full_repos/permissive/113582216/Experiment/design,data/full_repos/permissive/113582216/keyPress.sv\n             keyPress\n             keyPress.v\n             keyPress.sv\n             obj_dir/keyPress\n             obj_dir/keyPress.v\n             obj_dir/keyPress.sv\n%Error: Exiting due to 1 error(s)\n"
module keyClick(
    input key_i,
    output clicked_o,
    input clk_i
    );

    wire pressed;
    reg current, post;

    always@(posedge clk_i)
    begin
        current <= pressed;
    end

    always@(posedge clk_i)
    begin
        post <= current;
    end

    keyPress u1(
    .key_i      (key_i),
    .pressed_o  (pressed),
    .clk_i      (clk_i)
    );

    assign clicked_o = (post == 0) && (current == 1);

endmodule
module keyClick(
    input key_i,
    output clicked_o,
    input clk_i
    );


    wire pressed;
    reg current, post;

    always@(posedge clk_i)
    begin
        current <= pressed;
    end

    always@(posedge clk_i)
    begin
        post <= current;
    end

    keyPress u1(
    .key_i      (key_i),
    .pressed_o  (pressed),
    .clk_i      (clk_i)
    );

    assign clicked_o = (post == 0) && (current == 1);

endmodule