Skip to content

Commit

Permalink
serwb/demo/icebreaker: Use new add_master's region capability.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Feb 13, 2024
1 parent b47b03f commit 3c6e13a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bench/serwb/demo/icebreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ def __init__(self, platform, with_analyzer=False):

# Add SerWB as Master to SoC.
# ---------------------------
from litex.soc.interconnect import wishbone
serwb_bus = wishbone.Interface(data_width=32, address_width=32)
self.comb += self.serwb_slave_core.bus.connect(serwb_bus)
self.comb += serwb_bus.adr.eq(self.serwb_slave_core.bus.adr & 0x00ff_ffff) # FIXME.
self.bus.add_master("serwb", serwb_bus) # FIXME: Add origin and size capability -> Would automatically filter addresses.
self.bus.add_master("serwb", self.serwb_slave_core.bus, SoCRegion(origin=0x00000000, size=0x10000000))

# Leds -------------------------------------------------------------------------------------
self.comb += [
Expand Down

0 comments on commit 3c6e13a

Please sign in to comment.