diff --git a/cocotbext/eth/gmii.py b/cocotbext/eth/gmii.py index 0b83338..03983eb 100644 --- a/cocotbext/eth/gmii.py +++ b/cocotbext/eth/gmii.py @@ -222,6 +222,9 @@ class GmiiSource(Reset): if self.er is not None: self.er <= 0 self.dv <= 0 + + if self.queue.empty(): + self.idle_event.set() else: self.log.info("Reset de-asserted") if self._run_cr is None: diff --git a/cocotbext/eth/mii.py b/cocotbext/eth/mii.py index 6467e21..64088a4 100644 --- a/cocotbext/eth/mii.py +++ b/cocotbext/eth/mii.py @@ -123,6 +123,9 @@ class MiiSource(Reset): if self.er is not None: self.er <= 0 self.dv <= 0 + + if self.queue.empty(): + self.idle_event.set() else: self.log.info("Reset de-asserted") if self._run_cr is None: diff --git a/cocotbext/eth/rgmii.py b/cocotbext/eth/rgmii.py index 807e51f..a40e476 100644 --- a/cocotbext/eth/rgmii.py +++ b/cocotbext/eth/rgmii.py @@ -121,6 +121,9 @@ class RgmiiSource(Reset): self.active = False self.data <= 0 self.ctrl <= 0 + + if self.queue.empty(): + self.idle_event.set() else: self.log.info("Reset de-asserted") if self._run_cr is None: diff --git a/cocotbext/eth/xgmii.py b/cocotbext/eth/xgmii.py index 8293c8d..bc19293 100644 --- a/cocotbext/eth/xgmii.py +++ b/cocotbext/eth/xgmii.py @@ -226,6 +226,9 @@ class XgmiiSource(Reset): self.active = False self.data <= 0 self.ctrl <= 0 + + if self.queue.empty(): + self.idle_event.set() else: self.log.info("Reset de-asserted") if self._run_cr is None: