data/full_repos/permissive/118895292/f64.v
1: b"%Error: data/full_repos/permissive/118895292/f64.v:49: Cannot find file containing module: 'f64_clk_gen'\nf64_clk_gen clock_generator(clk, global_clk, rst);\n^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/118895292,data/full_repos/permissive/118895292/f64_clk_gen\n             data/full_repos/permissive/118895292,data/full_repos/permissive/118895292/f64_clk_gen.v\n             data/full_repos/permissive/118895292,data/full_repos/permissive/118895292/f64_clk_gen.sv\n             f64_clk_gen\n             f64_clk_gen.v\n             f64_clk_gen.sv\n             obj_dir/f64_clk_gen\n             obj_dir/f64_clk_gen.v\n             obj_dir/f64_clk_gen.sv\n%Error: data/full_repos/permissive/118895292/f64.v:69: Cannot find file containing module: 'vga_display'\nvga_display display(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/118895292/f64.v:102: Cannot find file containing module: 'control_unit'\ncontrol_unit main_cpu(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/118895292/f64.v:115: Cannot find file containing module: 'memory_controller'\nmemory_controller ram(\n^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118895292/f64.v:135: Cannot find file containing module: 'keyboard_handler'\nkeyboard_handler kbd(\n^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118895292/f64.v:154: Cannot find file containing module: 'program_loader'\nprogram_loader loader(\n^~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n"
module f64 (
    clk,
	 rst,
	 vga_hsync,
	 vga_vsync,
	 vga_r,
	 vga_g,
	 vga_b,
	 ps2_dat1,
	 ps2_clk1,
	 sram_addr,
	 sram_data,
	 sram_ce,
	 sram_oe,
	 sram_we,
	 rs232_tx,
	 rs232_rx
);

input clk;
input wire rst;
inout ps2_dat1;
inout ps2_clk1;
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;
output wire [20:0] sram_addr;
inout [7:0] sram_data;
output sram_ce;
output sram_oe;
output sram_we;
output rs232_tx;
input rs232_rx;

reg pixel_clk = 0;
wire global_clk;
reg half_pixel_clk = 0;
reg core_clk = 0;


wire initial_rst;




f64_clk_gen clock_generator(clk, global_clk, rst);





always @(posedge global_clk)
	pixel_clk <= pixel_clk + 1'b1;

always @(posedge pixel_clk)
	half_pixel_clk <= half_pixel_clk + 1'b1;

always @(posedge half_pixel_clk)
	core_clk <= core_clk + 1'b1;
	

wire [11:0] video_ram_addr;
wire [15:0] video_ram_data;
wire video_ram_we;

vga_display display(
	global_clk, pixel_clk, ~initial_rst || rst, 
	vga_hsync, vga_vsync, vga_r, vga_g, vga_b, 
	video_ram_addr, video_ram_data, video_ram_we);


wire [15:0] ram_address_in;
wire [15:0] ram_data_in;
wire [15:0] ram_data_out;
wire ram_read_en;
wire ram_write_en;

wire [15:0] loader_ram_address_in;
wire [15:0] loader_ram_data_out;
wire loader_ram_write_en;

wire [15:0] core_ram_address_in;
wire [15:0] core_ram_data_out;
wire core_ram_write_en;

wire interrupt_en;
wire interrupt_num;
wire interrupt_ack;

wire keyboard_interrupt;
wire [15:0] keyboard_ram_addr;
wire [15:0] keyboard_ram_data;

assign ram_address_in = ~initial_rst ? loader_ram_address_in : core_ram_address_in;
assign ram_data_out = ~initial_rst ? loader_ram_data_out : core_ram_data_out;
assign ram_write_en = ~initial_rst ? loader_ram_write_en : core_ram_write_en;


control_unit main_cpu(
	core_clk, 
	~initial_rst || rst,
	core_ram_address_in,
	ram_data_in,
	core_ram_data_out,
	ram_read_en,
	core_ram_write_en,
	interrupt_en,
	interrupt_num,
	interrupt_ack);


memory_controller ram(
	global_clk,
	ram_address_in,
	ram_data_out,
	ram_data_in,
	ram_read_en,
	ram_write_en,
	sram_addr,
	sram_data,
	sram_ce,
	sram_oe,
	sram_we,
	video_ram_addr,
	video_ram_data,
	video_ram_we,
	keyboard_ram_addr,
	keyboard_ram_data
);


keyboard_handler kbd(
	global_clk, 
	ps2_clk1, 
	ps2_dat1,
	keyboard_ram_addr,
	keyboard_ram_data,
	keyboard_interrupt);




wire baud_clk;
wire baud_oversample_clk;
reg [31:0] second_ctr = 0;
reg [7:0] byte_to_tx = 0;
reg tx_byte_now;
wire byte_received_flag;
wire [7:0] byte_received;

program_loader loader(
	global_clk,
	core_clk,
	rst,
	loader_ram_address_in,
	loader_ram_data_out,
	loader_ram_write_en,
	rs232_tx,
	rs232_rx,
	initial_rst);

endmodule
module f64 (
    clk,
	 rst,
	 vga_hsync,
	 vga_vsync,
	 vga_r,
	 vga_g,
	 vga_b,
	 ps2_dat1,
	 ps2_clk1,
	 sram_addr,
	 sram_data,
	 sram_ce,
	 sram_oe,
	 sram_we,
	 rs232_tx,
	 rs232_rx
);


input clk;
input wire rst;
inout ps2_dat1;
inout ps2_clk1;
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;
output wire [20:0] sram_addr;
inout [7:0] sram_data;
output sram_ce;
output sram_oe;
output sram_we;
output rs232_tx;
input rs232_rx;

reg pixel_clk = 0;
wire global_clk;
reg half_pixel_clk = 0;
reg core_clk = 0;


wire initial_rst;




f64_clk_gen clock_generator(clk, global_clk, rst);





always @(posedge global_clk)
	pixel_clk <= pixel_clk + 1'b1;

always @(posedge pixel_clk)
	half_pixel_clk <= half_pixel_clk + 1'b1;

always @(posedge half_pixel_clk)
	core_clk <= core_clk + 1'b1;
	

wire [11:0] video_ram_addr;
wire [15:0] video_ram_data;
wire video_ram_we;

vga_display display(
	global_clk, pixel_clk, ~initial_rst || rst, 
	vga_hsync, vga_vsync, vga_r, vga_g, vga_b, 
	video_ram_addr, video_ram_data, video_ram_we);


wire [15:0] ram_address_in;
wire [15:0] ram_data_in;
wire [15:0] ram_data_out;
wire ram_read_en;
wire ram_write_en;

wire [15:0] loader_ram_address_in;
wire [15:0] loader_ram_data_out;
wire loader_ram_write_en;

wire [15:0] core_ram_address_in;
wire [15:0] core_ram_data_out;
wire core_ram_write_en;

wire interrupt_en;
wire interrupt_num;
wire interrupt_ack;

wire keyboard_interrupt;
wire [15:0] keyboard_ram_addr;
wire [15:0] keyboard_ram_data;

assign ram_address_in = ~initial_rst ? loader_ram_address_in : core_ram_address_in;
assign ram_data_out = ~initial_rst ? loader_ram_data_out : core_ram_data_out;
assign ram_write_en = ~initial_rst ? loader_ram_write_en : core_ram_write_en;


control_unit main_cpu(
	core_clk, 
	~initial_rst || rst,
	core_ram_address_in,
	ram_data_in,
	core_ram_data_out,
	ram_read_en,
	core_ram_write_en,
	interrupt_en,
	interrupt_num,
	interrupt_ack);


memory_controller ram(
	global_clk,
	ram_address_in,
	ram_data_out,
	ram_data_in,
	ram_read_en,
	ram_write_en,
	sram_addr,
	sram_data,
	sram_ce,
	sram_oe,
	sram_we,
	video_ram_addr,
	video_ram_data,
	video_ram_we,
	keyboard_ram_addr,
	keyboard_ram_data
);


keyboard_handler kbd(
	global_clk, 
	ps2_clk1, 
	ps2_dat1,
	keyboard_ram_addr,
	keyboard_ram_data,
	keyboard_interrupt);




wire baud_clk;
wire baud_oversample_clk;
reg [31:0] second_ctr = 0;
reg [7:0] byte_to_tx = 0;
reg tx_byte_now;
wire byte_received_flag;
wire [7:0] byte_received;

program_loader loader(
	global_clk,
	core_clk,
	rst,
	loader_ram_address_in,
	loader_ram_data_out,
	loader_ram_write_en,
	rs232_tx,
	rs232_rx,
	initial_rst);

endmodule