forked from M-Labs/artiq
phaser: fix oscillator rtio address for even base addresses
close #1580
This commit is contained in:
parent
641f8bcdd6
commit
261870bdee
|
@ -928,7 +928,7 @@ class PhaserOscillator:
|
||||||
:param clr: Clear the phase accumulator (persistent)
|
:param clr: Clear the phase accumulator (persistent)
|
||||||
"""
|
"""
|
||||||
data = (asf & 0x7fff) | ((clr & 1) << 15) | (pow << 16)
|
data = (asf & 0x7fff) | ((clr & 1) << 15) | (pow << 16)
|
||||||
rtio_output(self.base_addr | (1 << 8), data)
|
rtio_output(self.base_addr + (1 << 8), data)
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def set_amplitude_phase(self, amplitude, phase=0., clr=0):
|
def set_amplitude_phase(self, amplitude, phase=0., clr=0):
|
||||||
|
|
Loading…
Reference in New Issue