targets: avoid direct use of mem_decoder.

This commit is contained in:
Florent Kermarrec 2020-02-11 21:59:42 +01:00
parent 4edf196911
commit c94360c2e0
3 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,6 @@ from migen import *
from litex_boards.platforms import ac701 from litex_boards.platforms import ac701
from litex.soc.cores.clock import * from litex.soc.cores.clock import *
from litex.soc.integration.soc_core import mem_decoder
from litex.soc.integration.soc_sdram import * from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import * from litex.soc.integration.builder import *

View File

@ -101,7 +101,7 @@ class BaseSoC(SoCSDRAM):
# HyperRam --------------------------------------------------------------------------------- # HyperRam ---------------------------------------------------------------------------------
self.submodules.hyperram = HyperRAM(platform.request("hyperram")) self.submodules.hyperram = HyperRAM(platform.request("hyperram"))
self.add_wb_slave(mem_decoder(self.mem_map["hyperram"]), self.hyperram.bus) self.add_wb_slave(self.mem_map["hyperram"], self.hyperram.bus)
self.add_memory_region("hyperram", self.mem_map["hyperram"], 8*1024*1024) self.add_memory_region("hyperram", self.mem_map["hyperram"], 8*1024*1024)
# SDR SDRAM -------------------------------------------------------------------------------- # SDR SDRAM --------------------------------------------------------------------------------

View File

@ -12,7 +12,6 @@ from litex_boards.platforms import de10lite
from litex.soc.integration.soc_sdram import * from litex.soc.integration.soc_sdram import *
from litex.soc.integration.builder import * from litex.soc.integration.builder import *
from litex.soc.integration.soc_core import mem_decoder
from litedram.modules import IS42S16320 from litedram.modules import IS42S16320
from litedram.phy import GENSDRPHY from litedram.phy import GENSDRPHY
@ -111,7 +110,7 @@ class VGASoC(BaseSoC):
# create VGA terminal # create VGA terminal
self.submodules.terminal = terminal = Terminal() self.submodules.terminal = terminal = Terminal()
self.add_wb_slave(mem_decoder(self.mem_map["terminal"]), self.terminal.bus) self.add_wb_slave(self.mem_map["terminal"], self.terminal.bus)
self.add_memory_region("terminal", self.mem_map["terminal"], 0x10000) self.add_memory_region("terminal", self.mem_map["terminal"], 0x10000)
# connect VGA pins # connect VGA pins