From: Florent Kermarrec Date: Mon, 25 Apr 2016 17:14:20 +0000 (+0200) Subject: soc/interconnect/wishbone: add FlipFlop (should be removed) X-Git-Tag: 24jan2021_ls180~1961 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6681bbb9c647157905585b7889b4339f5545634;p=litex.git soc/interconnect/wishbone: add FlipFlop (should be removed) --- diff --git a/litex/soc/interconnect/wishbone.py b/litex/soc/interconnect/wishbone.py index 48d002c4..73ba6e0b 100644 --- a/litex/soc/interconnect/wishbone.py +++ b/litex/soc/interconnect/wishbone.py @@ -10,6 +10,13 @@ from litex.gen.genlib.fsm import FSM, NextState from litex.soc.interconnect import csr # TODO: rewrite without FlipFlop and Counter +@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) _layout = [