docs: def hilbert_chip_order(machine):
      """A generator which iterates over a set of chips in a machine in a hilbert
      path.
  
      For use as a chip ordering for the sequential placer.
      """
      max_dimen = max(machine.width, machine.height)
      hilbert_levels = int(ceil(log(max_dimen, 2.0))) if max_dimen >= 1 else 0
      return hilbert(hilbert_levels)