data/full_repos/permissive/109394014/examples/DisplayGame.v
1: b'%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:19: Cannot find include file: Pxs.vh\n`include "Pxs.vh" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/109394014/examples,data/full_repos/permissive/109394014/Pxs.vh\n             data/full_repos/permissive/109394014/examples,data/full_repos/permissive/109394014/Pxs.vh.v\n             data/full_repos/permissive/109394014/examples,data/full_repos/permissive/109394014/Pxs.vh.sv\n             Pxs.vh\n             Pxs.vh.v\n             Pxs.vh.sv\n             obj_dir/Pxs.vh\n             obj_dir/Pxs.vh.v\n             obj_dir/Pxs.vh.sv\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:61: Define or directive not defined: \'`XC\'\n assign sx = RGBStr_i[`XC]; \n                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:61: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n assign sx = RGBStr_i[`XC]; \n                         ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:62: Define or directive not defined: \'`YC\'\n assign sy = RGBStr_i[`YC];\n                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:62: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n assign sy = RGBStr_i[`YC];\n                         ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: Define or directive not defined: \'`HS\'\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n          ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n             ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: Define or directive not defined: \'`HS\'\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n                         ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: Define or directive not defined: \'`VS\'\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n                                       ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n                                          ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:75: Define or directive not defined: \'`VS\'\n  AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];\n                                                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: Define or directive not defined: \'`XC\'\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n          ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n             ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: Define or directive not defined: \'`XC\'\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n                         ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: Define or directive not defined: \'`YC\'\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n                                       ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n                                          ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:76: Define or directive not defined: \'`YC\'\n  AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];\n                                                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:77: Define or directive not defined: \'`Active\'\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n          ^~~~~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:77: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n                 ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:77: Define or directive not defined: \'`Active\'\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n                             ^~~~~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:78: Define or directive not defined: \'`RGB\'\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n          ^~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:78: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n              ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:78: Define or directive not defined: \'`RGB\'\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n                          ^~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: Define or directive not defined: \'`HS\'\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n          ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n             ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: Define or directive not defined: \'`HS\'\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n                        ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: Define or directive not defined: \'`VS\'\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n                                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n                                         ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:83: Define or directive not defined: \'`VS\'\n  AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];\n                                                    ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: Define or directive not defined: \'`XC\'\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n          ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n             ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: Define or directive not defined: \'`XC\'\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n                        ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: Define or directive not defined: \'`YC\'\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n                                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n                                         ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:84: Define or directive not defined: \'`YC\'\n  AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];\n                                                    ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:85: Define or directive not defined: \'`Active\'\n  AuxStr2[`Active]<=AuxStr1[`Active];\n          ^~~~~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:85: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`Active]<=AuxStr1[`Active];\n                 ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:85: Define or directive not defined: \'`Active\'\n  AuxStr2[`Active]<=AuxStr1[`Active];\n                            ^~~~~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:87: Define or directive not defined: \'`RGB\'\n  AuxStr2[`RGB]<= AuxStr1[`RGB];\n          ^~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:87: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr2[`RGB]<= AuxStr1[`RGB];\n              ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:87: Define or directive not defined: \'`RGB\'\n  AuxStr2[`RGB]<= AuxStr1[`RGB];\n                          ^~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:88: Define or directive not defined: \'`Active\'\n  if (AuxStr1[`Active])  \n              ^~~~~~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:88: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  if (AuxStr1[`Active])  \n                     ^\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:100: Define or directive not defined: \'`HS\'\n  RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];\n           ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:100: Define or directive not defined: \'`HS\'\n  RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];\n                         ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:100: Define or directive not defined: \'`VS\'\n  RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];\n                                        ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:100: Define or directive not defined: \'`VS\'\n  RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];\n                                                      ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:101: Define or directive not defined: \'`XC\'\n  RGBStr_o[`XC]<=AuxStr2[`XC]; RGBStr_o[`YC]<=AuxStr2[`YC];\n           ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:101: Define or directive not defined: \'`XC\'\n  RGBStr_o[`XC]<=AuxStr2[`XC]; RGBStr_o[`YC]<=AuxStr2[`YC];\n                         ^~~\n%Error: data/full_repos/permissive/109394014/examples/DisplayGame.v:101: Define or directive not defined: \'`YC\'\n  RGBStr_o[`XC]<=AuxStr2[`XC]; RGBStr_o[`YC]<=AuxStr2[`YC];\n                                        ^~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
module DisplayGame (
                input wire        	px_clk,
                input wire [25:0] 	RGBStr_i,       
				input wire [3:0]	TabDat,
				input wire [3:0]	BmpDat,
				output reg [10:0] 	TabAdd,
				output reg [9:0] 	BmpAdd,
                output reg 	[25:0] 	RGBStr_o
               );

   

    parameter Tab_width = 40;
    parameter Tab_height = 30;
	parameter Bmp_width = 16;
	parameter Bmp_height =16;
	
	parameter VISIBLECOLS = 640;
	parameter VISIBLEROWS = 480;



    parameter [2:0] black = 3'b000;
    parameter [2:0] blue  = 3'b001;
    parameter [2:0] green = 3'b010;
    parameter [2:0] white = 3'b111;
    parameter [2:0] pink = 3'b101;


	wire [9:0]sx; 
	wire [9:0]sy;
	wire [5:0]TabX; 
	wire [4:0]TabY;
	reg [3:0]BmpX;
	reg [3:0]BmpY;
	reg InTabX, InTabY, InTab;
	reg [25:0]AuxStr1;
	reg [25:0]AuxStr2;
	
	
	assign sx = RGBStr_i[`XC]; 
	assign sy = RGBStr_i[`YC];
	assign TabX = sx[9:4]; 
	assign TabY = sy[8:4];
	
	

	always @(posedge px_clk)
    begin
		TabAdd <= TabY*Tab_width+TabX;
		InTabX <= (sx==0)? 1: ((sx==Tab_width*Bmp_width) ? 0 : InTabX);
		InTabY <= (sy==0)? 1: ((sy==Tab_height*Bmp_height) ? 0 : InTabY);
		BmpX <= sx[3:0]; BmpY <= sy[3:0];
		
		AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];
		AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];
		AuxStr1[`Active]<=RGBStr_i[`Active];
		AuxStr1[`RGB]<=RGBStr_i[`RGB];
	end

	always @(posedge px_clk)
    begin
		AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];
		AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];
		AuxStr2[`Active]<=AuxStr1[`Active];
		InTab <= InTabX && InTabY;
		AuxStr2[`RGB]<= AuxStr1[`RGB];
		if (AuxStr1[`Active])
		begin
			if(InTabX==1 && InTabY==1)
			begin
				BmpAdd<={TabDat[1:0],BmpY,BmpX};
			end
		end
	end
	

	always @(posedge px_clk)
    begin	
		RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];
		RGBStr_o[`XC]<=AuxStr2[`XC]; RGBStr_o[`YC]<=AuxStr2[`YC];
		RGBStr_o[`Active]<=AuxStr2[`Active];

		if (AuxStr2[`Active])
		begin
			if (InTab)
			begin
				RGBStr_o[`RGB]<= (BmpDat[2:0]==0)? AuxStr2[`RGB]: BmpDat[2:0];
			end
		end
		else
		begin
			RGBStr_o[`RGB]<= AuxStr2[`RGB];
		end
	end	
endmodule
module DisplayGame (
                input wire        	px_clk,
                input wire [25:0] 	RGBStr_i,       
				input wire [3:0]	TabDat,
				input wire [3:0]	BmpDat,
				output reg [10:0] 	TabAdd,
				output reg [9:0] 	BmpAdd,
                output reg 	[25:0] 	RGBStr_o
               );


   

    parameter Tab_width = 40;
    parameter Tab_height = 30;
	parameter Bmp_width = 16;
	parameter Bmp_height =16;
	
	parameter VISIBLECOLS = 640;
	parameter VISIBLEROWS = 480;



    parameter [2:0] black = 3'b000;
    parameter [2:0] blue  = 3'b001;
    parameter [2:0] green = 3'b010;
    parameter [2:0] white = 3'b111;
    parameter [2:0] pink = 3'b101;


	wire [9:0]sx; 
	wire [9:0]sy;
	wire [5:0]TabX; 
	wire [4:0]TabY;
	reg [3:0]BmpX;
	reg [3:0]BmpY;
	reg InTabX, InTabY, InTab;
	reg [25:0]AuxStr1;
	reg [25:0]AuxStr2;
	
	
	assign sx = RGBStr_i[`XC]; 
	assign sy = RGBStr_i[`YC];
	assign TabX = sx[9:4]; 
	assign TabY = sy[8:4];
	
	

	always @(posedge px_clk)
    begin
		TabAdd <= TabY*Tab_width+TabX;
		InTabX <= (sx==0)? 1: ((sx==Tab_width*Bmp_width) ? 0 : InTabX);
		InTabY <= (sy==0)? 1: ((sy==Tab_height*Bmp_height) ? 0 : InTabY);
		BmpX <= sx[3:0]; BmpY <= sy[3:0];
		
		AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];
		AuxStr1[`XC]<=RGBStr_i[`XC]; AuxStr1[`YC]<=RGBStr_i[`YC];
		AuxStr1[`Active]<=RGBStr_i[`Active];
		AuxStr1[`RGB]<=RGBStr_i[`RGB];
	end

	always @(posedge px_clk)
    begin
		AuxStr2[`HS]<=AuxStr1[`HS]; AuxStr2[`VS]<=AuxStr1[`VS];
		AuxStr2[`XC]<=AuxStr1[`XC]; AuxStr2[`YC]<=AuxStr1[`YC];
		AuxStr2[`Active]<=AuxStr1[`Active];
		InTab <= InTabX && InTabY;
		AuxStr2[`RGB]<= AuxStr1[`RGB];
		if (AuxStr1[`Active])
		begin
			if(InTabX==1 && InTabY==1)
			begin
				BmpAdd<={TabDat[1:0],BmpY,BmpX};
			end
		end
	end
	

	always @(posedge px_clk)
    begin	
		RGBStr_o[`HS]<=AuxStr2[`HS]; RGBStr_o[`VS]<=AuxStr2[`VS];
		RGBStr_o[`XC]<=AuxStr2[`XC]; RGBStr_o[`YC]<=AuxStr2[`YC];
		RGBStr_o[`Active]<=AuxStr2[`Active];

		if (AuxStr2[`Active])
		begin
			if (InTab)
			begin
				RGBStr_o[`RGB]<= (BmpDat[2:0]==0)? AuxStr2[`RGB]: BmpDat[2:0];
			end
		end
		else
		begin
			RGBStr_o[`RGB]<= AuxStr2[`RGB];
		end
	end	
endmodule