From: Sebastien Bourdeauducq Date: Mon, 25 Nov 2013 11:16:20 +0000 (+0100) Subject: targets/simple: add GPIO LED X-Git-Tag: 24jan2021_ls180~2765 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b49e6f07b2b1cea4967d9033fcc900cb382b5620;p=litex.git targets/simple: add GPIO LED --- diff --git a/targets/simple.py b/targets/simple.py index 7cefa6d9..5829af46 100644 --- a/targets/simple.py +++ b/targets/simple.py @@ -1,5 +1,6 @@ from migen.fhdl.std import * +from misoclib import gpio from misoclib.gensoc import GenSoC, IntegratedBIOS class SimpleSoC(GenSoC, IntegratedBIOS): @@ -15,5 +16,7 @@ class SimpleSoC(GenSoC, IntegratedBIOS): self.comb += self.cd_sys.clk.eq(platform.request("clk32")) self.specials += Instance("FD", p_INIT=1, i_D=0, o_Q=self.cd_sys.rst, i_C=ClockSignal()) + self.submodules.leds = gpio.GPIOOut(platform.request("user_led")) + def get_default_subtarget(platform): return SimpleSoC