data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new/my_snake_top.v
1: b"%Error: data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new/my_snake_top.v:52: Cannot find file containing module: 'Keyboard'\n    Keyboard KEYBOARD(.CLK(CLK),.DATA(DATA),.cmd_out(cmd_out));\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new,data/full_repos/permissive/501710956/Keyboard\n             data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new,data/full_repos/permissive/501710956/Keyboard.v\n             data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new,data/full_repos/permissive/501710956/Keyboard.sv\n             Keyboard\n             Keyboard.v\n             Keyboard.sv\n             obj_dir/Keyboard\n             obj_dir/Keyboard.v\n             obj_dir/Keyboard.sv\n%Error: data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new/my_snake_top.v:54: Cannot find file containing module: 'Snake_top'\n    Snake_top SNAKE_TOP(.clk(clk),.rst_n(RST),.cmd_out(cmd_out),.food_x(food_x),.food_y(food_y),.map(map),.head_x(head1_x),.head_y(head1_y)\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/501710956/my_snake_single.srcs/sources_1/new/my_snake_top.v:58: Cannot find file containing module: 'VGA'\n    VGA VGA(.CLK(clk),.map(map),.head1_x(head1_x),.head1_y(head1_y),.food_x(food_x),.food_y(food_y)\n    ^~~\n%Error: Exiting due to 3 error(s)\n"
module my_snake_top(
    input CLK,
    input DATA,
    input RST,
    input clk,
    input mist,

    output [1:0] gamestate,
    output [1:0] direct,

    output [3:0] scorel,
    output [3:0] scorem,

    output [3:0] RED,
    output [3:0] GRN,
    output [3:0] BLU,
    output HSync,
    output VSync
    );

    wire [3:0] cmd_out;
    wire [5:0] food_x;
    wire [4:0] food_y;
    wire [5:0] head1_x;
    wire [4:0] head1_y;
    wire [999:0] map;



    Keyboard KEYBOARD(.CLK(CLK),.DATA(DATA),.cmd_out(cmd_out));

    Snake_top SNAKE_TOP(.clk(clk),.rst_n(RST),.cmd_out(cmd_out),.food_x(food_x),.food_y(food_y),.map(map),.head_x(head1_x),.head_y(head1_y)
                        ,.gamestate(gamestate),.direct(direct),.scorel(scorel),.scorem(scorem)
    );

    VGA VGA(.CLK(clk),.map(map),.head1_x(head1_x),.head1_y(head1_y),.food_x(food_x),.food_y(food_y)
            ,.RED(RED),.GRN(GRN),.BLU(BLU),.HSync(HSync),.VSync(VSync),.score_l(scorel),.score_m(scorem),.mist(mist)
    );

endmodule
module my_snake_top(
    input CLK,
    input DATA,
    input RST,
    input clk,
    input mist,

    output [1:0] gamestate,
    output [1:0] direct,

    output [3:0] scorel,
    output [3:0] scorem,

    output [3:0] RED,
    output [3:0] GRN,
    output [3:0] BLU,
    output HSync,
    output VSync
    );


    wire [3:0] cmd_out;
    wire [5:0] food_x;
    wire [4:0] food_y;
    wire [5:0] head1_x;
    wire [4:0] head1_y;
    wire [999:0] map;



    Keyboard KEYBOARD(.CLK(CLK),.DATA(DATA),.cmd_out(cmd_out));

    Snake_top SNAKE_TOP(.clk(clk),.rst_n(RST),.cmd_out(cmd_out),.food_x(food_x),.food_y(food_y),.map(map),.head_x(head1_x),.head_y(head1_y)
                        ,.gamestate(gamestate),.direct(direct),.scorel(scorel),.scorem(scorem)
    );

    VGA VGA(.CLK(clk),.map(map),.head1_x(head1_x),.head1_y(head1_y),.food_x(food_x),.food_y(food_y)
            ,.RED(RED),.GRN(GRN),.BLU(BLU),.HSync(HSync),.VSync(VSync),.score_l(scorel),.score_m(scorem),.mist(mist)
    );

endmodule