data/full_repos/permissive/136510272/projects/04_charvideo_32x24/marsohod2.v
'utf-8' codec can't decode byte 0xcd in position 1455: invalid continuation byte
1: b"%Error: data/full_repos/permissive/136510272/projects/04_charvideo_32x24/marsohod2.v:68: Cannot find file containing module: 'vga'\nvga VGA_ADAPTER(\n^~~\n        ... Looked in:\n             data/full_repos/permissive/136510272/projects/04_charvideo_32x24,data/full_repos/permissive/136510272/vga\n             data/full_repos/permissive/136510272/projects/04_charvideo_32x24,data/full_repos/permissive/136510272/vga.v\n             data/full_repos/permissive/136510272/projects/04_charvideo_32x24,data/full_repos/permissive/136510272/vga.sv\n             vga\n             vga.v\n             vga.sv\n             obj_dir/vga\n             obj_dir/vga.v\n             obj_dir/vga.sv\n%Error: data/full_repos/permissive/136510272/projects/04_charvideo_32x24/marsohod2.v:86: Cannot find file containing module: 'videoram'\nvideoram VIDEO_RAM(\n^~~~~~~~\n%Error: data/full_repos/permissive/136510272/projects/04_charvideo_32x24/marsohod2.v:95: Cannot find file containing module: 'charmap'\ncharmap VIDEO_CHARMAP(\n^~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module marsohod2(




    input   wire        clk,


    output  wire [3:0]  led,


    input   wire [1:0]  keys,


    output  wire        adc_clock_20mhz,
    input   wire [7:0]  adc_input,


    output  wire        sdram_clock,
    output  wire [11:0] sdram_addr,
    output  wire [1:0]  sdram_bank,
    inout   wire [15:0] sdram_dq,
    output  wire        sdram_ldqm,
    output  wire        sdram_udqm,
    output  wire        sdram_ras,
    output  wire        sdram_cas,
    output  wire        sdram_we,


    output  wire [4:0]  vga_red,
    output  wire [5:0]  vga_green,
    output  wire [4:0]  vga_blue,
    output  wire        vga_hs,
    output  wire        vga_vs,


    input   wire        ftdi_rx,
    output  wire        ftdi_tx,




    inout   wire [1:0]  usb,


    output  wire        sound_left,
    output  wire        sound_right,


    inout   wire [1:0]  ps2_keyb,
    inout   wire [1:0]  ps2_mouse
);


wire [ 9:0] video_addr;
wire [ 7:0] video_data;
wire [10:0] char_addr;
wire [ 7:0] char_data;





vga VGA_ADAPTER(

	.clk	(clk),	
	.red 	(vga_red),
	.green	(vga_green),
	.blue	(vga_blue),
	.hs		(vga_hs),
	.vs		(vga_vs),
    

    .video_addr (video_addr),
    .video_data (video_data),
    .char_addr  (char_addr),
    .char_data  (char_data)

);


videoram VIDEO_RAM(

    .clock      (clk),
    .addr_rd    (video_addr),
    .q          (video_data) 

);


charmap VIDEO_CHARMAP(

    .clock      (clk),
    .addr_rd    (char_addr),
    .q          (char_data) 

);

endmodule
module marsohod2(




    input   wire        clk,


    output  wire [3:0]  led,


    input   wire [1:0]  keys,


    output  wire        adc_clock_20mhz,
    input   wire [7:0]  adc_input,


    output  wire        sdram_clock,
    output  wire [11:0] sdram_addr,
    output  wire [1:0]  sdram_bank,
    inout   wire [15:0] sdram_dq,
    output  wire        sdram_ldqm,
    output  wire        sdram_udqm,
    output  wire        sdram_ras,
    output  wire        sdram_cas,
    output  wire        sdram_we,


    output  wire [4:0]  vga_red,
    output  wire [5:0]  vga_green,
    output  wire [4:0]  vga_blue,
    output  wire        vga_hs,
    output  wire        vga_vs,


    input   wire        ftdi_rx,
    output  wire        ftdi_tx,




    inout   wire [1:0]  usb,


    output  wire        sound_left,
    output  wire        sound_right,


    inout   wire [1:0]  ps2_keyb,
    inout   wire [1:0]  ps2_mouse
);



wire [ 9:0] video_addr;
wire [ 7:0] video_data;
wire [10:0] char_addr;
wire [ 7:0] char_data;





vga VGA_ADAPTER(

	.clk	(clk),	
	.red 	(vga_red),
	.green	(vga_green),
	.blue	(vga_blue),
	.hs		(vga_hs),
	.vs		(vga_vs),
    

    .video_addr (video_addr),
    .video_data (video_data),
    .char_addr  (char_addr),
    .char_data  (char_data)

);


videoram VIDEO_RAM(

    .clock      (clk),
    .addr_rd    (video_addr),
    .q          (video_data) 

);


charmap VIDEO_CHARMAP(

    .clock      (clk),
    .addr_rd    (char_addr),
    .q          (char_data) 

);

endmodule