data/full_repos/permissive/118027048/rtl/clog2.vh
 line:37: before: "function"
1: b'%Warning-WIDTH: data/full_repos/permissive/118027048/rtl/clog2.vh:66: Logical Operator IF expects 1 bit on the If, but If\'s VARREF \'roundoff\' generates 32 bits.\n  if(roundoff)\n  ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
function integer clogn;
	input [31:0] value;
	input [31:0] base;
	integer lbase;
	integer lval;
	integer tmp;
	integer roundoff;
	begin
		

		lbase = clog2(base);
		lval = clog2(value);
		

		tmp = lval / lbase;
		roundoff = value - (tmp*lbase);
		

		if(roundoff)
			clogn = tmp + 1;
		else
			clogn = tmp;
			
	end
endfunction
function integer clogn;

	input [31:0] value;
	input [31:0] base;
	integer lbase;
	integer lval;
	integer tmp;
	integer roundoff;
	begin
		

		lbase = clog2(base);
		lval = clog2(value);
		

		tmp = lval / lbase;
		roundoff = value - (tmp*lbase);
		

		if(roundoff)
			clogn = tmp + 1;
		else
			clogn = tmp;
			
	end
endfunction