def convert_lut_init_to_hex(val: str) -> str:
    """Converts EDIF decimal and hexadecimal notation to hexadecimal for SpDE.

    Args:
        val (str): value in decimal or hexadecimal notation (i.e. ``16'hABCD``)

    Returns:
        str: string containing only hexadecimal number, without ``0x`` prefix
            (i.e. "ABCD")
    """
    if "'" not in val:
        return str(format(int(val), 'x')).upper()
    else:
        return str(val.split("'h")[1]).upper()