data/full_repos/permissive/449071180/snake_game_lower_level.v
1: b"%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:64: Cannot find file containing module: 'eight_by_eight_shift_register'\neight_by_eight_shift_register snake_space(clk_eightxeight,reset_master|collision_reset,(set_eightbyeight|set_collide),x_select,y_select,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,control,x_select,y_select,left_edge,right_edge,upper_edge,lower_edge);\n^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/449071180,data/full_repos/permissive/449071180/eight_by_eight_shift_register\n             data/full_repos/permissive/449071180,data/full_repos/permissive/449071180/eight_by_eight_shift_register.v\n             data/full_repos/permissive/449071180,data/full_repos/permissive/449071180/eight_by_eight_shift_register.sv\n             eight_by_eight_shift_register\n             eight_by_eight_shift_register.v\n             eight_by_eight_shift_register.sv\n             obj_dir/eight_by_eight_shift_register\n             obj_dir/eight_by_eight_shift_register.v\n             obj_dir/eight_by_eight_shift_register.sv\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:66: Cannot find file containing module: 'bcd_to_decimal'\nbcd_to_decimal xcoordinate(x_select_mux,x_select);\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:67: Cannot find file containing module: 'bcd_to_decimal'\nbcd_to_decimal ycoordinate(y_select_mux,y_select);\n^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:68: Cannot find file containing module: 'move_input'\nmove_input input_reader(left,right,up,down,read_move,reset_master|collision_reset,clk_load_move);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:70: Cannot find file containing module: 'three_bit_mux'\nthree_bit_mux direction_select(out_pos,out_head,food_collide,control);\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:72: Cannot find file containing module: 'three_bit_mux'\nthree_bit_mux head_tail_x(load_x,head_x,food_collide,x_select_mux); \n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:73: Cannot find file containing module: 'three_bit_mux'\nthree_bit_mux head_tail_y(load_y,head_y,food_collide,y_select_mux);\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:75: Cannot find file containing module: 'three_bit_flip_flop'\nthree_bit_flip_flop hold_tail_x(tail_x,update_counters,load_x,0,reset_master|collision_reset);\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:76: Cannot find file containing module: 'three_bit_flip_flop'\nthree_bit_flip_flop hold_tail_y(tail_y,update_counters,load_y,0,reset_master|collision_reset);\n^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:78: Cannot find file containing module: 'position_recorder'\nposition_recorder head_pos(update_counters,r_h,l_h,u_h,d_h,reset_master|collision_reset,head_x,head_y,edge_collision,load_x,load_y,0);\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:80: Cannot find file containing module: 'position_recorder'\nposition_recorder tail_pos(update_counters,r_t,l_t,u_t,d_t,reset_master|collision_reset,tail_x,tail_y,edge_collision_tail,load_x,load_y,load_out);\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:82: Cannot find file containing module: 'move_to_position'\nmove_to_position head(out_head,r_h,l_h,u_h,d_h);\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:84: Cannot find file containing module: 'move_to_position'\nmove_to_position tail(out_pos,r_t,l_t,u_t,d_t);\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:86: Cannot find file containing module: 'move_register'\nmove_register move_holder(clk_load_move_register,read_move,out_head,out_pos,snake_length,reset_master|collision_reset,1);\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:89: Cannot find file containing module: 'clk_drivers'\nclk_drivers clock_machine(reset_master|collision_reset,clk_master,clk_load_move,clk_load_move_register,set_eightbyeight,update_counters,clk_eightxeight,food_collide,set_collide,load_out,snake_increment,clk_food,new_food_collision,display);\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:91: Cannot find file containing module: 'or_all_rows'\nor_all_rows main_output(row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,row_1_main,row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main);\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:93: Cannot find file containing module: 'row_converter'\nrow_converter food_coordinates(food_x,food_y,row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos);\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:95: Cannot find file containing module: 'food_system'\nfood_system  food_supply(clk_food,reset_master|collision_reset,head_x,head_y,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,food_collide,new_food_collision,food_y,food_x);\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:97: Cannot find file containing module: 'snake_length_counter'\nsnake_length_counter snake_length_score(snake_increment,reset_master|collision_reset,snake_length);\n^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:99: Cannot find file containing module: 'collision_detector'\ncollision_detector detect_collision(row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,collision,head_x,head_y);\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/449071180/snake_game_lower_level.v:101: Cannot find file containing module: 'D_Flip_Flop'\nD_Flip_Flop colission_unrest(collision,collision_flip_flop,reset_master|collision_reset,~update_counters,0);\n^~~~~~~~~~~\n%Error: Exiting due to 21 error(s)\n"
module snake_game_lower_level(reset_master,clk_master,left,right,up,down,display,row_1_main,row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main);

input wire left,right,up,down,reset_master,clk_master;

output wire display;




wire [2:0] control;


wire [7:0] row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8;



wire [7:0] row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos;



output wire [7:0] row_1_main, row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main;


wire [7:0] x_select,y_select;
wire [2:0] x_select_mux,y_select_mux;

wire edge_collision,edge_collision_tail;
wire[2:0] load_x,load_y;


wire [2:0]  head_x,head_y,tail_x,tail_y;


wire r_h,l_h,u_h,d_h;
wire r_t,l_t,u_t,d_t;

wire [2:0] read_move;



wire [2:0] out_head,out_pos;



wire clk_load_move,clk_load_move_register,set_eightbyeight,update_counters,clk_eightxeight,set_collide,load_out,snake_increment,clk_food;


wire [7:0] left_edge,right_edge,upper_edge,lower_edge;



wire food_collide,new_food_collision;

wire [2:0] food_x,food_y;



wire [5:0] snake_length;



wire collision, collision_reset, collision_flip_flop;

eight_by_eight_shift_register snake_space(clk_eightxeight,reset_master|collision_reset,(set_eightbyeight|set_collide),x_select,y_select,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,control,x_select,y_select,left_edge,right_edge,upper_edge,lower_edge);

bcd_to_decimal xcoordinate(x_select_mux,x_select);
bcd_to_decimal ycoordinate(y_select_mux,y_select);
move_input input_reader(left,right,up,down,read_move,reset_master|collision_reset,clk_load_move);

three_bit_mux direction_select(out_pos,out_head,food_collide,control);

three_bit_mux head_tail_x(load_x,head_x,food_collide,x_select_mux); 
three_bit_mux head_tail_y(load_y,head_y,food_collide,y_select_mux);

three_bit_flip_flop hold_tail_x(tail_x,update_counters,load_x,0,reset_master|collision_reset);
three_bit_flip_flop hold_tail_y(tail_y,update_counters,load_y,0,reset_master|collision_reset);

position_recorder head_pos(update_counters,r_h,l_h,u_h,d_h,reset_master|collision_reset,head_x,head_y,edge_collision,load_x,load_y,0);

position_recorder tail_pos(update_counters,r_t,l_t,u_t,d_t,reset_master|collision_reset,tail_x,tail_y,edge_collision_tail,load_x,load_y,load_out);

move_to_position head(out_head,r_h,l_h,u_h,d_h);

move_to_position tail(out_pos,r_t,l_t,u_t,d_t);

move_register move_holder(clk_load_move_register,read_move,out_head,out_pos,snake_length,reset_master|collision_reset,1);


clk_drivers clock_machine(reset_master|collision_reset,clk_master,clk_load_move,clk_load_move_register,set_eightbyeight,update_counters,clk_eightxeight,food_collide,set_collide,load_out,snake_increment,clk_food,new_food_collision,display);

or_all_rows main_output(row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,row_1_main,row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main);

row_converter food_coordinates(food_x,food_y,row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos);

food_system  food_supply(clk_food,reset_master|collision_reset,head_x,head_y,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,food_collide,new_food_collision,food_y,food_x);

snake_length_counter snake_length_score(snake_increment,reset_master|collision_reset,snake_length);

collision_detector detect_collision(row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,collision,head_x,head_y);

D_Flip_Flop colission_unrest(collision,collision_flip_flop,reset_master|collision_reset,~update_counters,0);

or or1 (collision_reset,collision_flip_flop,edge_collision);



endmodule
module snake_game_lower_level(reset_master,clk_master,left,right,up,down,display,row_1_main,row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main);


input wire left,right,up,down,reset_master,clk_master;

output wire display;




wire [2:0] control;


wire [7:0] row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8;



wire [7:0] row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos;



output wire [7:0] row_1_main, row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main;


wire [7:0] x_select,y_select;
wire [2:0] x_select_mux,y_select_mux;

wire edge_collision,edge_collision_tail;
wire[2:0] load_x,load_y;


wire [2:0]  head_x,head_y,tail_x,tail_y;


wire r_h,l_h,u_h,d_h;
wire r_t,l_t,u_t,d_t;

wire [2:0] read_move;



wire [2:0] out_head,out_pos;



wire clk_load_move,clk_load_move_register,set_eightbyeight,update_counters,clk_eightxeight,set_collide,load_out,snake_increment,clk_food;


wire [7:0] left_edge,right_edge,upper_edge,lower_edge;



wire food_collide,new_food_collision;

wire [2:0] food_x,food_y;



wire [5:0] snake_length;



wire collision, collision_reset, collision_flip_flop;

eight_by_eight_shift_register snake_space(clk_eightxeight,reset_master|collision_reset,(set_eightbyeight|set_collide),x_select,y_select,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,control,x_select,y_select,left_edge,right_edge,upper_edge,lower_edge);

bcd_to_decimal xcoordinate(x_select_mux,x_select);
bcd_to_decimal ycoordinate(y_select_mux,y_select);
move_input input_reader(left,right,up,down,read_move,reset_master|collision_reset,clk_load_move);

three_bit_mux direction_select(out_pos,out_head,food_collide,control);

three_bit_mux head_tail_x(load_x,head_x,food_collide,x_select_mux); 
three_bit_mux head_tail_y(load_y,head_y,food_collide,y_select_mux);

three_bit_flip_flop hold_tail_x(tail_x,update_counters,load_x,0,reset_master|collision_reset);
three_bit_flip_flop hold_tail_y(tail_y,update_counters,load_y,0,reset_master|collision_reset);

position_recorder head_pos(update_counters,r_h,l_h,u_h,d_h,reset_master|collision_reset,head_x,head_y,edge_collision,load_x,load_y,0);

position_recorder tail_pos(update_counters,r_t,l_t,u_t,d_t,reset_master|collision_reset,tail_x,tail_y,edge_collision_tail,load_x,load_y,load_out);

move_to_position head(out_head,r_h,l_h,u_h,d_h);

move_to_position tail(out_pos,r_t,l_t,u_t,d_t);

move_register move_holder(clk_load_move_register,read_move,out_head,out_pos,snake_length,reset_master|collision_reset,1);


clk_drivers clock_machine(reset_master|collision_reset,clk_master,clk_load_move,clk_load_move_register,set_eightbyeight,update_counters,clk_eightxeight,food_collide,set_collide,load_out,snake_increment,clk_food,new_food_collision,display);

or_all_rows main_output(row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,row_1_main,row_2_main,row_3_main,row_4_main,row_5_main,row_6_main,row_7_main,row_8_main);

row_converter food_coordinates(food_x,food_y,row_1_pos,row_2_pos,row_3_pos,row_4_pos,row_5_pos,row_6_pos,row_7_pos,row_8_pos);

food_system  food_supply(clk_food,reset_master|collision_reset,head_x,head_y,row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,food_collide,new_food_collision,food_y,food_x);

snake_length_counter snake_length_score(snake_increment,reset_master|collision_reset,snake_length);

collision_detector detect_collision(row_1,row_2,row_3,row_4,row_5,row_6,row_7,row_8,collision,head_x,head_y);

D_Flip_Flop colission_unrest(collision,collision_flip_flop,reset_master|collision_reset,~update_counters,0);

or or1 (collision_reset,collision_flip_flop,edge_collision);



endmodule