From 1c0f636c8d5b20de23ea2f7b60f988cabc3e80f0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 7 Jun 2012 18:24:33 +0200 Subject: [PATCH] flow: generic parameter passing to Actor from sequential/pipelined --- migen/flow/actor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)) -- 2.30.2