data/full_repos/permissive/441359809/src/yosys/techlibs/xilinx/tests/bram2.v
1: b'%Warning-WIDTH: data/full_repos/permissive/441359809/src/yosys/techlibs/xilinx/tests/bram2.v:20: Operator ASSIGN expects 18 bits on the Assign RHS, but Assign RHS\'s VARREF \'x\' generates 32 bits.\n                                                                                               : ... In instance myram\n   hash = x;\n        ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/441359809/src/yosys/techlibs/xilinx/tests/bram2.v:26: Operator FUNCREF \'hash\' expects 8 bits on the Function Argument, but Function Argument\'s VARREF \'i\' generates 32 bits.\n                                                                                               : ... In instance myram\n   memory[i] = hash(i);\n               ^~~~\n%Error: Exiting due to 2 warning(s)\n'
function [17:0] hash(input [7:0] k);
		reg [31:0] x;
		begin
			x = {k, ~k, k, ~k};
			x = x ^ (x << 13);
			x = x ^ (x >> 17);
			x = x ^ (x << 5);
			hash = x;
		end
	endfunction
function [17:0] hash(input [7:0] k);

		reg [31:0] x;
		begin
			x = {k, ~k, k, ~k};
			x = x ^ (x << 13);
			x = x ^ (x >> 17);
			x = x ^ (x << 5);
			hash = x;
		end
	endfunction