From 96fc248d7ccb29cca5bf66824675c4837fafc12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 27 Aug 2020 14:28:19 +0000 Subject: [PATCH] phaser: synchronize multidds to frame --- artiq/gateware/rtio/phy/phaser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/rtio/phy/phaser.py b/artiq/gateware/rtio/phy/phaser.py index 1ae6862a6..5109d033c 100644 --- a/artiq/gateware/rtio/phy/phaser.py +++ b/artiq/gateware/rtio/phy/phaser.py @@ -13,8 +13,6 @@ class DDSChannel(Module): to_rio_phy = ClockDomainsRenamer("rio_phy") self.submodules.dds = to_rio_phy(MultiDDS( n=5, fwidth=32, xwidth=16, z=19, zl=10, use_lut=use_lut)) - # TODO: latency - self.comb += self.dds.stb.eq(1) regs = [] for i in self.dds.i: regs.extend([i.f, Cat(i.a, i.clr, i.p)]) @@ -70,6 +68,8 @@ class Phaser(Module): self.sync.rtio += [ header.type.eq(1), # reserved If(self.serializer.stb, + self.ch0.dds.stb.eq(1), # synchronize + self.ch1.dds.stb.eq(1), # synchronize header.we.eq(0), re_dly.eq(re_dly[1:]), ),