forked from M-Labs/artiq
1
0
Fork 0

soc: add LED

This commit is contained in:
Sebastien Bourdeauducq 2014-07-05 22:44:20 +02:00
parent a08c6d4410
commit d804f1199e
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ from fractions import Fraction
from migen.fhdl.std import * from migen.fhdl.std import *
from misoclib import lasmicon, spiflash from misoclib import lasmicon, spiflash, gpio
from misoclib.sdramphy import gensdrphy from misoclib.sdramphy import gensdrphy
from misoclib.gensoc import SDRAMSoC from misoclib.gensoc import SDRAMSoC
@ -92,4 +92,6 @@ class ARTIQSoC(SDRAMSoC):
self.flash_boot_address = 0x70000 self.flash_boot_address = 0x70000
self.register_rom(self.spiflash.bus) self.register_rom(self.spiflash.bus)
self.submodules.leds = gpio.GPIOOut(platform.request("user_led"))
default_subtarget = ARTIQSoC default_subtarget = ARTIQSoC