From: Sebastien Bourdeauducq Date: Thu, 7 Jun 2012 16:24:33 +0000 (+0200) Subject: flow: generic parameter passing to Actor from sequential/pipelined X-Git-Tag: 24jan2021_ls180~2099^2~941 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c0f636c8d5b20de23ea2f7b60f988cabc3e80f0;p=litex.git flow: generic parameter passing to Actor from sequential/pipelined --- diff --git a/migen/flow/actor.py b/migen/flow/actor.py index f2f6bf0e..04793606 100644 --- a/migen/flow/actor.py +++ b/migen/flow/actor.py @@ -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))