data/full_repos/permissive/194450802/level_loader.v
1: b"%Error: data/full_repos/permissive/194450802/level_loader.v:149: Cannot find file containing module: 'level_0'\n    level_0 lvl0(.x(grid_x), .y(grid_y), .value(grid_in0));\n    ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/194450802,data/full_repos/permissive/194450802/level_0\n             data/full_repos/permissive/194450802,data/full_repos/permissive/194450802/level_0.v\n             data/full_repos/permissive/194450802,data/full_repos/permissive/194450802/level_0.sv\n             level_0\n             level_0.v\n             level_0.sv\n             obj_dir/level_0\n             obj_dir/level_0.v\n             obj_dir/level_0.sv\n%Error: data/full_repos/permissive/194450802/level_loader.v:150: Cannot find file containing module: 'level_1'\n    level_1 lvl1(.x(grid_x), .y(grid_y), .value(grid_in1));\n    ^~~~~~~\n%Error: data/full_repos/permissive/194450802/level_loader.v:151: Cannot find file containing module: 'level_2'\n    level_2 lvl2(.x(grid_x), .y(grid_y), .value(grid_in2));\n    ^~~~~~~\n%Error: data/full_repos/permissive/194450802/level_loader.v:152: Cannot find file containing module: 'level_3'\n    level_3 lvl3(.x(grid_x), .y(grid_y), .value(grid_in3));\n    ^~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module level_loader(clock, reset,
                    start, done,
                    level,
                    grid_x, grid_y, grid_in, grid_write);

    input clock;
    input reset;


    input start;
    output done;


    input [1:0] level;


    output [5:0] grid_x;
    output [4:0] grid_y;
    output [2:0] grid_in;
    output grid_write;


    wire reset_counter, increment_counter;

    wire counter_at_max;
    _level_loader_fsm llf0(.clock(clock),
                           .reset(reset),
                           .start(start),
                           .done(done),
                           .reset_counter(reset_counter),
                           .increment_counter(increment_counter),
                           .grid_write(grid_write),
                           .counter_at_max(counter_at_max));

    _level_loader_datapath lld0(.clock(clock),
                                .reset(reset),
                                .level(level),
                                .grid_x(grid_x),
                                .grid_y(grid_y),
                                .grid_in(grid_in),
                                .reset_counter(reset_counter),
                                .increment_counter(increment_counter),
                                .counter_at_max(counter_at_max));

endmodule
module level_loader(clock, reset,
                    start, done,
                    level,
                    grid_x, grid_y, grid_in, grid_write);


    input clock;
    input reset;


    input start;
    output done;


    input [1:0] level;


    output [5:0] grid_x;
    output [4:0] grid_y;
    output [2:0] grid_in;
    output grid_write;


    wire reset_counter, increment_counter;

    wire counter_at_max;
    _level_loader_fsm llf0(.clock(clock),
                           .reset(reset),
                           .start(start),
                           .done(done),
                           .reset_counter(reset_counter),
                           .increment_counter(increment_counter),
                           .grid_write(grid_write),
                           .counter_at_max(counter_at_max));

    _level_loader_datapath lld0(.clock(clock),
                                .reset(reset),
                                .level(level),
                                .grid_x(grid_x),
                                .grid_y(grid_y),
                                .grid_in(grid_in),
                                .reset_counter(reset_counter),
                                .increment_counter(increment_counter),
                                .counter_at_max(counter_at_max));

endmodule