forked from M-Labs/artiq
1
0
Fork 0

phaser: add some more blinking leds

This commit is contained in:
Robert Jördens 2016-10-13 15:21:27 +02:00
parent 6a456bd7d4
commit 42c6658ffe
1 changed files with 14 additions and 0 deletions

View File

@ -483,8 +483,22 @@ class AD9154(Module, AutoCSR):
self.submodules.jesd_core = JESD204BCoreTX(
jesd_phys, jesd_settings, converter_data_width=32)
self.comb += self.jesd_core.start.eq(jesd_sync)
self.comb += platform.request("user_led", 3).eq(jesd_sync)
self.submodules.jesd_control = JESD204BCoreTXControl(self.jesd_core)
# blinking leds for transceiver reset status
for i in range(4):
led = platform.request("user_led", 4 + i)
counter = Signal(32)
sync = getattr(self.sync, "phy" + str(i))
sync += \
If(counter == 0,
led.eq(~led),
counter.eq(rtio_freq//2)
).Else(
counter.eq(counter-1)
)
class Phaser(_NIST_Ions):
mem_map = {