From: Sebastien Bourdeauducq Date: Sat, 1 Nov 2014 13:48:02 +0000 (+0800) Subject: actorlib/structuring/Pipeline: make 'busy' a signal X-Git-Tag: 24jan2021_ls180~2099^2~270 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcedc4e6a5c3e19b2cb231e4e478c31413f148b6;p=litex.git actorlib/structuring/Pipeline: make 'busy' a signal --- diff --git a/migen/actorlib/structuring.py b/migen/actorlib/structuring.py index 24199aca..ce465578 100644 --- a/migen/actorlib/structuring.py +++ b/migen/actorlib/structuring.py @@ -199,14 +199,13 @@ class Converter(Module): class Pipeline(Module): def __init__(self, *modules): + self.busy = Signal() n = len(modules) m = modules[0] # expose sink of first module # if available if hasattr(m, "sink"): self.sink = m.sink - # use of busy is encouraged - # but not mandatory if hasattr(m, "busy"): busy = m.busy else: @@ -224,4 +223,4 @@ class Pipeline(Module): # if available if hasattr(m, "source"): self.source = m.source - self.busy = busy + self.comb += self.busy.eq(busy)