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
This commit is contained in:
Florent Kermarrec 2019-09-09 11:02:14 +02:00
parent bd6ec63be4
commit 19f58dd971
1 changed files with 9 additions and 0 deletions

View File

@ -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): class UpConverter(Module):
"""UpConverter """UpConverter