projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c3a92
)
actorlib/structuring/Pipeline: make 'busy' a signal
author
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 1 Nov 2014 13:48:02 +0000
(21:48 +0800)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 1 Nov 2014 13:48:02 +0000
(21:48 +0800)
migen/actorlib/structuring.py
patch
|
blob
|
history
diff --git
a/migen/actorlib/structuring.py
b/migen/actorlib/structuring.py
index 24199aca59c1b17fa42e33ac497cb78447b50afa..ce465578b068b0cf995172bfc44b26d3d8c3d528 100644
(file)
--- 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)