mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-11-10 04:15:49 +00:00
Update make Python script to use test LiteX Module
This commit is contained in:
parent
3ea0c58728
commit
2e83f912d1
15
make.py
15
make.py
|
@ -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 --------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue