From: Florent Kermarrec Date: Sat, 24 May 2014 07:23:16 +0000 (+0200) Subject: mila: add input pipe to ease timing X-Git-Tag: 24jan2021_ls180~2575^2~73 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b94cba2d4b9bce6dcbab09b78b15a339ab85912f;p=litex.git mila: add input pipe to ease timing --- diff --git a/miscope/mila.py b/miscope/mila.py index b19837cb..457b317a 100644 --- a/miscope/mila.py +++ b/miscope/mila.py @@ -20,16 +20,18 @@ class MiLa(Module, AutoCSR): self.submodules.trigger = trigger self.submodules.recorder = recorder + sink_d = rec_dat(width) + self.sync += sink_d.eq(self.sink) self.comb += [ - self.sink.connect(trigger.sink), + sink_d.connect(trigger.sink), trigger.source.connect(recorder.trig_sink) ] recorder_dat_source = self.sink if with_rle: 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 self.comb += recorder_dat_source.connect(recorder.dat_sink)