Update make Python script to use test LiteX Module

This commit is contained in:
Aadi Desai 2023-02-26 19:41:51 +00:00
parent 3ea0c58728
commit 2e83f912d1
No known key found for this signature in database

15
make.py
View file

@ -24,6 +24,8 @@ from litex.soc.cores.led import LedChaser
from litedram.modules import MT41K64M16, MT41K128M16, MT41K256M16, MT41K512M16 from litedram.modules import MT41K64M16, MT41K128M16, MT41K256M16, MT41K512M16
from litedram.phy import ECP5DDRPHY from litedram.phy import ECP5DDRPHY
from testLED import TestLed
# CRG --------------------------------------------------------------------------------------------- # CRG ---------------------------------------------------------------------------------------------
class _CRG(LiteXModule): class _CRG(LiteXModule):
@ -188,10 +190,15 @@ class BaseSoC(SoCCore):
) )
# Leds ------------------------------------------------------------------------------------- # Leds -------------------------------------------------------------------------------------
if with_led_chaser: # if with_led_chaser:
self.leds = LedChaser( # self.leds = LedChaser(
pads = platform.request_all("user_led"), # pads = platform.request_all("user_led"),
sys_clk_freq = sys_clk_freq) # sys_clk_freq = sys_clk_freq)
self.leds = TestLed(
platform = platform,
pads = platform.request_all("user_led")
)
# Build -------------------------------------------------------------------------------------------- # Build --------------------------------------------------------------------------------------------