litex-boards/litex_boards/platforms/adi_plutosdr.py

34 lines
1.1 KiB
Python
Raw Normal View History

2022-04-14 06:13:03 -04:00
#
# This file is part of LiteX-Boards.
#
# Copyright (c) 2022 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.generic_platform import *
from litex.build.xilinx import XilinxPlatform, VivadoProgrammer
# IOs ----------------------------------------------------------------------------------------------
_io = [
# GPIOs
("gpio", 0, Pins("K13"), IOStandard("LVCMOS18")),
("gpio", 1, Pins("M12"), IOStandard("LVCMOS18")),
("gpio", 2, Pins("R10"), IOStandard("LVCMOS18")),
]
# Connectors ---------------------------------------------------------------------------------------
_connectors = []
# Platform -----------------------------------------------------------------------------------------
class Platform(XilinxPlatform):
def __init__(self, toolchain="vivado"):
XilinxPlatform.__init__(self, "xc7z010clg225-1", _io, _connectors, toolchain=toolchain)
def create_programmer(self):
return VivadoProgrammer()
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)