Merge pull request #242 from tcal-x/fix-basys3-rst

Basys3: Invert reset button, so that the board is reset when btnc is pushed.
This commit is contained in:
enjoy-digital 2021-07-20 19:47:53 +02:00 committed by GitHub
commit fbcecee1f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)