data/full_repos/permissive/422447942/Codebase/lettertohex.v
1: b'%Warning-LITENDIAN: data/full_repos/permissive/422447942/Codebase/lettertohex.v:3: Little bit endian vector: MSB < LSB of bit range: 0:7\n input [0:7]sevbits;\n       ^\n                    ... Use "/* verilator lint_off LITENDIAN */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module lettertohex(sevbits, sevseg);

	input [0:7]sevbits;
	output reg [6:0] sevseg;
	
	always@* begin
	
   if (sevbits == 8'b00011100)
       sevseg = 7'b0001000;
   else if(sevbits == 8'b00110010)
       sevseg = 7'b0000011;
   else if(sevbits == 8'b00100001)
       sevseg = 7'b1000110;
   else if(sevbits == 8'b00100011)
       sevseg = 7'b0100001;
   else if(sevbits == 8'b00100100)
       sevseg = 7'b0000110;
   else if(sevbits == 8'b00101011)
       sevseg = 7'b0001110;
   else if(sevbits == 8'b00110100)
       sevseg = 7'b1000010;
   else if(sevbits == 8'b00110011)
       sevseg = 7'b0001001;
   else if(sevbits == 8'b01000011)
       sevseg = 7'b1001111;
   else if(sevbits == 8'b00111011)
       sevseg = 7'b1100001;
   else if(sevbits == 8'b01000010)
       sevseg = 7'b0001010;
   else if(sevbits == 8'b01001011)
       sevseg = 7'b1000111;
   else if(sevbits == 8'b00111010)
       sevseg = 7'b0101010;
   else if(sevbits == 8'b00110001)
       sevseg = 7'b0101011;
   else if(sevbits == 8'b01000100)
       sevseg = 7'b0100011;
   else if(sevbits == 8'b01001101)
       sevseg = 7'b0001100;
   else if(sevbits == 8'b00010101)
       sevseg = 7'b0011000;
   else if(sevbits == 8'b00101101)
       sevseg = 7'b0101111;
   else if(sevbits == 8'b00011011)
       sevseg = 7'b1110011;
   else if(sevbits == 8'b00101100)
       sevseg = 7'b0000111;
   else if(sevbits == 8'b00111100)
       sevseg = 7'b1100011;
   else if(sevbits == 8'b00101010)
       sevseg = 7'b1100111;
   else if(sevbits == 8'b00011101)
       sevseg = 7'b1010101;
   else if(sevbits == 8'b00100010)
       sevseg = 7'b0110110;
	else if(sevbits == 8'b00110101)
       sevseg = 7'b0010001;
   else if(sevbits == 8'b00011010)
       sevseg = 7'b0110111;

   else if(sevbits == 8'b00010110) 
       sevseg = 7'b1111001;
   else if(sevbits == 8'b00011110) 
       sevseg = 7'b0100100;
   else if(sevbits == 8'b00100110) 
       sevseg = 7'b0110000;
   else if(sevbits == 8'b00100101) 
       sevseg = 7'b0011001;
   else if(sevbits == 8'b00101110)
       sevseg = 7'b0010010;
   else if(sevbits == 8'b00110110) 
       sevseg = 7'b0000010;
   else if(sevbits == 8'b00111101)
       sevseg = 7'b1111000;
   else if(sevbits == 8'b00111110)
       sevseg = 7'b0000000;
   else if(sevbits == 8'b01000110)
       sevseg = 7'b0010000;
   else if(sevbits == 8'b01000101)
       sevseg = 7'b1000000;
	else
		 sevseg = 7'b1111111;
	end
	

endmodule
module lettertohex(sevbits, sevseg);


	input [0:7]sevbits;
	output reg [6:0] sevseg;
	
	always@* begin
	
   if (sevbits == 8'b00011100)
       sevseg = 7'b0001000;
   else if(sevbits == 8'b00110010)
       sevseg = 7'b0000011;
   else if(sevbits == 8'b00100001)
       sevseg = 7'b1000110;
   else if(sevbits == 8'b00100011)
       sevseg = 7'b0100001;
   else if(sevbits == 8'b00100100)
       sevseg = 7'b0000110;
   else if(sevbits == 8'b00101011)
       sevseg = 7'b0001110;
   else if(sevbits == 8'b00110100)
       sevseg = 7'b1000010;
   else if(sevbits == 8'b00110011)
       sevseg = 7'b0001001;
   else if(sevbits == 8'b01000011)
       sevseg = 7'b1001111;
   else if(sevbits == 8'b00111011)
       sevseg = 7'b1100001;
   else if(sevbits == 8'b01000010)
       sevseg = 7'b0001010;
   else if(sevbits == 8'b01001011)
       sevseg = 7'b1000111;
   else if(sevbits == 8'b00111010)
       sevseg = 7'b0101010;
   else if(sevbits == 8'b00110001)
       sevseg = 7'b0101011;
   else if(sevbits == 8'b01000100)
       sevseg = 7'b0100011;
   else if(sevbits == 8'b01001101)
       sevseg = 7'b0001100;
   else if(sevbits == 8'b00010101)
       sevseg = 7'b0011000;
   else if(sevbits == 8'b00101101)
       sevseg = 7'b0101111;
   else if(sevbits == 8'b00011011)
       sevseg = 7'b1110011;
   else if(sevbits == 8'b00101100)
       sevseg = 7'b0000111;
   else if(sevbits == 8'b00111100)
       sevseg = 7'b1100011;
   else if(sevbits == 8'b00101010)
       sevseg = 7'b1100111;
   else if(sevbits == 8'b00011101)
       sevseg = 7'b1010101;
   else if(sevbits == 8'b00100010)
       sevseg = 7'b0110110;
	else if(sevbits == 8'b00110101)
       sevseg = 7'b0010001;
   else if(sevbits == 8'b00011010)
       sevseg = 7'b0110111;

   else if(sevbits == 8'b00010110) 
       sevseg = 7'b1111001;
   else if(sevbits == 8'b00011110) 
       sevseg = 7'b0100100;
   else if(sevbits == 8'b00100110) 
       sevseg = 7'b0110000;
   else if(sevbits == 8'b00100101) 
       sevseg = 7'b0011001;
   else if(sevbits == 8'b00101110)
       sevseg = 7'b0010010;
   else if(sevbits == 8'b00110110) 
       sevseg = 7'b0000010;
   else if(sevbits == 8'b00111101)
       sevseg = 7'b1111000;
   else if(sevbits == 8'b00111110)
       sevseg = 7'b0000000;
   else if(sevbits == 8'b01000110)
       sevseg = 7'b0010000;
   else if(sevbits == 8'b01000101)
       sevseg = 7'b1000000;
	else
		 sevseg = 7'b1111111;
	end
	

endmodule