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

    assign x_max = 153;

    always @ (*)
        case (x)
        0: y = 16'b0000000000000000;
        1: y = 16'b0000010100111001;
        2: y = 16'b0000101001101111;
        3: y = 16'b0000111110100001;
        4: y = 16'b0001010011001100;
        5: y = 16'b0001100111101110;
        6: y = 16'b0001111100000101;
        7: y = 16'b0010010000010000;
        8: y = 16'b0010100100001010;
        9: y = 16'b0010110111110011;
        10: y = 16'b0011001011001001;
        11: y = 16'b0011011110001001;
        12: y = 16'b0011110000110001;
        13: y = 16'b0100000011000000;
        14: y = 16'b0100010100110011;
        15: y = 16'b0100100110001001;
        16: y = 16'b0100110110111111;
        17: y = 16'b0101000111010100;
        18: y = 16'b0101010111000110;
        19: y = 16'b0101100110010100;
        20: y = 16'b0101110100111100;
        21: y = 16'b0110000010111100;
        22: y = 16'b0110010000010010;
        23: y = 16'b0110011100111110;
        24: y = 16'b0110101000111110;
        25: y = 16'b0110110100010001;
        26: y = 16'b0110111110110101;
        27: y = 16'b0111001000101010;
        28: y = 16'b0111010001101110;
        29: y = 16'b0111011010000000;
        30: y = 16'b0111100001100000;
        31: y = 16'b0111101000001101;
        32: y = 16'b0111101110000101;
        33: y = 16'b0111110011001001;
        34: y = 16'b0111110111011000;
        35: y = 16'b0111111010110001;
        36: y = 16'b0111111101010101;
        37: y = 16'b0111111111000010;
        38: y = 16'b0111111111111000;
        39: y = 16'b0111111111111000;
        40: y = 16'b0111111111000010;
        41: y = 16'b0111111101010101;
        42: y = 16'b0111111010110001;
        43: y = 16'b0111110111011000;
        44: y = 16'b0111110011001001;
        45: y = 16'b0111101110000101;
        46: y = 16'b0111101000001101;
        47: y = 16'b0111100001100000;
        48: y = 16'b0111011010000000;
        49: y = 16'b0111010001101110;
        50: y = 16'b0111001000101010;
        51: y = 16'b0110111110110101;
        52: y = 16'b0110110100010001;
        53: y = 16'b0110101000111110;
        54: y = 16'b0110011100111110;
        55: y = 16'b0110010000010010;
        56: y = 16'b0110000010111100;
        57: y = 16'b0101110100111100;
        58: y = 16'b0101100110010100;
        59: y = 16'b0101010111000110;
        60: y = 16'b0101000111010100;
        61: y = 16'b0100110110111111;
        62: y = 16'b0100100110001001;
        63: y = 16'b0100010100110011;
        64: y = 16'b0100000011000000;
        65: y = 16'b0011110000110001;
        66: y = 16'b0011011110001001;
        67: y = 16'b0011001011001001;
        68: y = 16'b0010110111110011;
        69: y = 16'b0010100100001010;
        70: y = 16'b0010010000010000;
        71: y = 16'b0001111100000101;
        72: y = 16'b0001100111101110;
        73: y = 16'b0001010011001100;
        74: y = 16'b0000111110100001;
        75: y = 16'b0000101001101111;
        76: y = 16'b0000010100111001;
        77: y = 16'b0000000000000000;
        78: y = 16'b1111101011000111;
        79: y = 16'b1111010110010001;
        80: y = 16'b1111000001011111;
        81: y = 16'b1110101100110100;
        82: y = 16'b1110011000010010;
        83: y = 16'b1110000011111011;
        84: y = 16'b1101101111110000;
        85: y = 16'b1101011011110110;
        86: y = 16'b1101001000001101;
        87: y = 16'b1100110100110111;
        88: y = 16'b1100100001110111;
        89: y = 16'b1100001111001111;
        90: y = 16'b1011111101000000;
        91: y = 16'b1011101011001101;
        92: y = 16'b1011011001110111;
        93: y = 16'b1011001001000001;
        94: y = 16'b1010111000101100;
        95: y = 16'b1010101000111010;
        96: y = 16'b1010011001101100;
        97: y = 16'b1010001011000100;
        98: y = 16'b1001111101000100;
        99: y = 16'b1001101111101110;
        100: y = 16'b1001100011000010;
        101: y = 16'b1001010111000010;
        102: y = 16'b1001001011101111;
        103: y = 16'b1001000001001011;
        104: y = 16'b1000110111010110;
        105: y = 16'b1000101110010010;
        106: y = 16'b1000100110000000;
        107: y = 16'b1000011110100000;
        108: y = 16'b1000010111110011;
        109: y = 16'b1000010001111011;
        110: y = 16'b1000001100110111;
        111: y = 16'b1000001000101000;
        112: y = 16'b1000000101001111;
        113: y = 16'b1000000010101011;
        114: y = 16'b1000000000111110;
        115: y = 16'b1000000000001000;
        116: y = 16'b1000000000001000;
        117: y = 16'b1000000000111110;
        118: y = 16'b1000000010101011;
        119: y = 16'b1000000101001111;
        120: y = 16'b1000001000101000;
        121: y = 16'b1000001100110111;
        122: y = 16'b1000010001111011;
        123: y = 16'b1000010111110011;
        124: y = 16'b1000011110100000;
        125: y = 16'b1000100110000000;
        126: y = 16'b1000101110010010;
        127: y = 16'b1000110111010110;
        128: y = 16'b1001000001001011;
        129: y = 16'b1001001011101111;
        130: y = 16'b1001010111000010;
        131: y = 16'b1001100011000010;
        132: y = 16'b1001101111101110;
        133: y = 16'b1001111101000100;
        134: y = 16'b1010001011000100;
        135: y = 16'b1010011001101100;
        136: y = 16'b1010101000111010;
        137: y = 16'b1010111000101100;
        138: y = 16'b1011001001000001;
        139: y = 16'b1011011001110111;
        140: y = 16'b1011101011001101;
        141: y = 16'b1011111101000000;
        142: y = 16'b1100001111001111;
        143: y = 16'b1100100001110111;
        144: y = 16'b1100110100110111;
        145: y = 16'b1101001000001101;
        146: y = 16'b1101011011110110;
        147: y = 16'b1101101111110000;
        148: y = 16'b1110000011111011;
        149: y = 16'b1110011000010010;
        150: y = 16'b1110101100110100;
        151: y = 16'b1111000001011111;
        152: y = 16'b1111010110010001;
        153: y = 16'b1111101011000111;
        default: y = 16'b0;
        endcase

endmodule