def get_bram36_site(db, grid, tile):
    """ Return the BRAM36 prjxray.tile.Site object for the given BRAM tile. """
    gridinfo = grid.gridinfo_at_tilename(tile)
    tile_type = db.get_tile_type(gridinfo.tile_type)

    sites = tile_type.get_instance_sites(gridinfo)
    for site in sites:
        if site.type == 'RAMBFIFO36E1':
            return site

    assert False, sites