From: Sebastien Bourdeauducq Date: Tue, 18 Dec 2012 13:55:58 +0000 (+0100) Subject: Do not use super() X-Git-Tag: 24jan2021_ls180~3062 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51f4f920a24d2adb2db2d442fc01ae8325be5c5b;p=litex.git Do not use super() --- diff --git a/milkymist/asmicon/bankmachine.py b/milkymist/asmicon/bankmachine.py index 8b174081..de472919 100644 --- a/milkymist/asmicon/bankmachine.py +++ b/milkymist/asmicon/bankmachine.py @@ -79,7 +79,7 @@ class _SimpleSelector(_Selector): (slot.state == SLOT_PENDING) )) - return Fragment(comb) + super().get_fragment() + return Fragment(comb) + _Selector.get_fragment(self) class _FullSelector(_Selector): def get_fragment(self): @@ -149,7 +149,7 @@ class _FullSelector(_Selector): select_stmt = If(has_mature, *best_mature).Else(select_stmt) comb.append(select_stmt) - return Fragment(comb, sync) + super().get_fragment() + return Fragment(comb, sync) + _Selector.get_fragment(self) class _Buffer: def __init__(self, source): diff --git a/milkymist/framebuffer/__init__.py b/milkymist/framebuffer/__init__.py index d5373b26..d0dea5fa 100644 --- a/milkymist/framebuffer/__init__.py +++ b/milkymist/framebuffer/__init__.py @@ -44,11 +44,11 @@ class _FrameInitiator(spi.SingleGenerator): ("base", asmi_bits, 0, alignment_bits), ("length", length_bits, 640*480*4, alignment_bits) ] - super().__init__(layout, spi.MODE_CONTINUOUS) + spi.SingleGenerator.__init__(self, layout, spi.MODE_CONTINUOUS) class VTG(Actor): def __init__(self): - super().__init__( + Actor.__init__(self, ("timing", Sink, [ ("hres", _hbits), ("hsync_start", _hbits), @@ -115,7 +115,7 @@ class VTG(Actor): class FIFO(Actor): def __init__(self): - super().__init__(("dac", Sink, _dac_layout)) + Actor.__init__(self, ("dac", Sink, _dac_layout)) self.vga_hsync_n = Signal() self.vga_vsync_n = Signal()