From 5da2bdefb708cda0f0964514514cb11fa74c8da8 Mon Sep 17 00:00:00 2001 From: Tim Callahan Date: Fri, 16 Jul 2021 13:08:18 -0700 Subject: [PATCH] Invert reset button, so that board is reset when btn is pushed. Signed-off-by: Tim Callahan --- litex_boards/targets/digilent_basys3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex_boards/targets/digilent_basys3.py b/litex_boards/targets/digilent_basys3.py index 97b6fca..542fd65 100755 --- a/litex_boards/targets/digilent_basys3.py +++ b/litex_boards/targets/digilent_basys3.py @@ -29,7 +29,7 @@ class _CRG(Module): self.clock_domains.cd_vga = ClockDomain(reset_less=True) self.submodules.pll = pll = S7MMCM(speedgrade=-1) - self.comb += pll.reset.eq(~platform.request("user_btnc") | self.rst) + self.comb += pll.reset.eq(platform.request("user_btnc") | self.rst) pll.register_clkin(platform.request("clk100"), 100e6) pll.create_clkout(self.cd_sys, sys_clk_freq)