data/full_repos/permissive/172995952/src/snake_wrapper.v
1: b"%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:86: Cannot find file containing module: 'Master_state_machine'\n    Master_state_machine Master(\n    ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/172995952/src,data/full_repos/permissive/172995952/Master_state_machine\n             data/full_repos/permissive/172995952/src,data/full_repos/permissive/172995952/Master_state_machine.v\n             data/full_repos/permissive/172995952/src,data/full_repos/permissive/172995952/Master_state_machine.sv\n             Master_state_machine\n             Master_state_machine.v\n             Master_state_machine.sv\n             obj_dir/Master_state_machine\n             obj_dir/Master_state_machine.v\n             obj_dir/Master_state_machine.sv\n%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:100: Cannot find file containing module: 'Navigation_state_machine'\n    Navigation_state_machine Navigation(\n    ^~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:111: Cannot find file containing module: 'random_num_gen'\n    random_num_gen Target(\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:120: Cannot find file containing module: 'Score_counter'\n    Score_counter Score(\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:134: Cannot find file containing module: 'VGA_module'\n    VGA_module VGA(\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/172995952/src/snake_wrapper.v:145: Cannot find file containing module: 'Snake_control'\n    Snake_control Control(\n    ^~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module snake_wrapper(
            input CLK,
            input RESET,
            input BTNU,
            input BTND,
            input BTNL,
            input BTNR,
            input GAME_IN,
            output [11:0] COLOUR_OUT,
            output HS,
            output VS,
            output [3:0] SEG_SELECT_OUT,
            output [7:0] DEC_OUT
             
    );

    wire [1:0] MSM_STATE;
    wire SCORE_WIN;
    
    wire [1:0] NAV_STATE;
    
    wire [7:0] TARGET_ADDR_H;
    wire [6:0] TARGET_ADDR_V;
    
    wire TARGET_REACHED;
    
    wire [11:0] COLOUR_OUTS;
    
    wire [9:0] ADDRH;
    wire [8:0] ADDRV;
    
    wire Timed_Mode;
    
    wire LOST;
    
    wire WIN;
    
    

    Master_state_machine Master(
                            .BTNU(BTNU),
                            .BTND(BTND),
                            .BTNR(BTNR),
                            .BTNL(BTNL),
                            .CLK(CLK),
                            .RESET(RESET),
                            .SCORE_WIN(SCORE_WIN),
                            .LOST(LOST),
                            .WIN(WIN),
                            .MSM_STATE(MSM_STATE)
                            );
                            

    Navigation_state_machine Navigation(
                            .BTNU(BTNU),
                            .BTND(BTND),
                            .BTNR(BTNR),
                            .BTNL(BTNL),
                            .CLK(CLK),
                            .RESET(RESET),
                            .NAV_STATE(NAV_STATE)
                            );
    

    random_num_gen Target(
                            .RESET(RESET),
                            .CLK(CLK),
                            .TARGET_REACHED(TARGET_REACHED),
                            .TARGET_ADDR_H(TARGET_ADDR_H),
                            .TARGET_ADDR_V(TARGET_ADDR_V)
                            );
    

    Score_counter Score(
                            .RESET(RESET),
                            .CLK(CLK),
                            .TARGET_REACHED(TARGET_REACHED),
                            .SEG_SELECT_OUT(SEG_SELECT_OUT),
                            .DEC_OUT(DEC_OUT),
                            .SCORE_WIN(SCORE_WIN),
                            .Timed_Mode(Timed_Mode),
                            .MSM_STATE(MSM_STATE),
                            .LOST(LOST),
                            .WIN(WIN)
                            );
    

    VGA_module VGA(
                            .COLOUR_IN(COLOUR_OUTS),
                            .CLK(CLK),
                            .HS(HS),
                            .VS(VS),
                            .ADDRH(ADDRH),
                            .ADDRY(ADDRV),
                            .COLOUR_OUT(COLOUR_OUT)
                            );
    

    Snake_control Control(
                            .MSM_STATE(MSM_STATE),
                            .NAV_STATE(NAV_STATE),
                            .TARGET_ADDR_H(TARGET_ADDR_H),
                            .TARGET_ADDR_V(TARGET_ADDR_V),
                            .ADDRH(ADDRH),
                            .ADDRY(ADDRV),
                            .COLOUR_OUT(COLOUR_OUTS),
                            .TARGET_REACHED(TARGET_REACHED),
                            .CLK(CLK),
                            .GAME_IN(GAME_IN),
                            .Timed_Mode(Timed_Mode),
                            .LOST(LOST),
                            .WIN(WIN),
                            .RESET(RESET)
                            );
                            
endmodule
module snake_wrapper(
            input CLK,
            input RESET,
            input BTNU,
            input BTND,
            input BTNL,
            input BTNR,
            input GAME_IN,
            output [11:0] COLOUR_OUT,
            output HS,
            output VS,
            output [3:0] SEG_SELECT_OUT,
            output [7:0] DEC_OUT
             
    );


    wire [1:0] MSM_STATE;
    wire SCORE_WIN;
    
    wire [1:0] NAV_STATE;
    
    wire [7:0] TARGET_ADDR_H;
    wire [6:0] TARGET_ADDR_V;
    
    wire TARGET_REACHED;
    
    wire [11:0] COLOUR_OUTS;
    
    wire [9:0] ADDRH;
    wire [8:0] ADDRV;
    
    wire Timed_Mode;
    
    wire LOST;
    
    wire WIN;
    
    

    Master_state_machine Master(
                            .BTNU(BTNU),
                            .BTND(BTND),
                            .BTNR(BTNR),
                            .BTNL(BTNL),
                            .CLK(CLK),
                            .RESET(RESET),
                            .SCORE_WIN(SCORE_WIN),
                            .LOST(LOST),
                            .WIN(WIN),
                            .MSM_STATE(MSM_STATE)
                            );
                            

    Navigation_state_machine Navigation(
                            .BTNU(BTNU),
                            .BTND(BTND),
                            .BTNR(BTNR),
                            .BTNL(BTNL),
                            .CLK(CLK),
                            .RESET(RESET),
                            .NAV_STATE(NAV_STATE)
                            );
    

    random_num_gen Target(
                            .RESET(RESET),
                            .CLK(CLK),
                            .TARGET_REACHED(TARGET_REACHED),
                            .TARGET_ADDR_H(TARGET_ADDR_H),
                            .TARGET_ADDR_V(TARGET_ADDR_V)
                            );
    

    Score_counter Score(
                            .RESET(RESET),
                            .CLK(CLK),
                            .TARGET_REACHED(TARGET_REACHED),
                            .SEG_SELECT_OUT(SEG_SELECT_OUT),
                            .DEC_OUT(DEC_OUT),
                            .SCORE_WIN(SCORE_WIN),
                            .Timed_Mode(Timed_Mode),
                            .MSM_STATE(MSM_STATE),
                            .LOST(LOST),
                            .WIN(WIN)
                            );
    

    VGA_module VGA(
                            .COLOUR_IN(COLOUR_OUTS),
                            .CLK(CLK),
                            .HS(HS),
                            .VS(VS),
                            .ADDRH(ADDRH),
                            .ADDRY(ADDRV),
                            .COLOUR_OUT(COLOUR_OUT)
                            );
    

    Snake_control Control(
                            .MSM_STATE(MSM_STATE),
                            .NAV_STATE(NAV_STATE),
                            .TARGET_ADDR_H(TARGET_ADDR_H),
                            .TARGET_ADDR_V(TARGET_ADDR_V),
                            .ADDRH(ADDRH),
                            .ADDRY(ADDRV),
                            .COLOUR_OUT(COLOUR_OUTS),
                            .TARGET_REACHED(TARGET_REACHED),
                            .CLK(CLK),
                            .GAME_IN(GAME_IN),
                            .Timed_Mode(Timed_Mode),
                            .LOST(LOST),
                            .WIN(WIN),
                            .RESET(RESET)
                            );
                            
endmodule