mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
uart: generate ack for rx (serialboot OK with sim)
This commit is contained in:
parent
7c058a52c9
commit
200791c81d
2 changed files with 4 additions and 2 deletions
|
@ -26,5 +26,6 @@ class UART(Module, AutoCSR):
|
|||
]
|
||||
self.comb += [
|
||||
self.ev.tx.trigger.eq(phy.sink.stb & phy.sink.ack),
|
||||
self.ev.rx.trigger.eq(phy.source.stb) #phy.source.ack supposed to be always 1
|
||||
self.ev.rx.trigger.eq(phy.source.stb & phy.source.ack),
|
||||
phy.source.ack.eq(~self.ev.rx.pending)
|
||||
]
|
||||
|
|
|
@ -12,5 +12,6 @@ class UARTPHYSim(Module):
|
|||
self.sink.ack.eq(pads.source_ack),
|
||||
|
||||
self.source.stb.eq(pads.sink_stb),
|
||||
self.source.data.eq(pads.sink_data)
|
||||
self.source.data.eq(pads.sink_data),
|
||||
pads.sink_ack.eq(self.source.ack)
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue