1 Commits

Author SHA1 Message Date
c2b5934cc9 Cocotb 2.0 changes
Some checks are pending
build / Build distributions (push) Successful in 8s
build / deploy (push) Has been skipped
Regression Tests / Python 3.10 (push) Waiting to run
Regression Tests / Python 3.11 (push) Waiting to run
Regression Tests / Python 3.12 (push) Waiting to run
Regression Tests / Python 3.13 (push) Waiting to run
Regression Tests / Python 3.8 (push) Waiting to run
Regression Tests / Python 3.9 (push) Waiting to run
build / Build distributions (release) Successful in 8s
build / deploy (release) Successful in 7s
value_change, kill -> cancel
2026-02-08 13:48:23 -08:00
3 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ class Reset:
async def _run_reset(self, reset_signal, active_level): async def _run_reset(self, reset_signal, active_level):
while True: while True:
await Edge(reset_signal) await reset_signal.value_change
try: try:
level = bool(int(reset_signal.value)) level = bool(int(reset_signal.value))
except ValueError: except ValueError:

View File

@@ -140,7 +140,7 @@ class RgmiiSource(Reset):
if state: if state:
self.log.info("Reset asserted") self.log.info("Reset asserted")
if self._run_cr is not None: if self._run_cr is not None:
self._run_cr.kill() self._run_cr.cancel()
self._run_cr = None self._run_cr = None
self.active = False self.active = False
@@ -347,7 +347,7 @@ class RgmiiSink(Reset):
if state: if state:
self.log.info("Reset asserted") self.log.info("Reset asserted")
if self._run_cr is not None: if self._run_cr is not None:
self._run_cr.kill() self._run_cr.cancel()
self._run_cr = None self._run_cr = None
self.active = False self.active = False

View File

@@ -1 +1 @@
__version__ = "0.1.23" __version__ = "0.1.24"