def parse_delays(delay_file):
    """Parses wire delays from an architecture delay file.

    Parameters
    ----------
    delay_file : str
        Name of the delay file.
    
    Returns
    -------
    Dict[str, int]
        A dictionary of delays in picoseconds for all wire types.
    """

    delays = {}
    with open(delay_file, "r") as inf:
        lines = inf.readlines()

    for line in lines:
        if line.startswith("cb"):
            break
        wire = line.split()[0].replace("_tap_0", '')
        td = int(round(float(line.split()[1]) * 1e12))
        delays.update({wire : td})

    return delays