Skip to content

Commit

Permalink
colorlight_5a_75x: add LedChaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Nov 23, 2020
1 parent d18deef commit 03bb929
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions litex_boards/targets/colorlight_5a_75x.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from litex.soc.cores.clock import *
from litex.soc.integration.soc_core import *
from litex.soc.integration.builder import *
from litex.soc.cores.led import LedChaser

from litedram.modules import M12L16161A, M12L64322A
from litedram.phy import GENSDRPHY, HalfRateGENSDRPHY
Expand Down Expand Up @@ -171,6 +172,12 @@ def __init__(self, board, revision, sys_clk_freq=60e6, with_ethernet=False, with
if with_etherbone:
self.add_etherbone(phy=self.ethphy)

# Leds -------------------------------------------------------------------------------------
self.submodules.leds = LedChaser(
pads = platform.request_all("user_led_n"),
sys_clk_freq = sys_clk_freq)
self.add_csr("leds")

# Build --------------------------------------------------------------------------------------------

def main():
Expand Down

0 comments on commit 03bb929

Please sign in to comment.