Skip to content

Commit

Permalink
interconnect/wishbone: Add linear burst support to DownConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldin committed Oct 7, 2023
1 parent 5380df3 commit 196b68e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion litex/soc/interconnect/wishbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,21 @@ def __init__(self, master, slave):
# Control Path.
self.comb += [
done.eq(count == (ratio - 1)),

Case(master.cti, {
# incrementing address burst cycle
CTI_BURST_INCREMENTING: slave.cti.eq(CTI_BURST_INCREMENTING),
# end current burst cycle
CTI_BURST_END: slave.cti.eq(Mux(done, CTI_BURST_END,
CTI_BURST_INCREMENTING)),
# unsupported burst cycle
"default": slave.cti.eq(CTI_BURST_NONE),
}),
# wrap conversion not supported
If(master.bte != 0, slave.cti.eq(CTI_BURST_NONE)),

If(master.stb & master.cyc,
skip.eq(slave.sel == 0),
skip.eq((slave.sel == 0) & (slave.cti == CTI_BURST_NONE)),
slave.cyc.eq(~skip),
slave.stb.eq(~skip),
slave.we.eq(master.we),
Expand Down

0 comments on commit 196b68e

Please sign in to comment.