data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v
1: b'%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:35: Cannot find include file: Pxs.vh\n`include "Pxs.vh" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/109394014/blocks/Overlay,data/full_repos/permissive/109394014/Pxs.vh\n             data/full_repos/permissive/109394014/blocks/Overlay,data/full_repos/permissive/109394014/Pxs.vh.v\n             data/full_repos/permissive/109394014/blocks/Overlay,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/blocks/Overlay/PxsScoreOverlayLite.v:85: Define or directive not defined: \'`XC\'\n assign endframe = (RGBStr_i[`XC]==VISIBLECOLS-1 && RGBStr_i[`YC]==VISIBLEROWS-1)? 1\'b1 : 1\'b0 ;\n                             ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:85: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n assign endframe = (RGBStr_i[`XC]==VISIBLECOLS-1 && RGBStr_i[`YC]==VISIBLEROWS-1)? 1\'b1 : 1\'b0 ;\n                                ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:85: Define or directive not defined: \'`YC\'\n assign endframe = (RGBStr_i[`XC]==VISIBLECOLS-1 && RGBStr_i[`YC]==VISIBLEROWS-1)? 1\'b1 : 1\'b0 ;\n                                                             ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:91: 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/blocks/Overlay/PxsScoreOverlayLite.v:92: Define or directive not defined: \'`Active\'\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n          ^~~~~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:92: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n                 ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:92: Define or directive not defined: \'`Active\'\n  AuxStr1[`Active]<=RGBStr_i[`Active];\n                             ^~~~~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:93: Define or directive not defined: \'`RGB\'\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n          ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:93: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n              ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:93: Define or directive not defined: \'`RGB\'\n  AuxStr1[`RGB]<=RGBStr_i[`RGB];\n                          ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:100: Define or directive not defined: \'`XC\'\n  InScore1X <= (RGBStr_i[`XC]==Score1X)? 1 : ((RGBStr_i[`XC]==160)? 0 : InScore1X);\n                         ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:100: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  InScore1X <= (RGBStr_i[`XC]==Score1X)? 1 : ((RGBStr_i[`XC]==160)? 0 : InScore1X);\n                            ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:100: Define or directive not defined: \'`XC\'\n  InScore1X <= (RGBStr_i[`XC]==Score1X)? 1 : ((RGBStr_i[`XC]==160)? 0 : InScore1X);\n                                                        ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:101: Define or directive not defined: \'`YC\'\n  InScore1Y <= (RGBStr_i[`YC]==Score1Y)? 1 : ((RGBStr_i[`YC]==64)? 0 : InScore1Y);\n                         ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:101: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  InScore1Y <= (RGBStr_i[`YC]==Score1Y)? 1 : ((RGBStr_i[`YC]==64)? 0 : InScore1Y);\n                            ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:101: Define or directive not defined: \'`YC\'\n  InScore1Y <= (RGBStr_i[`YC]==Score1Y)? 1 : ((RGBStr_i[`YC]==64)? 0 : InScore1Y);\n                                                        ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: Define or directive not defined: \'`HS\'\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n           ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n              ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: Define or directive not defined: \'`HS\'\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n                         ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: Define or directive not defined: \'`VS\'\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n                                        ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n                                           ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:109: Define or directive not defined: \'`VS\'\n  RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];\n                                                      ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:113: Define or directive not defined: \'`XC\'\n  RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;\n           ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:113: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;\n              ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:113: Define or directive not defined: \'`YC\'\n  RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;\n                             ^~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:113: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;\n                                ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:114: Define or directive not defined: \'`Active\'\n  RGBStr_o[`Active]<=1;\n           ^~~~~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:114: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n  RGBStr_o[`Active]<=1;\n                  ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:119: Define or directive not defined: \'`RGB\'\n   RGBStr_o[`RGB]<= Nums[addr]? ink: AuxStr1[`RGB];  \n            ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:119: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   RGBStr_o[`RGB]<= Nums[addr]? ink: AuxStr1[`RGB];  \n                ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:119: Define or directive not defined: \'`RGB\'\n   RGBStr_o[`RGB]<= Nums[addr]? ink: AuxStr1[`RGB];  \n                                             ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:121: Define or directive not defined: \'`RGB\'\n   RGBStr_o[`RGB]<=AuxStr1[`RGB];\n            ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:121: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n   RGBStr_o[`RGB]<=AuxStr1[`RGB];\n                ^\n%Error: data/full_repos/permissive/109394014/blocks/Overlay/PxsScoreOverlayLite.v:121: Define or directive not defined: \'`RGB\'\n   RGBStr_o[`RGB]<=AuxStr1[`RGB];\n                           ^~~~\n%Error: Exiting due to 40 error(s)\n'
module PxsScoreOverlayLite(
                input wire        px_clk,  
				input wire [7:0]  score,
                input wire [25:0] RGBStr_i,       
                output reg [25:0] RGBStr_o        
               );


	parameter FILE_NUMBERS = "numbers2b.list";
   

    parameter width_number = 8;  
    parameter height_number = 8; 
	


	reg  [0:0] Nums [10*height_number*width_number-1:0];
	

	parameter Score1X = 128;
	parameter Score1Y = 32;
	parameter DigitStride = 4;
		

    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;	
    parameter ink = pink;
    parameter background = black;

	parameter [9:0] VISIBLECOLS = 640;
	parameter [9:0] VISIBLEROWS = 480;
	
	reg [9:0] addr;
	wire endframe;
	reg [25:0] AuxStr1;
	reg InScore1X, InScore1Y, InScore2X, InScore2Y;
	reg pixel;
	

	initial
    begin
		if (FILE_NUMBERS) $readmemh(FILE_NUMBERS, Nums);
    end
	
	reg [3:0] TensDigit, OnesDigit;
	assign endframe = (RGBStr_i[`XC]==VISIBLECOLS-1 && RGBStr_i[`YC]==VISIBLEROWS-1)? 1'b1 : 1'b0 ;
    


	always @(posedge px_clk)
    begin
		AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];
		AuxStr1[`Active]<=RGBStr_i[`Active];
		AuxStr1[`RGB]<=RGBStr_i[`RGB];






		InScore1X <= (RGBStr_i[`XC]==Score1X)? 1 : ((RGBStr_i[`XC]==160)? 0 : InScore1X);
		InScore1Y <= (RGBStr_i[`YC]==Score1Y)? 1 : ((RGBStr_i[`YC]==64)? 0 : InScore1Y);
		
		addr <= {OnesDigit, RGBStr_i[7:5], RGBStr_i[17:15]};

	end

	always @(posedge px_clk)
    begin
		RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];


		
		RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;
		RGBStr_o[`Active]<=1;



		if(InScore1X && InScore1Y)
			RGBStr_o[`RGB]<= Nums[addr]? ink: AuxStr1[`RGB];
		else
			RGBStr_o[`RGB]<=AuxStr1[`RGB];
	end


	always @(posedge px_clk)
    begin
		if (endframe)
		begin
			OnesDigit <= score[3:0];
			TensDigit <= score[7:4];
		end		
    end
	
	
endmodule
module PxsScoreOverlayLite(
                input wire        px_clk,  
				input wire [7:0]  score,
                input wire [25:0] RGBStr_i,       
                output reg [25:0] RGBStr_o        
               );



	parameter FILE_NUMBERS = "numbers2b.list";
   

    parameter width_number = 8;  
    parameter height_number = 8; 
	


	reg  [0:0] Nums [10*height_number*width_number-1:0];
	

	parameter Score1X = 128;
	parameter Score1Y = 32;
	parameter DigitStride = 4;
		

    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;	
    parameter ink = pink;
    parameter background = black;

	parameter [9:0] VISIBLECOLS = 640;
	parameter [9:0] VISIBLEROWS = 480;
	
	reg [9:0] addr;
	wire endframe;
	reg [25:0] AuxStr1;
	reg InScore1X, InScore1Y, InScore2X, InScore2Y;
	reg pixel;
	

	initial
    begin
		if (FILE_NUMBERS) $readmemh(FILE_NUMBERS, Nums);
    end
	
	reg [3:0] TensDigit, OnesDigit;
	assign endframe = (RGBStr_i[`XC]==VISIBLECOLS-1 && RGBStr_i[`YC]==VISIBLEROWS-1)? 1'b1 : 1'b0 ;
    


	always @(posedge px_clk)
    begin
		AuxStr1[`HS]<=RGBStr_i[`HS]; AuxStr1[`VS]<=RGBStr_i[`VS];
		AuxStr1[`Active]<=RGBStr_i[`Active];
		AuxStr1[`RGB]<=RGBStr_i[`RGB];






		InScore1X <= (RGBStr_i[`XC]==Score1X)? 1 : ((RGBStr_i[`XC]==160)? 0 : InScore1X);
		InScore1Y <= (RGBStr_i[`YC]==Score1Y)? 1 : ((RGBStr_i[`YC]==64)? 0 : InScore1Y);
		
		addr <= {OnesDigit, RGBStr_i[7:5], RGBStr_i[17:15]};

	end

	always @(posedge px_clk)
    begin
		RGBStr_o[`HS]<=AuxStr1[`HS]; RGBStr_o[`VS]<=AuxStr1[`VS];


		
		RGBStr_o[`XC]<=0; RGBStr_o[`YC]<=0;
		RGBStr_o[`Active]<=1;



		if(InScore1X && InScore1Y)
			RGBStr_o[`RGB]<= Nums[addr]? ink: AuxStr1[`RGB];
		else
			RGBStr_o[`RGB]<=AuxStr1[`RGB];
	end


	always @(posedge px_clk)
    begin
		if (endframe)
		begin
			OnesDigit <= score[3:0];
			TensDigit <= score[7:4];
		end		
    end
	
	
endmodule