bench: Update with recent changes.
This commit is contained in:
parent
e3c2ab0757
commit
df5f555842
|
@ -74,7 +74,6 @@ class BenchSoC(SoCCore):
|
||||||
ident_version = True,
|
ident_version = True,
|
||||||
integrated_rom_size = 0x10000,
|
integrated_rom_size = 0x10000,
|
||||||
integrated_rom_mode = "rw",
|
integrated_rom_mode = "rw",
|
||||||
csr_data_width = 32,
|
|
||||||
uart_name = uart)
|
uart_name = uart)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
@ -91,8 +90,7 @@ class BenchSoC(SoCCore):
|
||||||
phy = self.ddrphy,
|
phy = self.ddrphy,
|
||||||
module = MT41K128M16(sys_clk_freq, "1:4"),
|
module = MT41K128M16(sys_clk_freq, "1:4"),
|
||||||
origin = self.mem_map["main_ram"],
|
origin = self.mem_map["main_ram"],
|
||||||
with_bist = with_bist,
|
with_bist = with_bist)
|
||||||
)
|
|
||||||
|
|
||||||
# UARTBone ---------------------------------------------------------------------------------
|
# UARTBone ---------------------------------------------------------------------------------
|
||||||
if uart != "serial":
|
if uart != "serial":
|
||||||
|
|
|
@ -68,7 +68,6 @@ class BenchSoC(SoCCore):
|
||||||
ident_version = True,
|
ident_version = True,
|
||||||
integrated_rom_size = 0x10000,
|
integrated_rom_size = 0x10000,
|
||||||
integrated_rom_mode = "rw",
|
integrated_rom_mode = "rw",
|
||||||
csr_data_width = 32,
|
|
||||||
uart_name = uart)
|
uart_name = uart)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
@ -85,8 +84,7 @@ class BenchSoC(SoCCore):
|
||||||
phy = self.ddrphy,
|
phy = self.ddrphy,
|
||||||
module = MT41J256M16(sys_clk_freq, "1:4"),
|
module = MT41J256M16(sys_clk_freq, "1:4"),
|
||||||
origin = self.mem_map["main_ram"],
|
origin = self.mem_map["main_ram"],
|
||||||
with_bist = with_bist,
|
with_bist = with_bist)
|
||||||
)
|
|
||||||
|
|
||||||
# UARTBone ---------------------------------------------------------------------------------
|
# UARTBone ---------------------------------------------------------------------------------
|
||||||
if uart != "serial":
|
if uart != "serial":
|
||||||
|
|
|
@ -68,7 +68,6 @@ class BenchSoC(SoCCore):
|
||||||
ident_version = True,
|
ident_version = True,
|
||||||
integrated_rom_size = 0x10000,
|
integrated_rom_size = 0x10000,
|
||||||
integrated_rom_mode = "rw",
|
integrated_rom_mode = "rw",
|
||||||
csr_data_width = 32,
|
|
||||||
uart_name = uart)
|
uart_name = uart)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
@ -85,8 +84,7 @@ class BenchSoC(SoCCore):
|
||||||
phy = self.ddrphy,
|
phy = self.ddrphy,
|
||||||
module = MT8JTF12864(sys_clk_freq, "1:4"),
|
module = MT8JTF12864(sys_clk_freq, "1:4"),
|
||||||
origin = self.mem_map["main_ram"],
|
origin = self.mem_map["main_ram"],
|
||||||
with_bist = with_bist,
|
with_bist = with_bist)
|
||||||
)
|
|
||||||
|
|
||||||
# UARTBone ---------------------------------------------------------------------------------
|
# UARTBone ---------------------------------------------------------------------------------
|
||||||
if uart != "serial":
|
if uart != "serial":
|
||||||
|
|
|
@ -43,7 +43,7 @@ class _CRG(Module, AutoCSR):
|
||||||
self.comb += main_pll.reset.eq(platform.request("cpu_reset"))
|
self.comb += main_pll.reset.eq(platform.request("cpu_reset"))
|
||||||
main_pll.register_clkin(platform.request("clk125"), 125e6)
|
main_pll.register_clkin(platform.request("clk125"), 125e6)
|
||||||
main_pll.create_clkout(self.cd_sys_pll, sys_clk_freq)
|
main_pll.create_clkout(self.cd_sys_pll, sys_clk_freq)
|
||||||
main_pll.create_clkout(self.cd_idelay, 200e6, with_reset=False)
|
main_pll.create_clkout(self.cd_idelay, 200e6)
|
||||||
main_pll.create_clkout(self.cd_uart, 100e6)
|
main_pll.create_clkout(self.cd_uart, 100e6)
|
||||||
main_pll.create_clkout(self.cd_eth, 200e6)
|
main_pll.create_clkout(self.cd_eth, 200e6)
|
||||||
main_pll.expose_drp()
|
main_pll.expose_drp()
|
||||||
|
@ -65,7 +65,6 @@ class _CRG(Module, AutoCSR):
|
||||||
i_I = self.cd_pll4x.clk,
|
i_I = self.cd_pll4x.clk,
|
||||||
o_O = self.cd_sys4x.clk,
|
o_O = self.cd_sys4x.clk,
|
||||||
),
|
),
|
||||||
AsyncResetSynchronizer(self.cd_idelay, ~pll.locked),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
self.submodules.idelayctrl = USIDELAYCTRL(cd_ref=self.cd_idelay, cd_sys=self.cd_sys)
|
self.submodules.idelayctrl = USIDELAYCTRL(cd_ref=self.cd_idelay, cd_sys=self.cd_sys)
|
||||||
|
@ -87,7 +86,6 @@ class BenchSoC(SoCCore):
|
||||||
ident_version = True,
|
ident_version = True,
|
||||||
integrated_rom_size = 0x10000,
|
integrated_rom_size = 0x10000,
|
||||||
integrated_rom_mode = "rw",
|
integrated_rom_mode = "rw",
|
||||||
csr_data_width = 32,
|
|
||||||
uart_name = uart)
|
uart_name = uart)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
@ -105,8 +103,7 @@ class BenchSoC(SoCCore):
|
||||||
module = EDY4016A(sys_clk_freq, "1:4"),
|
module = EDY4016A(sys_clk_freq, "1:4"),
|
||||||
origin = self.mem_map["main_ram"],
|
origin = self.mem_map["main_ram"],
|
||||||
size = 0x40000000,
|
size = 0x40000000,
|
||||||
with_bist = with_bist,
|
with_bist = with_bist)
|
||||||
)
|
|
||||||
|
|
||||||
# UARTBone ---------------------------------------------------------------------------------
|
# UARTBone ---------------------------------------------------------------------------------
|
||||||
if uart != "serial":
|
if uart != "serial":
|
||||||
|
|
|
@ -40,7 +40,7 @@ class _CRG(Module, AutoCSR):
|
||||||
self.submodules.main_pll = main_pll = USPMMCM(speedgrade=-2)
|
self.submodules.main_pll = main_pll = USPMMCM(speedgrade=-2)
|
||||||
main_pll.register_clkin(platform.request("clk300", channel), 300e6)
|
main_pll.register_clkin(platform.request("clk300", channel), 300e6)
|
||||||
main_pll.create_clkout(self.cd_sys_pll, sys_clk_freq)
|
main_pll.create_clkout(self.cd_sys_pll, sys_clk_freq)
|
||||||
main_pll.create_clkout(self.cd_idelay, 500e6, with_reset=False)
|
main_pll.create_clkout(self.cd_idelay, 500e6)
|
||||||
main_pll.create_clkout(self.cd_uart, 100e6)
|
main_pll.create_clkout(self.cd_uart, 100e6)
|
||||||
main_pll.expose_drp()
|
main_pll.expose_drp()
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ class _CRG(Module, AutoCSR):
|
||||||
i_I = self.cd_pll4x.clk,
|
i_I = self.cd_pll4x.clk,
|
||||||
o_O = self.cd_sys4x.clk,
|
o_O = self.cd_sys4x.clk,
|
||||||
),
|
),
|
||||||
AsyncResetSynchronizer(self.cd_idelay, ~pll.locked),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
self.submodules.idelayctrl = USIDELAYCTRL(cd_ref=self.cd_idelay, cd_sys=self.cd_sys)
|
self.submodules.idelayctrl = USIDELAYCTRL(cd_ref=self.cd_idelay, cd_sys=self.cd_sys)
|
||||||
|
@ -83,7 +82,6 @@ class BenchSoC(SoCCore):
|
||||||
ident_version = True,
|
ident_version = True,
|
||||||
integrated_rom_size = 0x10000,
|
integrated_rom_size = 0x10000,
|
||||||
integrated_rom_mode = "rw",
|
integrated_rom_mode = "rw",
|
||||||
csr_data_width = 32,
|
|
||||||
uart_name = uart)
|
uart_name = uart)
|
||||||
|
|
||||||
# CRG --------------------------------------------------------------------------------------
|
# CRG --------------------------------------------------------------------------------------
|
||||||
|
@ -101,8 +99,7 @@ class BenchSoC(SoCCore):
|
||||||
module = MT40A512M8(sys_clk_freq, "1:4"),
|
module = MT40A512M8(sys_clk_freq, "1:4"),
|
||||||
origin = self.mem_map["main_ram"],
|
origin = self.mem_map["main_ram"],
|
||||||
size = 0x40000000,
|
size = 0x40000000,
|
||||||
with_bist = with_bist,
|
with_bist = with_bist)
|
||||||
)
|
|
||||||
# Workaround for Vivado 2018.2 DRC, can be ignored and probably fixed on newer Vivado versions.
|
# Workaround 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]")
|
platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks PDCN-2736]")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue