mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-19 09:50:49 +00:00
xilinx_zcu102: Review/Cleanup for consistency with others boards.
Also remove INTERNAL_VREF constraints that are not yet useful (required for DRAM).
This commit is contained in:
parent
8003dcdd02
commit
0745162a29
2 changed files with 15 additions and 21 deletions
|
|
@ -8,7 +8,7 @@ from litex.build.generic_platform import *
|
|||
from litex.build.xilinx import XilinxPlatform, VivadoProgrammer
|
||||
|
||||
|
||||
# IOs ------------------------------------
|
||||
# IOs ----------------------------------------------------------------------------------------------
|
||||
|
||||
_io = [
|
||||
# Clk / Rst
|
||||
|
|
@ -28,9 +28,9 @@ _io = [
|
|||
("user_led", 2, Pins("AE13"), IOStandard("LVCMOS33")),
|
||||
("user_led", 3, Pins("AJ14"), IOStandard("LVCMOS33")),
|
||||
("user_led", 4, Pins("AJ15"), IOStandard("LVCMOS33")),
|
||||
("user_led", 5, Pins("AH13"), IOStandard("LVCMOS33"))
|
||||
("user_led", 6, Pins("AH14"), IOStandard("LVCMOS33"))
|
||||
("user_led", 7, Pins("AL12"), IOStandard("LVCMOS33"))
|
||||
("user_led", 5, Pins("AH13"), IOStandard("LVCMOS33")),
|
||||
("user_led", 6, Pins("AH14"), IOStandard("LVCMOS33")),
|
||||
("user_led", 7, Pins("AL12"), IOStandard("LVCMOS33")),
|
||||
|
||||
# Buttons
|
||||
("user_btn", 0, Pins("AG15"), IOStandard("LVCMOS33")),
|
||||
|
|
@ -54,8 +54,8 @@ _io = [
|
|||
("serial", 0,
|
||||
Subsignal("cts", Pins("E12")),
|
||||
Subsignal("rts", Pins("D12")),
|
||||
Subsignal("tx", Pins("E13")),
|
||||
Subsignal("rx", Pins("F13")),
|
||||
Subsignal("tx", Pins("E13")),
|
||||
Subsignal("rx", Pins("F13")),
|
||||
IOStandard("LVCMOS18")
|
||||
),
|
||||
|
||||
|
|
@ -83,6 +83,3 @@ class Platform(XilinxPlatform):
|
|||
XilinxPlatform.do_finalize(self, fragment)
|
||||
self.add_period_constraint(self.lookup_request("clk125", loose=True), 1e9/125e6)
|
||||
self.add_period_constraint(self.lookup_request("clk300", loose=True), 1e9/300e6)
|
||||
self.add_platform_command("set_property INTERNAL_VREF 0.84 [get_iobanks 64]")
|
||||
self.add_platform_command("set_property INTERNAL_VREF 0.84 [get_iobanks 65]")
|
||||
self.add_platform_command("set_property INTERNAL_VREF 0.84 [get_iobanks 66]")
|
||||
21
litex_boards/targets/xilinx_zcu102.py
Normal file → Executable file
21
litex_boards/targets/xilinx_zcu102.py
Normal file → Executable file
|
|
@ -12,7 +12,7 @@ import importlib
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex_boards.platforms import xilinx_zcu102 as zcu102
|
||||
from litex_boards.platforms import zcu102
|
||||
|
||||
from litex.build.io import CRG
|
||||
|
||||
|
|
@ -30,27 +30,24 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# SoCCore ----------------------------------------------------------------------------------
|
||||
SoCCore.__init__(self, platform, sys_clk_freq,
|
||||
ident="LiteX SoC on ZCU102",
|
||||
**kwargs)
|
||||
ident="LiteX SoC on ZCU102",
|
||||
**kwargs)
|
||||
|
||||
# CRG --------------------------------------------------------------------------------------
|
||||
self.submodules.crg = CRG(sys_clk_freq)
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
try:
|
||||
if with_led_chaser:
|
||||
self.submodules.leds = LedChaser(
|
||||
pads=platform.request_all("user_led"),
|
||||
sys_clk_freq=sys_clk_freq)
|
||||
except:
|
||||
pass
|
||||
|
||||
if with_led_chaser:
|
||||
self.submodules.leds = LedChaser(
|
||||
pads = platform.request_all("user_led"),
|
||||
sys_clk_freq = sys_clk_freq
|
||||
)
|
||||
|
||||
# Build --------------------------------------------------------------------------------------------
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC on ZCU102")
|
||||
parser.add_argument("--build", action="store_true", help="Build bitstream.")
|
||||
parser.add_argument("--load", action="store_true", help="Load bitstream.")
|
||||
parser.add_argument("--load", action="store_true", help="Load bitstream.")
|
||||
parser.add_argument("--sys-clk-freq", default=125e6, help="System clock generator.")
|
||||
builder_args(parser)
|
||||
soc_core_args(parser)
|
||||
|
|
|
|||
Loading…
Reference in a new issue