data/full_repos/permissive/51625123/src/quad.v
1: b'%Warning-WIDTH: data/full_repos/permissive/51625123/src/quad.v:26: Operator ADD expects 10 bits on the RHS, but RHS\'s VARREF \'ac\' generates 4 bits.\n                                                                 : ... In instance quad\n  count <= paddlelimiter(count_direction ? count + ac : count - ac);\n                                                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/51625123/src/quad.v:26: Operator SUB expects 10 bits on the RHS, but RHS\'s VARREF \'ac\' generates 4 bits.\n                                                                 : ... In instance quad\n  count <= paddlelimiter(count_direction ? count + ac : count - ac);\n                                                              ^\n%Warning-UNSIGNED: data/full_repos/permissive/51625123/src/quad.v:36: Comparison is constant due to unsigned arithmetic\n                                                                    : ... In instance quad\n if (py < PADDLESIZE/2) \n        ^\n%Error: Exiting due to 3 warning(s)\n'
function [9:0] paddlelimiter;
input [9:0] py;
begin
	if (py < PADDLESIZE/2) 
		paddlelimiter = PADDLESIZE/2;
	else 
	if (py > SCREENHEIGHT-PADDLESIZE/2)
		paddlelimiter = SCREENHEIGHT-PADDLESIZE/2;
	else
		paddlelimiter = py;
end
endfunction
function [9:0] paddlelimiter;

input [9:0] py;
begin
	if (py < PADDLESIZE/2) 
		paddlelimiter = PADDLESIZE/2;
	else 
	if (py > SCREENHEIGHT-PADDLESIZE/2)
		paddlelimiter = SCREENHEIGHT-PADDLESIZE/2;
	else
		paddlelimiter = py;
end
endfunction