Skip to content

Commit

Permalink
Merge pull request #242 from tcal-x/fix-basys3-rst
Browse files Browse the repository at this point in the history
Basys3: Invert reset button, so that the board is reset when btnc is pushed.
  • Loading branch information
enjoy-digital authored Jul 20, 2021
2 parents 8c8e163 + 5da2bde commit fbcecee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex_boards/targets/digilent_basys3.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, platform, sys_clk_freq):
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)
Expand Down

0 comments on commit fbcecee

Please sign in to comment.