mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-20 09:52:57 +00:00
targets/orangecrab: make usr_btn optional to fix compilation with revision 0.1.
This commit is contained in:
parent
ae5494d7b6
commit
0a7443d273
1 changed files with 4 additions and 2 deletions
|
|
@ -39,7 +39,8 @@ class _CRG(Module):
|
||||||
|
|
||||||
# Clk / Rst
|
# Clk / Rst
|
||||||
clk48 = platform.request("clk48")
|
clk48 = platform.request("clk48")
|
||||||
rst_n = platform.request("usr_btn")
|
rst_n = platform.request("usr_btn", loose=True)
|
||||||
|
if rst_n is None: rst_n = 1
|
||||||
|
|
||||||
# Power on reset
|
# Power on reset
|
||||||
por_count = Signal(16, reset=2**16-1)
|
por_count = Signal(16, reset=2**16-1)
|
||||||
|
|
@ -89,7 +90,8 @@ class _CRGSDRAM(Module):
|
||||||
|
|
||||||
# Clk / Rst
|
# Clk / Rst
|
||||||
clk48 = platform.request("clk48")
|
clk48 = platform.request("clk48")
|
||||||
rst_n = platform.request("usr_btn")
|
rst_n = platform.request("usr_btn", loose=True)
|
||||||
|
if rst_n is None: rst_n = 1
|
||||||
|
|
||||||
# Power on reset
|
# Power on reset
|
||||||
por_count = Signal(16, reset=2**16-1)
|
por_count = Signal(16, reset=2**16-1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue