mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-11-10 04:15:49 +00:00
21 lines
588 B
Python
21 lines
588 B
Python
|
from migen import *
|
||
|
from migen.genlib.misc import WaitTimer
|
||
|
|
||
|
from litex.soc.interconnect.csr import *
|
||
|
|
||
|
# Test LED Module ----------------------------------------------------------------------------------
|
||
|
|
||
|
class TestLed(Module, AutoCSR):
|
||
|
def __init__(self, platform, pads):
|
||
|
self.pads = pads
|
||
|
leds = Signal(3)
|
||
|
self.comb += pads.eq(leds)
|
||
|
self.specials += Instance("flip",
|
||
|
i_clk = ClockSignal(),
|
||
|
o_ledr = leds[0],
|
||
|
o_ledg = leds[1],
|
||
|
o_ledb = leds[2]
|
||
|
)
|
||
|
platform.add_source("rtl/flip.sv")
|
||
|
|