def get_device(config):
    """ Return the device portion of the part
    
    Device portion of an example:

    xc6slx9-tqg144-3: xc6slx9

    Args:
        config (dictionary): configuration dictionary

    Return:
        (string) device

    Raises:
        Nothing
    """
    part_string = config["device"]
    device = part_string.split("-")[0]
    return device.strip()