bench/targets: simplify BIST integration using new add_sdram with_bist parameter.
This commit is contained in:
parent
51b8eb1f82
commit
5cfdf77654
|
@ -84,16 +84,10 @@ class BenchSoC(SoCCore):
|
|||
self.add_sdram("sdram",
|
||||
phy = self.ddrphy,
|
||||
module = MT41K128M16(sys_clk_freq, "1:4"),
|
||||
origin = self.mem_map["main_ram"]
|
||||
origin = self.mem_map["main_ram"],
|
||||
with_bist = with_bist,
|
||||
)
|
||||
|
||||
# BIST -------------------------------------------------------------------------------------
|
||||
from litedram.frontend.bist import LiteDRAMBISTGenerator, LiteDRAMBISTChecker
|
||||
self.submodules.sdram_generator = LiteDRAMBISTGenerator(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_generator")
|
||||
self.submodules.sdram_checker = LiteDRAMBISTChecker(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_checker")
|
||||
|
||||
# UARTBone ---------------------------------------------------------------------------------
|
||||
if uart != "serial":
|
||||
self.add_uartbone(name="serial", clk_freq=100e6, baudrate=115200, cd="uart")
|
||||
|
|
|
@ -82,16 +82,10 @@ class BenchSoC(SoCCore):
|
|||
self.add_sdram("sdram",
|
||||
phy = self.ddrphy,
|
||||
module = MT41J256M16(sys_clk_freq, "1:4"),
|
||||
origin = self.mem_map["main_ram"]
|
||||
origin = self.mem_map["main_ram"],
|
||||
with_bist = with_bist,
|
||||
)
|
||||
|
||||
# BIST -------------------------------------------------------------------------------------
|
||||
from litedram.frontend.bist import LiteDRAMBISTGenerator, LiteDRAMBISTChecker
|
||||
self.submodules.sdram_generator = LiteDRAMBISTGenerator(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_generator")
|
||||
self.submodules.sdram_checker = LiteDRAMBISTChecker(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_checker")
|
||||
|
||||
# UARTBone ---------------------------------------------------------------------------------
|
||||
if uart != "serial":
|
||||
self.add_uartbone(name="serial", clk_freq=100e6, baudrate=115200, cd="uart")
|
||||
|
|
|
@ -82,16 +82,10 @@ class BenchSoC(SoCCore):
|
|||
self.add_sdram("sdram",
|
||||
phy = self.ddrphy,
|
||||
module = MT8JTF12864(sys_clk_freq, "1:4"),
|
||||
origin = self.mem_map["main_ram"]
|
||||
origin = self.mem_map["main_ram"],
|
||||
with_bist = with_bist,
|
||||
)
|
||||
|
||||
# BIST -------------------------------------------------------------------------------------
|
||||
from litedram.frontend.bist import LiteDRAMBISTGenerator, LiteDRAMBISTChecker
|
||||
self.submodules.sdram_generator = LiteDRAMBISTGenerator(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_generator")
|
||||
self.submodules.sdram_checker = LiteDRAMBISTChecker(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_checker")
|
||||
|
||||
# UARTBone ---------------------------------------------------------------------------------
|
||||
if uart != "serial":
|
||||
self.add_uartbone(name="serial", clk_freq=100e6, baudrate=115200, cd="uart")
|
||||
|
|
|
@ -96,15 +96,9 @@ class BenchSoC(SoCCore):
|
|||
module = EDY4016A(sys_clk_freq, "1:4"),
|
||||
origin = self.mem_map["main_ram"],
|
||||
size = 0x40000000,
|
||||
with_bist = with_bist,
|
||||
)
|
||||
|
||||
# BIST -------------------------------------------------------------------------------------
|
||||
from litedram.frontend.bist import LiteDRAMBISTGenerator, LiteDRAMBISTChecker
|
||||
self.submodules.sdram_generator = LiteDRAMBISTGenerator(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_generator")
|
||||
self.submodules.sdram_checker = LiteDRAMBISTChecker(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_checker")
|
||||
|
||||
# UARTBone ---------------------------------------------------------------------------------
|
||||
if uart != "serial":
|
||||
self.add_uartbone(name="serial", clk_freq=100e6, baudrate=115200, cd="uart")
|
||||
|
|
|
@ -92,17 +92,11 @@ class BenchSoC(SoCCore):
|
|||
module = MT40A512M8(sys_clk_freq, "1:4"),
|
||||
origin = self.mem_map["main_ram"],
|
||||
size = 0x40000000,
|
||||
with_bist = with_bist,
|
||||
)
|
||||
# Workadound for Vivado 2018.2 DRC, can be ignored and probably fixed on newer Vivado versions.
|
||||
platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks PDCN-2736]")
|
||||
|
||||
# BIST -------------------------------------------------------------------------------------
|
||||
from litedram.frontend.bist import LiteDRAMBISTGenerator, LiteDRAMBISTChecker
|
||||
self.submodules.sdram_generator = LiteDRAMBISTGenerator(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_generator")
|
||||
self.submodules.sdram_checker = LiteDRAMBISTChecker(self.sdram.crossbar.get_port())
|
||||
self.add_csr("sdram_checker")
|
||||
|
||||
# UARTBone ---------------------------------------------------------------------------------
|
||||
if uart != "serial":
|
||||
self.add_uartbone(name="serial", clk_freq=100e6, baudrate=115200, cd="uart")
|
||||
|
|
Loading…
Reference in New Issue