From dcedc4e6a5c3e19b2cb231e4e478c31413f148b6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 1 Nov 2014 21:48:02 +0800 Subject: [PATCH] actorlib/structuring/Pipeline: make 'busy' a signal --- migen/actorlib/structuring.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/migen/actorlib/structuring.py b/migen/actorlib/structuring.py index 24199aca5..ce465578b 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)