data/full_repos/permissive/118895292/peripheral/vga/vga_display.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/118895292/peripheral/vga/vga_display.v:42: Cannot find file containing module: 'vga_sync'\nvga_sync #(\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/118895292/peripheral/vga,data/full_repos/permissive/118895292/vga_sync\n             data/full_repos/permissive/118895292/peripheral/vga,data/full_repos/permissive/118895292/vga_sync.v\n             data/full_repos/permissive/118895292/peripheral/vga,data/full_repos/permissive/118895292/vga_sync.sv\n             vga_sync\n             vga_sync.v\n             vga_sync.sv\n             obj_dir/vga_sync\n             obj_dir/vga_sync.v\n             obj_dir/vga_sync.sv\n%Error: data/full_repos/permissive/118895292/peripheral/vga/vga_display.v:57: Cannot find file containing module: 'video_ram'\nvideo_ram #(\n^~~~~~~~~\n%Error: data/full_repos/permissive/118895292/peripheral/vga/vga_display.v:62: Cannot find file containing module: 'vga_pixel_gen'\nvga_pixel_gen pixel_generator(pixel_clk, data_reset, video_ram_address, video_ram_contents, pixel_col, pixel_row, vga_r, vga_g, vga_b);\n^~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module vga_display(
	clk,
	pixel_clk,
	rst,
	vga_hsync,
	vga_vsync,
	vga_r,
	vga_g,
	vga_b,
	video_ram_input_addr,
	video_ram_input_data,
	video_ram_we
);

localparam VGA_DISPLAY_VISIBLE_WIDTH = 640;
localparam VGA_DISPLAY_VISIBLE_HEIGHT = 480;
localparam VGA_DISPLAY_HORIZ_SYNC = 96;
localparam VGA_DISPLAY_HORIZ_FP = 16;
localparam VGA_DISPLAY_HORIZ_BP = 48;
localparam VGA_DISPLAY_VERT_SYNC = 5;
localparam VGA_DISPLAY_VERT_FP = 10;
localparam VGA_DISPLAY_VERT_BP = 30;
localparam VGA_DISPLAY_FIELD_WIDTH = VGA_DISPLAY_VISIBLE_WIDTH + VGA_DISPLAY_HORIZ_SYNC + VGA_DISPLAY_HORIZ_FP + VGA_DISPLAY_HORIZ_BP;
localparam VGA_DISPLAY_FIELD_HEIGHT = VGA_DISPLAY_VISIBLE_HEIGHT + VGA_DISPLAY_VERT_SYNC + VGA_DISPLAY_VERT_FP + VGA_DISPLAY_VERT_BP;

input wire clk;
input wire pixel_clk;
input wire rst;
output wire vga_hsync;
output wire vga_vsync;
output wire [3:0] vga_r;
output wire [3:0] vga_g;
output wire [3:0] vga_b;
input [11:0] video_ram_input_addr;
input [15:0] video_ram_input_data;
input wire video_ram_we;

wire data_reset;
wire [15:0] pixel_row;
wire [15:0] pixel_col;

vga_sync #(
	.VISIBLE_WIDTH(VGA_DISPLAY_VISIBLE_WIDTH),
	.HORIZ_FP(VGA_DISPLAY_HORIZ_FP),
	.HSYNC_WIDTH(VGA_DISPLAY_HORIZ_SYNC),
	.HORIZ_BP(VGA_DISPLAY_HORIZ_BP),
	.VISIBLE_HEIGHT(VGA_DISPLAY_VISIBLE_HEIGHT),
	.VERT_FP(VGA_DISPLAY_VERT_FP),
	.VSYNC_WIDTH(VGA_DISPLAY_VERT_SYNC),
	.VERT_BP(VGA_DISPLAY_VERT_BP)
) sync_generator(pixel_clk, rst, vga_hsync, vga_vsync, data_reset, pixel_row, pixel_col);

wire [11:0] video_ram_address;
wire [15:0] video_ram_contents;
wire [15:0] tmp;

video_ram #(
	.DATA_WIDTH(16),
	.ADDR_WIDTH(11)
) video_framebuffer(video_ram_input_data, 0, video_ram_input_addr, video_ram_address, video_ram_we, 0, clk, clk, tmp, video_ram_contents);

vga_pixel_gen pixel_generator(pixel_clk, data_reset, video_ram_address, video_ram_contents, pixel_col, pixel_row, vga_r, vga_g, vga_b);

endmodule
module vga_display(
	clk,
	pixel_clk,
	rst,
	vga_hsync,
	vga_vsync,
	vga_r,
	vga_g,
	vga_b,
	video_ram_input_addr,
	video_ram_input_data,
	video_ram_we
);


localparam VGA_DISPLAY_VISIBLE_WIDTH = 640;
localparam VGA_DISPLAY_VISIBLE_HEIGHT = 480;
localparam VGA_DISPLAY_HORIZ_SYNC = 96;
localparam VGA_DISPLAY_HORIZ_FP = 16;
localparam VGA_DISPLAY_HORIZ_BP = 48;
localparam VGA_DISPLAY_VERT_SYNC = 5;
localparam VGA_DISPLAY_VERT_FP = 10;
localparam VGA_DISPLAY_VERT_BP = 30;
localparam VGA_DISPLAY_FIELD_WIDTH = VGA_DISPLAY_VISIBLE_WIDTH + VGA_DISPLAY_HORIZ_SYNC + VGA_DISPLAY_HORIZ_FP + VGA_DISPLAY_HORIZ_BP;
localparam VGA_DISPLAY_FIELD_HEIGHT = VGA_DISPLAY_VISIBLE_HEIGHT + VGA_DISPLAY_VERT_SYNC + VGA_DISPLAY_VERT_FP + VGA_DISPLAY_VERT_BP;

input wire clk;
input wire pixel_clk;
input wire rst;
output wire vga_hsync;
output wire vga_vsync;
output wire [3:0] vga_r;
output wire [3:0] vga_g;
output wire [3:0] vga_b;
input [11:0] video_ram_input_addr;
input [15:0] video_ram_input_data;
input wire video_ram_we;

wire data_reset;
wire [15:0] pixel_row;
wire [15:0] pixel_col;

vga_sync #(
	.VISIBLE_WIDTH(VGA_DISPLAY_VISIBLE_WIDTH),
	.HORIZ_FP(VGA_DISPLAY_HORIZ_FP),
	.HSYNC_WIDTH(VGA_DISPLAY_HORIZ_SYNC),
	.HORIZ_BP(VGA_DISPLAY_HORIZ_BP),
	.VISIBLE_HEIGHT(VGA_DISPLAY_VISIBLE_HEIGHT),
	.VERT_FP(VGA_DISPLAY_VERT_FP),
	.VSYNC_WIDTH(VGA_DISPLAY_VERT_SYNC),
	.VERT_BP(VGA_DISPLAY_VERT_BP)
) sync_generator(pixel_clk, rst, vga_hsync, vga_vsync, data_reset, pixel_row, pixel_col);

wire [11:0] video_ram_address;
wire [15:0] video_ram_contents;
wire [15:0] tmp;

video_ram #(
	.DATA_WIDTH(16),
	.ADDR_WIDTH(11)
) video_framebuffer(video_ram_input_data, 0, video_ram_input_addr, video_ram_address, video_ram_we, 0, clk, clk, tmp, video_ram_contents);

vga_pixel_gen pixel_generator(pixel_clk, data_reset, video_ram_address, video_ram_contents, pixel_col, pixel_row, vga_r, vga_g, vga_b);

endmodule