From b49e6f07b2b1cea4967d9033fcc900cb382b5620 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 25 Nov 2013 12:16:20 +0100 Subject: [PATCH] targets/simple: add GPIO LED --- targets/simple.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2