diff --git a/misoclib/tools/litescope/frontend/wishbone.py b/misoclib/tools/litescope/frontend/wishbone.py index 7937498f5..e7e006601 100644 --- a/misoclib/tools/litescope/frontend/wishbone.py +++ b/misoclib/tools/litescope/frontend/wishbone.py @@ -139,3 +139,11 @@ class LiteScopeWishboneBridge(Module): ) ) ) + + if phy.sink.description.packetized: + self.comb += [ + phy.sink.sop.eq((byte_counter.value == 0) & (word_counter.value == 0)), + phy.sink.eop.eq((byte_counter.value == 3) & (word_counter.value == (length-1))) + ] + if hasattr(phy.sink, "length"): + self.comb += phy.sink.length.eq(4*length)