From 42c6658ffebf2050e65ebd0167733acea368e75e Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 13 Oct 2016 15:21:27 +0200 Subject: [PATCH] phaser: add some more blinking leds --- artiq/gateware/targets/kc705.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/artiq/gateware/targets/kc705.py b/artiq/gateware/targets/kc705.py index 8f6fc5c08..8623f6eba 100755 --- a/artiq/gateware/targets/kc705.py +++ b/artiq/gateware/targets/kc705.py @@ -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 = {