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

    assign x_max = 162;

    always @ (*)
        case (x)
        0: y = 16'b0000000000000000;
        1: y = 16'b0000010011101111;
        2: y = 16'b0000100111011100;
        3: y = 16'b0000111011000101;
        4: y = 16'b0001001110101000;
        5: y = 16'b0001100010000100;
        6: y = 16'b0001110101010111;
        7: y = 16'b0010001000011111;
        8: y = 16'b0010011011011001;
        9: y = 16'b0010101110000101;
        10: y = 16'b0011000000100000;
        11: y = 16'b0011010010101001;
        12: y = 16'b0011100100011110;
        13: y = 16'b0011110101111101;
        14: y = 16'b0100000111000101;
        15: y = 16'b0100010111110100;
        16: y = 16'b0100101000001000;
        17: y = 16'b0100111000000000;
        18: y = 16'b0101000111011011;
        19: y = 16'b0101010110010110;
        20: y = 16'b0101100100110000;
        21: y = 16'b0101110010101001;
        22: y = 16'b0101111111111111;
        23: y = 16'b0110001100110000;
        24: y = 16'b0110011000111011;
        25: y = 16'b0110100100011111;
        26: y = 16'b0110101111011100;
        27: y = 16'b0110111001101111;
        28: y = 16'b0111000011011001;
        29: y = 16'b0111001100010111;
        30: y = 16'b0111010100101010;
        31: y = 16'b0111011100010000;
        32: y = 16'b0111100011001001;
        33: y = 16'b0111101001010100;
        34: y = 16'b0111101110110000;
        35: y = 16'b0111110011011101;
        36: y = 16'b0111110111011011;
        37: y = 16'b0111111010101001;
        38: y = 16'b0111111101000111;
        39: y = 16'b0111111110110100;
        40: y = 16'b0111111111110001;
        41: y = 16'b0111111111111101;
        42: y = 16'b0111111111011001;
        43: y = 16'b0111111110000100;
        44: y = 16'b0111111011111110;
        45: y = 16'b0111111001001000;
        46: y = 16'b0111110101100010;
        47: y = 16'b0111110001001101;
        48: y = 16'b0111101100001000;
        49: y = 16'b0111100110010100;
        50: y = 16'b0111011111110010;
        51: y = 16'b0111011000100010;
        52: y = 16'b0111010000100110;
        53: y = 16'b0111000111111101;
        54: y = 16'b0110111110101001;
        55: y = 16'b0110110100101011;
        56: y = 16'b0110101010000011;
        57: y = 16'b0110011110110010;
        58: y = 16'b0110010010111010;
        59: y = 16'b0110000110011100;
        60: y = 16'b0101111001011000;
        61: y = 16'b0101101011110001;
        62: y = 16'b0101011101100111;
        63: y = 16'b0101001110111100;
        64: y = 16'b0100111111110001;
        65: y = 16'b0100110000001000;
        66: y = 16'b0100100000000001;
        67: y = 16'b0100001111100000;
        68: y = 16'b0011111110100100;
        69: y = 16'b0011101101010001;
        70: y = 16'b0011011011100110;
        71: y = 16'b0011001001100111;
        72: y = 16'b0010110111010101;
        73: y = 16'b0010100100110001;
        74: y = 16'b0010010001111110;
        75: y = 16'b0001111110111100;
        76: y = 16'b0001101011101111;
        77: y = 16'b0001011000010111;
        78: y = 16'b0001000100110111;
        79: y = 16'b0000110001010001;
        80: y = 16'b0000011101100110;
        81: y = 16'b0000001001110111;
        82: y = 16'b1111110110001001;
        83: y = 16'b1111100010011010;
        84: y = 16'b1111001110101111;
        85: y = 16'b1110111011001001;
        86: y = 16'b1110100111101001;
        87: y = 16'b1110010100010001;
        88: y = 16'b1110000001000100;
        89: y = 16'b1101101110000010;
        90: y = 16'b1101011011001111;
        91: y = 16'b1101001000101011;
        92: y = 16'b1100110110011001;
        93: y = 16'b1100100100011010;
        94: y = 16'b1100010010101111;
        95: y = 16'b1100000001011100;
        96: y = 16'b1011110000100000;
        97: y = 16'b1011011111111111;
        98: y = 16'b1011001111111000;
        99: y = 16'b1011000000001111;
        100: y = 16'b1010110001000100;
        101: y = 16'b1010100010011001;
        102: y = 16'b1010010100001111;
        103: y = 16'b1010000110101000;
        104: y = 16'b1001111001100100;
        105: y = 16'b1001101101000110;
        106: y = 16'b1001100001001110;
        107: y = 16'b1001010101111101;
        108: y = 16'b1001001011010101;
        109: y = 16'b1001000001010111;
        110: y = 16'b1000111000000011;
        111: y = 16'b1000101111011010;
        112: y = 16'b1000100111011110;
        113: y = 16'b1000100000001110;
        114: y = 16'b1000011001101100;
        115: y = 16'b1000010011111000;
        116: y = 16'b1000001110110011;
        117: y = 16'b1000001010011110;
        118: y = 16'b1000000110111000;
        119: y = 16'b1000000100000010;
        120: y = 16'b1000000001111100;
        121: y = 16'b1000000000100111;
        122: y = 16'b1000000000000011;
        123: y = 16'b1000000000001111;
        124: y = 16'b1000000001001100;
        125: y = 16'b1000000010111001;
        126: y = 16'b1000000101010111;
        127: y = 16'b1000001000100101;
        128: y = 16'b1000001100100011;
        129: y = 16'b1000010001010000;
        130: y = 16'b1000010110101100;
        131: y = 16'b1000011100110111;
        132: y = 16'b1000100011110000;
        133: y = 16'b1000101011010110;
        134: y = 16'b1000110011101001;
        135: y = 16'b1000111100100111;
        136: y = 16'b1001000110010001;
        137: y = 16'b1001010000100100;
        138: y = 16'b1001011011100001;
        139: y = 16'b1001100111000101;
        140: y = 16'b1001110011010000;
        141: y = 16'b1010000000000001;
        142: y = 16'b1010001101010111;
        143: y = 16'b1010011011010000;
        144: y = 16'b1010101001101010;
        145: y = 16'b1010111000100101;
        146: y = 16'b1011001000000000;
        147: y = 16'b1011010111111000;
        148: y = 16'b1011101000001100;
        149: y = 16'b1011111000111011;
        150: y = 16'b1100001010000011;
        151: y = 16'b1100011011100010;
        152: y = 16'b1100101101010111;
        153: y = 16'b1100111111100000;
        154: y = 16'b1101010001111011;
        155: y = 16'b1101100100100111;
        156: y = 16'b1101110111100001;
        157: y = 16'b1110001010101001;
        158: y = 16'b1110011101111100;
        159: y = 16'b1110110001011000;
        160: y = 16'b1111000100111011;
        161: y = 16'b1111011000100100;
        162: y = 16'b1111101100010001;
        default: y = 16'b0;
        endcase

endmodule