We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c058a5 commit 200791cCopy full SHA for 200791c
misoclib/com/uart/__init__.py
@@ -26,5 +26,6 @@ def __init__(self, phy):
26
]
27
self.comb += [
28
self.ev.tx.trigger.eq(phy.sink.stb & phy.sink.ack),
29
- 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),
30
+ phy.source.ack.eq(~self.ev.rx.pending)
31
misoclib/com/uart/phy/sim.py
@@ -12,5 +12,6 @@ def __init__(self, pads):
12
self.sink.ack.eq(pads.source_ack),
13
14
self.source.stb.eq(pads.sink_stb),
15
- self.source.data.eq(pads.sink_data)
+ self.source.data.eq(pads.sink_data),
16
+ pads.sink_ack.eq(self.source.ack)
17
0 commit comments