forked from M-Labs/artiq
suservo: use default urukul profile
This commit is contained in:
parent
8b45f917d1
commit
cea0a15e1e
|
@ -2,6 +2,8 @@ import logging
|
||||||
|
|
||||||
from migen import *
|
from migen import *
|
||||||
|
|
||||||
|
from artiq.coredevice.urukul import DEFAULT_PROFILE
|
||||||
|
|
||||||
from . import spi
|
from . import spi
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,7 +28,8 @@ class DDS(spi.SPISimple):
|
||||||
|
|
||||||
self.profile = [Signal(32 + 16 + 16, reset_less=True)
|
self.profile = [Signal(32 + 16 + 16, reset_less=True)
|
||||||
for i in range(params.channels)]
|
for i in range(params.channels)]
|
||||||
cmd = Signal(8, reset=0x15) # write to single tone profile 7
|
# write to single tone default profile
|
||||||
|
cmd = Signal(8, reset=0x0e + DEFAULT_PROFILE)
|
||||||
assert params.width == len(cmd) + len(self.profile[0])
|
assert params.width == len(cmd) + len(self.profile[0])
|
||||||
|
|
||||||
self.sync += [
|
self.sync += [
|
||||||
|
|
Loading…
Reference in New Issue