From 72ea25512b983652a00e3ee0487369e9a9caeab2 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Tue, 27 Feb 2024 15:37:55 +0700 Subject: [PATCH 1/2] QMTech XC7K325T: remove wrong reset button assignment --- litex_boards/platforms/qmtech_xc7k325t.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/litex_boards/platforms/qmtech_xc7k325t.py b/litex_boards/platforms/qmtech_xc7k325t.py index afb0230..2024866 100644 --- a/litex_boards/platforms/qmtech_xc7k325t.py +++ b/litex_boards/platforms/qmtech_xc7k325t.py @@ -140,13 +140,11 @@ class Platform(XilinxPlatform): core_resources_daughterboard = [ ("onboard_led_1", 0, Pins("J26"), IOStandard("LVCMOS33")), ("onboard_led_2", 0, Pins("H26"), IOStandard("LVCMOS33")), - ("cpu_reset", 0, Pins("AD21"), IOStandard("LVCMOS33")), ] core_resources_standalone = [ ("user_led", 0, Pins("J26"), IOStandard("LVCMOS33")), ("user_led", 1, Pins("H26"), IOStandard("LVCMOS33")), - ("cpu_reset", 0, Pins("AD21"), IOStandard("LVCMOS33")), ] def __init__(self, toolchain="vivado", with_daughterboard=False): From 82c0e191a78fea2dfb50588fd9105571210aac2d Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Wed, 28 Feb 2024 04:40:17 +0700 Subject: [PATCH 2/2] QMTech XC7K325T: use the buttons on the core board --- litex_boards/platforms/qmtech_xc7k325t.py | 4 ++++ litex_boards/targets/qmtech_xc7k325t.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/litex_boards/platforms/qmtech_xc7k325t.py b/litex_boards/platforms/qmtech_xc7k325t.py index 2024866..4da3851 100644 --- a/litex_boards/platforms/qmtech_xc7k325t.py +++ b/litex_boards/platforms/qmtech_xc7k325t.py @@ -16,6 +16,10 @@ _io = [ # Clk / Rst ("clk50", 0, Pins("F22"), IOStandard("LVCMOS33")), + # Buttons + ("user_btn_n", 0, Pins("AF9"), IOStandard("LVCMOS33")), + ("user_btn_n", 1, Pins("AF10"), IOStandard("LVCMOS33")), + # The core board does not have a USB serial on it, # so you will have to attach an USB to serial adapter # on these pins diff --git a/litex_boards/targets/qmtech_xc7k325t.py b/litex_boards/targets/qmtech_xc7k325t.py index 7cd1683..ebe201f 100755 --- a/litex_boards/targets/qmtech_xc7k325t.py +++ b/litex_boards/targets/qmtech_xc7k325t.py @@ -45,7 +45,7 @@ class _CRG(Module): # # # self.submodules.pll = pll = S7PLL(speedgrade=-1) - reset_button = platform.request("cpu_reset") + reset_button = platform.request("user_btn_n", 0) self.comb += pll.reset.eq(~reset_button | self.rst) pll.register_clkin(platform.request("clk50"), 50e6)