mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
mila: add input pipe to ease timing
This commit is contained in:
parent
31e142fd88
commit
b94cba2d4b
1 changed files with 4 additions and 2 deletions
|
@ -20,16 +20,18 @@ class MiLa(Module, AutoCSR):
|
||||||
self.submodules.trigger = trigger
|
self.submodules.trigger = trigger
|
||||||
self.submodules.recorder = recorder
|
self.submodules.recorder = recorder
|
||||||
|
|
||||||
|
sink_d = rec_dat(width)
|
||||||
|
self.sync += sink_d.eq(self.sink)
|
||||||
|
|
||||||
self.comb += [
|
self.comb += [
|
||||||
self.sink.connect(trigger.sink),
|
sink_d.connect(trigger.sink),
|
||||||
trigger.source.connect(recorder.trig_sink)
|
trigger.source.connect(recorder.trig_sink)
|
||||||
]
|
]
|
||||||
|
|
||||||
recorder_dat_source = self.sink
|
recorder_dat_source = self.sink
|
||||||
if with_rle:
|
if with_rle:
|
||||||
self.submodules.rle = RunLengthEncoder(width)
|
self.submodules.rle = RunLengthEncoder(width)
|
||||||
self.comb += self.sink.connect(self.rle.sink)
|
self.comb += sink_d.connect(self.rle.sink)
|
||||||
recorder_dat_source = self.rle.source
|
recorder_dat_source = self.rle.source
|
||||||
self.comb += recorder_dat_source.connect(recorder.dat_sink)
|
self.comb += recorder_dat_source.connect(recorder.dat_sink)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue