Fix pause handling
This commit is contained in:
@@ -146,8 +146,7 @@ class StreamSource(object):
|
||||
await RisingEdge(self.clock)
|
||||
|
||||
if (ready_sample and valid_sample) or (not valid_sample):
|
||||
if self.drive_obj:
|
||||
if not self.pause:
|
||||
if self.drive_obj and not self.pause:
|
||||
self.bus.drive(self.drive_obj)
|
||||
self.drive_obj = None
|
||||
self.drive_sync.set()
|
||||
@@ -157,7 +156,7 @@ class StreamSource(object):
|
||||
else:
|
||||
if self.valid is not None:
|
||||
self.valid <= 0
|
||||
self.active = False
|
||||
self.active = bool(self.drive_obj)
|
||||
|
||||
async def _run(self):
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user