data/full_repos/permissive/194680577/ips_spi.v
1: b"%Error: data/full_repos/permissive/194680577/ips_spi.v:104: syntax error, unexpected '(', expecting IDENTIFIER\n HexSegDeg(sw[3:0], hled0);\n           ^~\n%Error: Exiting due to 1 error(s)\n"
function BitSel;
	input [7:0] dat;
	input [7:0] i;
	
	begin 
		case (i)
			1: BitSel=0;
			2: BitSel=dat[0];
			3: BitSel=dat[1];
			4: BitSel=dat[2];
			5: BitSel=dat[3];
			6: BitSel=dat[4];
			7: BitSel=dat[5];
			8: BitSel=dat[6];
			9: BitSel=dat[7];
			default: BitSel=1;
		endcase;
	end endfunction
function BitSel;

	input [7:0] dat;
	input [7:0] i;
	
	begin 
		case (i)
			1: BitSel=0;
			2: BitSel=dat[0];
			3: BitSel=dat[1];
			4: BitSel=dat[2];
			5: BitSel=dat[3];
			6: BitSel=dat[4];
			7: BitSel=dat[5];
			8: BitSel=dat[6];
			9: BitSel=dat[7];
			default: BitSel=1;
		endcase;
	end endfunction