data/full_repos/permissive/124591763/servo/ex/top.v
1: b"%Error: data/full_repos/permissive/124591763/servo/ex/top.v:24: Cannot find file containing module: 'servo_drv'\n    servo_drv sd (\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/124591763/servo/ex,data/full_repos/permissive/124591763/servo_drv\n             data/full_repos/permissive/124591763/servo/ex,data/full_repos/permissive/124591763/servo_drv.v\n             data/full_repos/permissive/124591763/servo/ex,data/full_repos/permissive/124591763/servo_drv.sv\n             servo_drv\n             servo_drv.v\n             servo_drv.sv\n             obj_dir/servo_drv\n             obj_dir/servo_drv.v\n             obj_dir/servo_drv.sv\n%Error: Exiting due to 1 error(s)\n"
module top (
    input  wire clk,

    output wire srv_o
);

    reg         st    = 1'b1;
    reg  [ 9:0] cnt   = 10'h0;

    reg  [14:0] pos_s = 15'h1770;

    always @ (posedge clk) begin
        cnt <= cnt + 10'h1;

        if (&cnt) begin
            if (pos_s > 15'h5dc0) st <= 1'b0;
            if (pos_s < 15'h1770) st <= 1'b1;

            if (st) pos_s <= pos_s + 15'h1;
            else    pos_s <= pos_s - 15'h1;
        end
    end

    servo_drv sd (
        .clk   (clk  ),
        .on_t  (pos_s),
        .srv_o (srv_o)
    );

endmodule
module top (
    input  wire clk,

    output wire srv_o
);


    reg         st    = 1'b1;
    reg  [ 9:0] cnt   = 10'h0;

    reg  [14:0] pos_s = 15'h1770;

    always @ (posedge clk) begin
        cnt <= cnt + 10'h1;

        if (&cnt) begin
            if (pos_s > 15'h5dc0) st <= 1'b0;
            if (pos_s < 15'h1770) st <= 1'b1;

            if (st) pos_s <= pos_s + 15'h1;
            else    pos_s <= pos_s - 15'h1;
        end
    end

    servo_drv sd (
        .clk   (clk  ),
        .on_t  (pos_s),
        .srv_o (srv_o)
    );

endmodule