Unconditionally wait at least one delta cycle

This commit is contained in:
Alex Forencich 2019-07-16 00:37:20 -07:00
parent 583849e0db
commit 021c91fcc7
8 changed files with 8 additions and 0 deletions

View File

@ -263,6 +263,7 @@ class ARPFrameSink():
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -375,6 +375,7 @@ class BaseRSerdesSink(object):
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -241,6 +241,7 @@ class EthFrameSink():
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -193,6 +193,7 @@ class GMIISink(object):
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -383,6 +383,7 @@ class IPFrameSink():
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -201,6 +201,7 @@ class MIISink(object):
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -476,6 +476,7 @@ class UDPFrameSink():
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout:

View File

@ -258,6 +258,7 @@ class XGMIISink(object):
return not self.queue
def wait(self, timeout=0):
yield delay(0)
if self.queue:
return
if timeout: