From 19f58dd9715bbac9ee14b5f344fbd2ed6253b094 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Sep 2019 11:02:14 +0200 Subject: [PATCH] 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 --- litex/soc/interconnect/wishbone.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.30.2