From: Florent Kermarrec Date: Mon, 9 Sep 2019 09:02:14 +0000 (+0200) Subject: interconnect/wishbone: add FlipFlop to allow UpConverter to be used X-Git-Tag: 24jan2021_ls180~1021 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f58dd9715bbac9ee14b5f344fbd2ed6253b094;p=litex.git interconnect/wishbone: add FlipFlop to allow UpConverter to be used Note: a test should be added for Converter and DownConverter/UpConverter should be cleaned up --- diff --git a/litex/soc/interconnect/wishbone.py b/litex/soc/interconnect/wishbone.py index dc242f44..f76cdb4c 100644 --- a/litex/soc/interconnect/wishbone.py +++ b/litex/soc/interconnect/wishbone.py @@ -291,6 +291,15 @@ class DownConverter(Module): ) +@ResetInserter() +@CEInserter() +class FlipFlop(Module): + def __init__(self, *args, **kwargs): + self.d = Signal(*args, **kwargs) + self.q = Signal(*args, **kwargs) + self.sync += self.q.eq(self.d) + + class UpConverter(Module): """UpConverter