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:
parent
bd6ec63be4
commit
19f58dd971
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue