data/full_repos/permissive/51625123/src/analinput.v
1: b'%Warning-WIDTH: data/full_repos/permissive/51625123/src/analinput.v:73: Operator FUNCREF \'paddlelimiter\' expects 10 bits on the Function Argument, but Function Argument\'s SEL generates 9 bits.\n                                                                      : ... In instance analinput\n    pay <= paddlelimiter(datain[11:3]);\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/analinput.v:75: Operator FUNCREF \'paddlelimiter\' expects 10 bits on the Function Argument, but Function Argument\'s SEL generates 9 bits.\n                                                                      : ... In instance analinput\n    pby <= paddlelimiter(datain[11:3]);\n           ^~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/51625123/src/analinput.v:86: Operator OR expects 12 bits on the RHS, but RHS\'s VARREF \'miso\' generates 1 bits.\n                                                                      : ... In instance analinput\n  datain <= (datain << 1) | miso; \n                          ^\n%Warning-UNSIGNED: data/full_repos/permissive/51625123/src/analinput.v:98: Comparison is constant due to unsigned arithmetic\n                                                                         : ... In instance analinput\n if (py < PADDLESIZE/2) \n        ^\n%Error: Exiting due to 4 warning(s)\n'
function [9:0] paddlelimiter;
input [9:0] py;
begin
	if (py < PADDLESIZE/2) 
		paddlelimiter = PADDLESIZE/2;
	else 
	if (py > SCREENHEIGHT-96/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-96/2)
		paddlelimiter = SCREENHEIGHT-PADDLESIZE/2;
	else
		paddlelimiter = py;
end
endfunction