platforms: Make sure all platforms have a default Clk. (To be able to run simple target).
This commit is contained in:
parent
4e2b596ab3
commit
3e8b6677e9
|
@ -61,6 +61,9 @@ _io = [
|
|||
# Platform -----------------------------------------------------------------------------------------
|
||||
|
||||
class Platform(XilinxPlatform):
|
||||
default_clk_name = "debug" # FIXME.
|
||||
default_clk_period = 1e9/100e6 # FIXME.
|
||||
|
||||
def __init__(self):
|
||||
XilinxPlatform.__init__(self, "xc7k70t-fbg676-1", _io, toolchain="vivado")
|
||||
|
||||
|
|
|
@ -11,6 +11,9 @@ from litex.build.xilinx import XilinxPlatform, VivadoProgrammer
|
|||
# IOs ----------------------------------------------------------------------------------------------
|
||||
|
||||
_io = [ # Documented by https://github.com/360nosc0pe project.
|
||||
# Clk.
|
||||
("clk25", 0, Pins("C17"), IOStandard("LVCMOS33")), # eth_clocks:rx
|
||||
|
||||
# Leds
|
||||
("user_led", 0, Pins("G16"), IOStandard("LVCMOS33")),
|
||||
|
||||
|
@ -106,6 +109,9 @@ _connectors = []
|
|||
# Platform -----------------------------------------------------------------------------------------
|
||||
|
||||
class Platform(XilinxPlatform):
|
||||
default_clk_name = "clk25"
|
||||
default_clk_period = 1e9/25e6
|
||||
|
||||
def __init__(self):
|
||||
XilinxPlatform.__init__(self, "xc7z020-clg484-1", _io, _connectors, toolchain="vivado")
|
||||
self.add_platform_command("set_property INTERNAL_VREF 0.750 [get_iobanks 33]")
|
||||
|
|
Loading…
Reference in New Issue