QMTech XC7K325T: use the buttons on the core board
This commit is contained in:
parent
72ea25512b
commit
82c0e191a7
|
@ -16,6 +16,10 @@ _io = [
|
||||||
# Clk / Rst
|
# Clk / Rst
|
||||||
("clk50", 0, Pins("F22"), IOStandard("LVCMOS33")),
|
("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,
|
# The core board does not have a USB serial on it,
|
||||||
# so you will have to attach an USB to serial adapter
|
# so you will have to attach an USB to serial adapter
|
||||||
# on these pins
|
# on these pins
|
||||||
|
|
|
@ -45,7 +45,7 @@ class _CRG(Module):
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
self.submodules.pll = pll = S7PLL(speedgrade=-1)
|
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)
|
self.comb += pll.reset.eq(~reset_button | self.rst)
|
||||||
|
|
||||||
pll.register_clkin(platform.request("clk50"), 50e6)
|
pll.register_clkin(platform.request("clk50"), 50e6)
|
||||||
|
|
Loading…
Reference in New Issue