From d9595a317e65faedd1a5b23c2aa0d711365edd62 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 6 Jul 2020 17:49:05 +0200 Subject: [PATCH] targets/orangecrab: use user_btn as rst_n. --- litex_boards/targets/orangecrab.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litex_boards/targets/orangecrab.py b/litex_boards/targets/orangecrab.py index 73c7290..7a5d896 100755 --- a/litex_boards/targets/orangecrab.py +++ b/litex_boards/targets/orangecrab.py @@ -41,6 +41,7 @@ class _CRG(Module): # Clk / Rst clk48 = platform.request("clk48") + rst_n = platform.request("usr_btn") # Power on reset por_count = Signal(16, reset=2**16-1) @@ -70,9 +71,9 @@ class _CRG(Module): i_CLKI = self.cd_sys2x.clk, i_RST = self.reset, o_CDIVX = self.cd_sys.clk), - AsyncResetSynchronizer(self.cd_init, ~por_done | ~pll.locked), - AsyncResetSynchronizer(self.cd_sys, ~por_done | ~pll.locked | self.reset), - AsyncResetSynchronizer(self.cd_sys2x, ~por_done | ~pll.locked | self.reset), + AsyncResetSynchronizer(self.cd_init, ~por_done | ~pll.locked | ~rst_n), + AsyncResetSynchronizer(self.cd_sys, ~por_done | ~pll.locked | ~rst_n | self.reset), + AsyncResetSynchronizer(self.cd_sys2x, ~por_done | ~pll.locked | ~rst_n | self.reset), ] # USB PLL