data/full_repos/permissive/138243369/vgadriver.v
1: b"%Error: data/full_repos/permissive/138243369/vgadriver.v:54: Cannot find file containing module: 'button_debouncer'\nbutton_debouncer East_debouncer(\n^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/138243369,data/full_repos/permissive/138243369/button_debouncer\n             data/full_repos/permissive/138243369,data/full_repos/permissive/138243369/button_debouncer.v\n             data/full_repos/permissive/138243369,data/full_repos/permissive/138243369/button_debouncer.sv\n             button_debouncer\n             button_debouncer.v\n             button_debouncer.sv\n             obj_dir/button_debouncer\n             obj_dir/button_debouncer.v\n             obj_dir/button_debouncer.sv\n%Error: data/full_repos/permissive/138243369/vgadriver.v:60: Cannot find file containing module: 'button_debouncer'\nbutton_debouncer West_debouncer(\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:66: Cannot find file containing module: 'button_debouncer'\nbutton_debouncer North_debouncer(\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:72: Cannot find file containing module: 'button_debouncer'\nbutton_debouncer South_debouncer(\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:78: Cannot find file containing module: 'button_debouncer'\nbutton_debouncer func_switch_debouncer(\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:85: Cannot find file containing module: 'keyboard_proc'\nkeyboard_proc keyboard_processor(\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:103: Cannot find file containing module: 'f1_keyproc'\nf1_keyproc func1_keyproc(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:109: Cannot find file containing module: 'f1_vram'\nf1_vram func1_vram(\n^~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:115: Cannot find file containing module: 'f2_keyproc'\nf2_keyproc func2_keyproc(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:120: Cannot find file containing module: 'img_mapper'\nimg_mapper func2_img_mapper(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:125: Cannot find file containing module: 'f2_gpu'\nf2_gpu func2_gpu(\n^~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:138: Cannot find file containing module: 'f3_keyproc'\nf3_keyproc func3_keyproc(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:143: Cannot find file containing module: 'img_mapper'\nimg_mapper func3_img_mapper(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:148: Cannot find file containing module: 'f3_ram'\nf3_ram func3_ram(\n^~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:161: Cannot find file containing module: 'f3_gpu'\nf3_gpu func3_gpu(\n^~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:184: Cannot find file containing module: 'img_vrom'\nimg_vrom image_rom(\n^~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:192: Cannot find file containing module: 'container_switcher'\ncontainer_switcher switcher(\n^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/138243369/vgadriver.v:203: Cannot find file containing module: 'vgaout'\nvgaout vgaport(\n^~~~~~\n%Error: Exiting due to 18 error(s)\n"
module vgadriver(

input wire East,
input wire West,
input wire North,
input wire South,
input wire SW0,
input wire SW1,
input wire SW2,
input wire SW3,
input wire func_switch,

input wire sysclk,

output wire VGA_R,
output wire VGA_G,
output wire VGA_B,
output wire VGA_HS,
output wire VGA_VS);


wire East_deb, West_deb, North_deb, South_deb, func_switch_deb;


wire [1:0] bus_current_function;
wire bus_reset;


wire [3:0] func1_keys;
wire [2:0] func1_color_out;
wire [2:0] func1_color;
wire func1_write;


wire [21:0] func2_addr_in, func2_mapper_addr_in;
wire [7:0] func2_vram_addr_in;
wire [4:0] func2_keys;
wire [3:0] func2_mapper_x_out, func2_mapper_y_out;
wire [2:0] func2_instruction, func2_color_out, func2_vram_color_out, func2_vram_index_in;


wire [21:0] func3_addr_in, func3_mapper_addr_in;
wire [7:0] func3_vram_addr_in;
wire [4:0] func3_keys;
wire [3:0] func3_instruction, func3_mapper_x_out, func3_mapper_y_out, func3_offset_x_in, func3_offset_y_in, func3_offset_x_out, func3_offset_y_out, func3_ram_write_pos;
wire [2:0] func3_color_out, func3_vram_color_out;
wire func3_scramble, func3_ram_write_horizontal, func3_ram_write_increase, func3_ram_write, func3_ram_reset, fun3_offset_all_zero;


wire [2:0] vga_color;
wire [21:0] vga_addr;


button_debouncer East_debouncer(
.inp(East),
.clk(sysclk),
.clr(SW0),
.outp(East_deb));

button_debouncer West_debouncer(
.inp(West),
.clk(sysclk),
.clr(SW0),
.outp(West_deb));

button_debouncer North_debouncer(
.inp(North),
.clk(sysclk),
.clr(SW0),
.outp(North_deb));

button_debouncer South_debouncer(
.inp(South),
.clk(sysclk),
.clr(SW0),
.outp(South_deb));

button_debouncer func_switch_debouncer(
.inp(func_switch),
.clk(sysclk),
.clr(SW0),
.outp(func_switch_deb));


keyboard_proc keyboard_processor(
.East(East_deb),
.West(West_deb),
.North(North_deb),
.South(South_deb),
.SW0(SW0),
.SW1(SW1),
.SW2(SW2),
.SW3(SW3),
.change(func_switch_deb),
.sysclk(sysclk),
.func_index(bus_current_function),
.func1_instruction(func1_keys),
.func2_instruction(func2_keys),
.func3_instruction(func3_keys),
.reset(bus_reset));


f1_keyproc func1_keyproc(
.func1_keys(func1_keys),
.sysclk(sysclk),
.color(func1_color),
.write(func1_write));

f1_vram func1_vram(
.write_color(func1_color),
.write(func1_write),
.read_color(func1_color_out));


f2_keyproc func2_keyproc(
.func2_keys(func2_keys),
.sysclk(sysclk),
.instruction(func2_instruction));

img_mapper func2_img_mapper(
.display_addr(func2_mapper_addr_in),
.pixel_x(func2_mapper_x_out),
.pixel_y(func2_mapper_y_out));
 
f2_gpu func2_gpu(
.instruction(func2_instruction),
.display_addr(func2_addr_in),
.pixel_data(func2_vram_color_out),
.mapper_pixel_x(func2_mapper_x_out),
.mapper_pixel_y(func2_mapper_y_out),
.sysclk(sysclk),
.mapper_display_addr(func2_mapper_addr_in),
.pixel_addr(func2_vram_addr_in),
.image_index(func2_vram_index_in),
.display_data(func2_color_out));
 

f3_keyproc func3_keyproc(
.func3_keys(func3_keys),
.scramble(func3_scramble),
.instruction(func3_instruction));

img_mapper func3_img_mapper(
.display_addr(func3_mapper_addr_in),
.pixel_x(func3_mapper_x_out),
.pixel_y(func3_mapper_y_out));

f3_ram func3_ram(
.offset_pos_x(func3_offset_x_in),
.offset_pos_y(func3_offset_y_in),
.ram_write_pos(func3_ram_write_pos),
.ram_write_horizontal(func3_ram_write_horizontal),
.ram_write_increase(func3_ram_write_increase),
.ram_write(func3_ram_write),
.ram_reset(func3_ram_reset),
.sysclk(sysclk),
.offset_x(func3_offset_x_out),
.offset_y(func3_offset_y_out),
.ram_offset_all_zero(fun3_offset_all_zero));

f3_gpu func3_gpu(
.instruction(func3_instruction),
.scramble(func3_scramble),
.offset_all_zero(fun3_offset_all_zero),
.display_addr(func3_addr_in),
.pixel_data(func3_vram_color_out),
.mapper_pixel_x(func3_mapper_x_out),
.mapper_pixel_y(func3_mapper_y_out),
.offset_x(func3_offset_x_out),
.offset_y(func3_offset_y_out),
.sysclk(sysclk),
.mapper_display_addr(func3_mapper_addr_in),
.offset_pos_x(func3_offset_x_in),
.offset_pos_y(func3_offset_y_in),
.pixel_addr(func3_vram_addr_in),
.display_data(func3_color_out),
.ram_write_pos(func3_ram_write_pos),
.ram_write_horizontal(func3_ram_write_horizontal),
.ram_write_increase(func3_ram_write_increase),
.ram_write(func3_ram_write),
.ram_reset(func3_ram_reset));


img_vrom image_rom(
.func2_pixel_addr(func2_vram_addr_in),
.func3_pixel_addr(func3_vram_addr_in),
.image_index(func2_vram_index_in),
.func2_pixel_data(func2_vram_color_out),
.func3_pixel_data(func3_vram_color_out));


container_switcher switcher(
.current_function(bus_current_function),
.display_addr(vga_addr),
.func1_color(func1_color_out),
.func2_color(func2_color_out),
.func3_color(func3_color_out),
.func2_addr(func2_addr_in),
.func3_addr(func3_addr_in),
.display_color(vga_color));


vgaout vgaport(
.sysclk(sysclk),
.pixel_data(vga_color),
.rst(bus_reset),
.pixel_addr(vga_addr),
.VGA_R(VGA_R),
.VGA_G(VGA_G),
.VGA_B(VGA_B),
.VGA_HS(VGA_HS),
.VGA_VS(VGA_VS));

endmodule
module vgadriver(

input wire East,
input wire West,
input wire North,
input wire South,
input wire SW0,
input wire SW1,
input wire SW2,
input wire SW3,
input wire func_switch,

input wire sysclk,

output wire VGA_R,
output wire VGA_G,
output wire VGA_B,
output wire VGA_HS,
output wire VGA_VS);



wire East_deb, West_deb, North_deb, South_deb, func_switch_deb;


wire [1:0] bus_current_function;
wire bus_reset;


wire [3:0] func1_keys;
wire [2:0] func1_color_out;
wire [2:0] func1_color;
wire func1_write;


wire [21:0] func2_addr_in, func2_mapper_addr_in;
wire [7:0] func2_vram_addr_in;
wire [4:0] func2_keys;
wire [3:0] func2_mapper_x_out, func2_mapper_y_out;
wire [2:0] func2_instruction, func2_color_out, func2_vram_color_out, func2_vram_index_in;


wire [21:0] func3_addr_in, func3_mapper_addr_in;
wire [7:0] func3_vram_addr_in;
wire [4:0] func3_keys;
wire [3:0] func3_instruction, func3_mapper_x_out, func3_mapper_y_out, func3_offset_x_in, func3_offset_y_in, func3_offset_x_out, func3_offset_y_out, func3_ram_write_pos;
wire [2:0] func3_color_out, func3_vram_color_out;
wire func3_scramble, func3_ram_write_horizontal, func3_ram_write_increase, func3_ram_write, func3_ram_reset, fun3_offset_all_zero;


wire [2:0] vga_color;
wire [21:0] vga_addr;


button_debouncer East_debouncer(
.inp(East),
.clk(sysclk),
.clr(SW0),
.outp(East_deb));

button_debouncer West_debouncer(
.inp(West),
.clk(sysclk),
.clr(SW0),
.outp(West_deb));

button_debouncer North_debouncer(
.inp(North),
.clk(sysclk),
.clr(SW0),
.outp(North_deb));

button_debouncer South_debouncer(
.inp(South),
.clk(sysclk),
.clr(SW0),
.outp(South_deb));

button_debouncer func_switch_debouncer(
.inp(func_switch),
.clk(sysclk),
.clr(SW0),
.outp(func_switch_deb));


keyboard_proc keyboard_processor(
.East(East_deb),
.West(West_deb),
.North(North_deb),
.South(South_deb),
.SW0(SW0),
.SW1(SW1),
.SW2(SW2),
.SW3(SW3),
.change(func_switch_deb),
.sysclk(sysclk),
.func_index(bus_current_function),
.func1_instruction(func1_keys),
.func2_instruction(func2_keys),
.func3_instruction(func3_keys),
.reset(bus_reset));


f1_keyproc func1_keyproc(
.func1_keys(func1_keys),
.sysclk(sysclk),
.color(func1_color),
.write(func1_write));

f1_vram func1_vram(
.write_color(func1_color),
.write(func1_write),
.read_color(func1_color_out));


f2_keyproc func2_keyproc(
.func2_keys(func2_keys),
.sysclk(sysclk),
.instruction(func2_instruction));

img_mapper func2_img_mapper(
.display_addr(func2_mapper_addr_in),
.pixel_x(func2_mapper_x_out),
.pixel_y(func2_mapper_y_out));
 
f2_gpu func2_gpu(
.instruction(func2_instruction),
.display_addr(func2_addr_in),
.pixel_data(func2_vram_color_out),
.mapper_pixel_x(func2_mapper_x_out),
.mapper_pixel_y(func2_mapper_y_out),
.sysclk(sysclk),
.mapper_display_addr(func2_mapper_addr_in),
.pixel_addr(func2_vram_addr_in),
.image_index(func2_vram_index_in),
.display_data(func2_color_out));
 

f3_keyproc func3_keyproc(
.func3_keys(func3_keys),
.scramble(func3_scramble),
.instruction(func3_instruction));

img_mapper func3_img_mapper(
.display_addr(func3_mapper_addr_in),
.pixel_x(func3_mapper_x_out),
.pixel_y(func3_mapper_y_out));

f3_ram func3_ram(
.offset_pos_x(func3_offset_x_in),
.offset_pos_y(func3_offset_y_in),
.ram_write_pos(func3_ram_write_pos),
.ram_write_horizontal(func3_ram_write_horizontal),
.ram_write_increase(func3_ram_write_increase),
.ram_write(func3_ram_write),
.ram_reset(func3_ram_reset),
.sysclk(sysclk),
.offset_x(func3_offset_x_out),
.offset_y(func3_offset_y_out),
.ram_offset_all_zero(fun3_offset_all_zero));

f3_gpu func3_gpu(
.instruction(func3_instruction),
.scramble(func3_scramble),
.offset_all_zero(fun3_offset_all_zero),
.display_addr(func3_addr_in),
.pixel_data(func3_vram_color_out),
.mapper_pixel_x(func3_mapper_x_out),
.mapper_pixel_y(func3_mapper_y_out),
.offset_x(func3_offset_x_out),
.offset_y(func3_offset_y_out),
.sysclk(sysclk),
.mapper_display_addr(func3_mapper_addr_in),
.offset_pos_x(func3_offset_x_in),
.offset_pos_y(func3_offset_y_in),
.pixel_addr(func3_vram_addr_in),
.display_data(func3_color_out),
.ram_write_pos(func3_ram_write_pos),
.ram_write_horizontal(func3_ram_write_horizontal),
.ram_write_increase(func3_ram_write_increase),
.ram_write(func3_ram_write),
.ram_reset(func3_ram_reset));


img_vrom image_rom(
.func2_pixel_addr(func2_vram_addr_in),
.func3_pixel_addr(func3_vram_addr_in),
.image_index(func2_vram_index_in),
.func2_pixel_data(func2_vram_color_out),
.func3_pixel_data(func3_vram_color_out));


container_switcher switcher(
.current_function(bus_current_function),
.display_addr(vga_addr),
.func1_color(func1_color_out),
.func2_color(func2_color_out),
.func3_color(func3_color_out),
.func2_addr(func2_addr_in),
.func3_addr(func3_addr_in),
.display_color(vga_color));


vgaout vgaport(
.sysclk(sysclk),
.pixel_data(vga_color),
.rst(bus_reset),
.pixel_addr(vga_addr),
.VGA_R(VGA_R),
.VGA_G(VGA_G),
.VGA_B(VGA_B),
.VGA_HS(VGA_HS),
.VGA_VS(VGA_VS));

endmodule