module lut_Fs
(
    input      [7:0] x,
    output     [7:0] x_max,
    output reg [15:0] y
);

    assign x_max = 128;

    always @ (*)
        case (x)
        0: y = 16'b0000000000000000;
        1: y = 16'b0000011000111011;
        2: y = 16'b0000110001110011;
        3: y = 16'b0001001010100011;
        4: y = 16'b0001100011001000;
        5: y = 16'b0001111011011101;
        6: y = 16'b0010010011100000;
        7: y = 16'b0010101011001101;
        8: y = 16'b0011000010011111;
        9: y = 16'b0011011001010100;
        10: y = 16'b0011101111101000;
        11: y = 16'b0100000101011000;
        12: y = 16'b0100011010100000;
        13: y = 16'b0100101110111101;
        14: y = 16'b0101000010101100;
        15: y = 16'b0101010101101010;
        16: y = 16'b0101100111110100;
        17: y = 16'b0101111001001000;
        18: y = 16'b0110001001100010;
        19: y = 16'b0110011001000001;
        20: y = 16'b0110100111100001;
        21: y = 16'b0110110101000010;
        22: y = 16'b0111000001100000;
        23: y = 16'b0111001100111001;
        24: y = 16'b0111010111001101;
        25: y = 16'b0111100000011001;
        26: y = 16'b0111101000011100;
        27: y = 16'b0111101111010110;
        28: y = 16'b0111110101000011;
        29: y = 16'b0111111001100101;
        30: y = 16'b0111111100111010;
        31: y = 16'b0111111111000010;
        32: y = 16'b0111111111111101;
        33: y = 16'b0111111111101001;
        34: y = 16'b0111111110001000;
        35: y = 16'b0111111011011010;
        36: y = 16'b0111110111011110;
        37: y = 16'b0111110010010110;
        38: y = 16'b0111101100000010;
        39: y = 16'b0111100100100100;
        40: y = 16'b0111011011111100;
        41: y = 16'b0111010010001100;
        42: y = 16'b0111000111010101;
        43: y = 16'b0110111011011001;
        44: y = 16'b0110101110011010;
        45: y = 16'b0110100000011001;
        46: y = 16'b0110010001011001;
        47: y = 16'b0110000001011100;
        48: y = 16'b0101110000100101;
        49: y = 16'b0101011110110110;
        50: y = 16'b0101001100010001;
        51: y = 16'b0100111000111010;
        52: y = 16'b0100100100110100;
        53: y = 16'b0100010000000001;
        54: y = 16'b0011111010100101;
        55: y = 16'b0011100100100011;
        56: y = 16'b0011001101111110;
        57: y = 16'b0010110110111001;
        58: y = 16'b0010011111011001;
        59: y = 16'b0010000111100001;
        60: y = 16'b0001101111010101;
        61: y = 16'b0001010110110111;
        62: y = 16'b0000111110001100;
        63: y = 16'b0000100101011000;
        64: y = 16'b0000001100011110;
        65: y = 16'b1111110011100010;
        66: y = 16'b1111011010101000;
        67: y = 16'b1111000001110100;
        68: y = 16'b1110101001001001;
        69: y = 16'b1110010000101011;
        70: y = 16'b1101111000011111;
        71: y = 16'b1101100000100111;
        72: y = 16'b1101001001000111;
        73: y = 16'b1100110010000010;
        74: y = 16'b1100011011011101;
        75: y = 16'b1100000101011011;
        76: y = 16'b1011101111111111;
        77: y = 16'b1011011011001100;
        78: y = 16'b1011000111000110;
        79: y = 16'b1010110011101111;
        80: y = 16'b1010100001001010;
        81: y = 16'b1010001111011011;
        82: y = 16'b1001111110100100;
        83: y = 16'b1001101110100111;
        84: y = 16'b1001011111100111;
        85: y = 16'b1001010001100110;
        86: y = 16'b1001000100100111;
        87: y = 16'b1000111000101011;
        88: y = 16'b1000101101110100;
        89: y = 16'b1000100100000100;
        90: y = 16'b1000011011011100;
        91: y = 16'b1000010011111110;
        92: y = 16'b1000001101101010;
        93: y = 16'b1000001000100010;
        94: y = 16'b1000000100100110;
        95: y = 16'b1000000001111000;
        96: y = 16'b1000000000010111;
        97: y = 16'b1000000000000011;
        98: y = 16'b1000000000111110;
        99: y = 16'b1000000011000110;
        100: y = 16'b1000000110011011;
        101: y = 16'b1000001010111101;
        102: y = 16'b1000010000101010;
        103: y = 16'b1000010111100100;
        104: y = 16'b1000011111100111;
        105: y = 16'b1000101000110011;
        106: y = 16'b1000110011000111;
        107: y = 16'b1000111110100000;
        108: y = 16'b1001001010111110;
        109: y = 16'b1001011000011111;
        110: y = 16'b1001100110111111;
        111: y = 16'b1001110110011110;
        112: y = 16'b1010000110111000;
        113: y = 16'b1010011000001100;
        114: y = 16'b1010101010010110;
        115: y = 16'b1010111101010100;
        116: y = 16'b1011010001000011;
        117: y = 16'b1011100101100000;
        118: y = 16'b1011111010101000;
        119: y = 16'b1100010000011000;
        120: y = 16'b1100100110101100;
        121: y = 16'b1100111101100001;
        122: y = 16'b1101010100110011;
        123: y = 16'b1101101100100000;
        124: y = 16'b1110000100100011;
        125: y = 16'b1110011100111000;
        126: y = 16'b1110110101011101;
        127: y = 16'b1111001110001101;
        128: y = 16'b1111100111000101;
        default: y = 16'b0;
        endcase

endmodule