Skip to content

Commit

Permalink
rtio/dds: use rio_phy domain to reset FTW tracker. Closes #120
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 4, 2015
1 parent 078a37b commit e46ba83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions artiq/gateware/rtio/phy/dds.py
Original file line number Diff line number Diff line change
@@ -36,13 +36,13 @@ def selected(c):
ftws = [Signal(32) for i in range(nchannels)]
for c, ftw in enumerate(ftws):
if flen(pads.d) == 8:
self.sync.rio += \
self.sync.rio_phy += \
If(selected(c), [
If(current_address == ftw_base+i,
ftw[i*8:(i+1)*8].eq(current_data))
for i in range(4)])
elif flen(pads.d) == 16:
self.sync.rio += \
self.sync.rio_phy += \
If(selected(c), [
If(current_address == ftw_base+2*i,
ftw[i*16:(i+1)*16].eq(current_data))
@@ -51,7 +51,7 @@ def selected(c):
raise NotImplementedError

# FTW to probe on FUD
self.sync.rio += If(current_address == 2**flen(pads.a), [
self.sync.rio_phy += If(current_address == 2**flen(pads.a), [
If(selected(c), probe.eq(ftw))
for c, (probe, ftw) in enumerate(zip(self.probes, ftws))])

0 comments on commit e46ba83

Please sign in to comment.