data/full_repos/permissive/502544928/router_3d.v
1: b"%Error: data/full_repos/permissive/502544928/router_3d.v:83: Expecting expression to be constant, but can't determine constant for FUNCREF 'log2'\n                                                           : ... In instance router\n        data/full_repos/permissive/502544928/router_3d.v:56: ... Location of non-constant VARREF 'result': Language violation: reference to non-function-local variable\n        data/full_repos/permissive/502544928/router_3d.v:83: ... Called from log2() with parameters:\n           num = ?32?h1\n  localparam ROW_3D_BITS=log2(ROW_3D); \n                         ^~~~\n%Error: Exiting due to 1 error(s)\n"
function integer log2;
	  input integer num;
	  integer i, result;
	  begin
		for (i = 0; 2 ** i < num; i = i + 1)
		  result = i + 1;
		log2 = result;
	  end
	endfunction
function integer log2;

	  input integer num;
	  integer i, result;
	  begin
		for (i = 0; 2 ** i < num; i = i + 1)
		  result = i + 1;
		log2 = result;
	  end
	endfunction