data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v
1: b"%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:27: Cannot find file containing module: 'color_generator'\n  color_generator color(\n  ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/502126697/verilog/rtl/shooting_game,data/full_repos/permissive/502126697/color_generator\n             data/full_repos/permissive/502126697/verilog/rtl/shooting_game,data/full_repos/permissive/502126697/color_generator.v\n             data/full_repos/permissive/502126697/verilog/rtl/shooting_game,data/full_repos/permissive/502126697/color_generator.sv\n             color_generator\n             color_generator.v\n             color_generator.sv\n             obj_dir/color_generator\n             obj_dir/color_generator.v\n             obj_dir/color_generator.sv\n%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:47: Cannot find file containing module: 'debouncer'\n  debouncer debounce(\n  ^~~~~~~~~\n%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:55: Cannot find file containing module: 'sync_generator'\n  sync_generator sync(\n  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:65: Cannot find file containing module: 'kb2game'\n  kb2game keyb(\n  ^~~~~~~\n%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:74: Cannot find file containing module: 'freq_divider'\n  freq_divider #(\n  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/502126697/verilog/rtl/shooting_game/main.v:83: Cannot find file containing module: 'freq_divider'\n  freq_divider #(\n  ^~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module main(
  input             ps2_data,
  input             ps2_clk,
  input             board_clk,
  input             start,
  input             reset,
  output wire       hsync,
  output wire       vsync,
  output wire [3:0] red,
  output wire [3:0] green,
  output wire [3:0] blue
);

  wire [31:0] column;
  wire [31:0] row;
  wire        game_clk; 
  wire        vga_clk;
  wire        disp_en;
  wire [4:0]  p1_control; 
  wire [4:0]  p2_control;
  wire db_start, db_reset;

  color_generator color(
    .game_clk   (game_clk),
    .disp_en    (disp_en),
    .p1_control (p1_control),
    .p2_control (p2_control),
    .start      (db_start),
    .reset      (db_reset),
    .column     (column),
    .row        (row),
    .red        (red[3:1]),
    .green      (green[3:1]),
    .blue       (blue[3:2])
  );
  
  assign blue [1:0] = 2'b00;
  assign red [0] = 1'b0;
  assign green [0] = 1'b0;



  debouncer debounce(
    .clk(board_clk),
    .I0(start),
    .I1(reset),
    .O0(db_start),
    .O1(db_reset)
); 

  sync_generator sync(
    .vga_clk (vga_clk),
    .reset   (db_reset),
    .disp_en (disp_en),
    .hsync   (hsync),
    .vsync   (vsync),
    .column  (column),
    .row     (row)
  );

  kb2game keyb(
    .board_clk (board_clk),
    .ps2_clk (ps2_clk),
    .reset (db_reset),
    .ps2_data (ps2_data),
    .p1(p1_control),
    .p2(p2_control)
  );

  freq_divider #(
    21
  ) freq_21(
    .in_clk (board_clk),
    .reset   (db_reset),
    .out_clk (game_clk)
  );


  freq_divider #(
    2
  ) freq_2(
    .in_clk (board_clk),
    .reset   (db_reset),
    .out_clk (vga_clk)
  );



endmodule
module main(
  input             ps2_data,
  input             ps2_clk,
  input             board_clk,
  input             start,
  input             reset,
  output wire       hsync,
  output wire       vsync,
  output wire [3:0] red,
  output wire [3:0] green,
  output wire [3:0] blue
);


  wire [31:0] column;
  wire [31:0] row;
  wire        game_clk; 
  wire        vga_clk;
  wire        disp_en;
  wire [4:0]  p1_control; 
  wire [4:0]  p2_control;
  wire db_start, db_reset;

  color_generator color(
    .game_clk   (game_clk),
    .disp_en    (disp_en),
    .p1_control (p1_control),
    .p2_control (p2_control),
    .start      (db_start),
    .reset      (db_reset),
    .column     (column),
    .row        (row),
    .red        (red[3:1]),
    .green      (green[3:1]),
    .blue       (blue[3:2])
  );
  
  assign blue [1:0] = 2'b00;
  assign red [0] = 1'b0;
  assign green [0] = 1'b0;



  debouncer debounce(
    .clk(board_clk),
    .I0(start),
    .I1(reset),
    .O0(db_start),
    .O1(db_reset)
); 

  sync_generator sync(
    .vga_clk (vga_clk),
    .reset   (db_reset),
    .disp_en (disp_en),
    .hsync   (hsync),
    .vsync   (vsync),
    .column  (column),
    .row     (row)
  );

  kb2game keyb(
    .board_clk (board_clk),
    .ps2_clk (ps2_clk),
    .reset (db_reset),
    .ps2_data (ps2_data),
    .p1(p1_control),
    .p2(p2_control)
  );

  freq_divider #(
    21
  ) freq_21(
    .in_clk (board_clk),
    .reset   (db_reset),
    .out_clk (game_clk)
  );


  freq_divider #(
    2
  ) freq_2(
    .in_clk (board_clk),
    .reset   (db_reset),
    .out_clk (vga_clk)
  );



endmodule