def get_site(db, grid, tile, site):
    """ Return the prjxray.tile.Site object for the given PLL/MMCM site. """
    gridinfo = grid.gridinfo_at_tilename(tile)
    tile_type = db.get_tile_type(gridinfo.tile_type)

    sites = list(tile_type.get_instance_sites(gridinfo))
    assert len(sites) == 1, sites

    return sites[0]