litex-boards/litex_boards/platforms/quicklogic_quickfeather.py
Gwenhael Goavec-Merou 648d38da7e quicklogic_quickfeather: add button and GPIOIn
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
2021-11-12 13:21:00 +01:00

27 lines
887 B
Python

#
# This file is part of LiteX-Boards.
#
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex.build.generic_platform import *
from litex.build.quicklogic import QuickLogicPlatform
# IOs ----------------------------------------------------------------------------------------------
_io = [
# Leds
("user_led", 0, Pins("38"), IOStandard("LVCMOS33")), # blue
("user_led", 1, Pins("39"), IOStandard("LVCMOS33")), # green
("user_led", 2, Pins("34"), IOStandard("LVCMOS33")), # red
# Button
("user_btn_n", 0, Pins("62"), IOStandard("LVCMOS33")),
]
# Platform -----------------------------------------------------------------------------------------
class Platform(QuickLogicPlatform):
def __init__(self):
QuickLogicPlatform.__init__(self, "ql-eos-s3", _io, toolchain="symbiflow")