From d804f1199e2a339ecf1401b400934f8436e77c03 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 5 Jul 2014 22:44:20 +0200 Subject: [PATCH] soc: add LED --- soc/targets/artiq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soc/targets/artiq.py b/soc/targets/artiq.py index 6e5364d05..e1050787e 100644 --- a/soc/targets/artiq.py +++ b/soc/targets/artiq.py @@ -2,7 +2,7 @@ from fractions import Fraction from migen.fhdl.std import * -from misoclib import lasmicon, spiflash +from misoclib import lasmicon, spiflash, gpio from misoclib.sdramphy import gensdrphy from misoclib.gensoc import SDRAMSoC @@ -92,4 +92,6 @@ class ARTIQSoC(SDRAMSoC): self.flash_boot_address = 0x70000 self.register_rom(self.spiflash.bus) + self.submodules.leds = gpio.GPIOOut(platform.request("user_led")) + default_subtarget = ARTIQSoC