mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
flow: generic parameter passing to Actor from sequential/pipelined
This commit is contained in:
parent
a1fc86af8f
commit
1c0f636c8d
1 changed files with 4 additions and 4 deletions
|
@ -90,10 +90,10 @@ class CombinatorialActor(BinaryActor):
|
|||
return Fragment([stb_o.eq(stb_i), ack_o.eq(ack_i), self.busy.eq(0)])
|
||||
|
||||
class SequentialActor(BinaryActor):
|
||||
def __init__(self, delay, *endpoint_descriptions, endpoints=None):
|
||||
def __init__(self, delay, *endpoint_descriptions, **misc):
|
||||
self.delay = delay
|
||||
self.trigger = Signal()
|
||||
BinaryActor.__init__(*endpoint_descriptions, endpoints=endpoints)
|
||||
BinaryActor.__init__(*endpoint_descriptions, **misc)
|
||||
|
||||
def get_binary_control_fragment(self, stb_i, ack_o, stb_o, ack_i):
|
||||
ready = Signal()
|
||||
|
@ -122,10 +122,10 @@ class SequentialActor(BinaryActor):
|
|||
return Fragment(comb, sync)
|
||||
|
||||
class PipelinedActor(BinaryActor):
|
||||
def __init__(self, latency, *endpoint_descriptions, endpoints=None):
|
||||
def __init__(self, latency, *endpoint_descriptions, **misc):
|
||||
self.latency = latency
|
||||
self.pipe_ce = Signal()
|
||||
BinaryActor.__init__(*endpoint_descriptions, endpoints=endpoints)
|
||||
BinaryActor.__init__(*endpoint_descriptions, **misc)
|
||||
|
||||
def get_binary_control_fragment(self, stb_i, ack_o, stb_o, ack_i):
|
||||
valid = Signal(BV(self.latency))
|
||||
|
|
Loading…
Reference in a new issue