sim._pycoro: make src_loc() more robust.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 07:11:14 +0000 (07:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:11:04 +0000 (15:11 +0000)
commit432ef66063fe5e0fb45dafcf766a7a22a67e5280
tree079c8de7be9c5592b5a28b18fcbea50cbb0dc2ee
parent88c00a04855bd5a38883b6d3571d99bceac1f026
sim._pycoro: make src_loc() more robust.

  * Guard for finished coroutines.
  * Guard for coroutines yielding from iterators and not generators.
nmigen/sim/_pycoro.py