data/full_repos/permissive/20097350/VGAWrapper.v
1: b"%Error: data/full_repos/permissive/20097350/VGAWrapper.v:39: Cannot find file containing module: 'VGAControl'\n VGAControl VGACtl (\n ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/VGAControl\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/VGAControl.v\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/VGAControl.sv\n             VGAControl\n             VGAControl.v\n             VGAControl.sv\n             obj_dir/VGAControl\n             obj_dir/VGAControl.v\n             obj_dir/VGAControl.sv\n%Error: Exiting due to 1 error(s)\n"
module VGAWrapper(
    input CLK,
	 input [1:0] MASTER_STATE,
    output [9:0] ADDRH,
    output [8:0] ADDRV,
    input [7:0] CIN,
    output[7:0] COUT,
    output HS,
    output VS
    );
	 
	reg [7:0] Colour;
	

	reg CLK25;
	always@(posedge CLK)
		CLK25 <= ~CLK25;
	 
	VGAControl VGACtl (

					.CLK(CLK25),
					.ADDRH(ADDRH),
					.ADDRV(ADDRV),
					.CIN(Colour),
					.COUT(COUT),
					.HS(HS),
					.VS(VS)
					);
					
	always@(posedge CLK) begin
		if(MASTER_STATE == 1)
			Colour = CIN;
		else if(MASTER_STATE == 2)
			Colour = 8'b00100000;
		else if(MASTER_STATE == 3)
			Colour = 8'b00000111;			
		else
			Colour = 0;
	end

endmodule
module VGAWrapper(
    input CLK,
	 input [1:0] MASTER_STATE,
    output [9:0] ADDRH,
    output [8:0] ADDRV,
    input [7:0] CIN,
    output[7:0] COUT,
    output HS,
    output VS
    );

	 
	reg [7:0] Colour;
	

	reg CLK25;
	always@(posedge CLK)
		CLK25 <= ~CLK25;
	 
	VGAControl VGACtl (

					.CLK(CLK25),
					.ADDRH(ADDRH),
					.ADDRV(ADDRV),
					.CIN(Colour),
					.COUT(COUT),
					.HS(HS),
					.VS(VS)
					);
					
	always@(posedge CLK) begin
		if(MASTER_STATE == 1)
			Colour = CIN;
		else if(MASTER_STATE == 2)
			Colour = 8'b00100000;
		else if(MASTER_STATE == 3)
			Colour = 8'b00000111;			
		else
			Colour = 0;
	end

endmodule