forked from M-Labs/artiq
sawg: style
This commit is contained in:
parent
4f813c4977
commit
d8b5eac856
|
@ -89,10 +89,10 @@ class Spline:
|
||||||
coeff64[i] = ci
|
coeff64[i] = ci
|
||||||
# artiq.wavesynth.coefficients.discrete_compensate:
|
# artiq.wavesynth.coefficients.discrete_compensate:
|
||||||
if i == 2:
|
if i == 2:
|
||||||
coeff64[1] += ci >> (self.time_width + 1)
|
coeff64[1] += ci >> self.time_width + 1
|
||||||
elif i == 3:
|
elif i == 3:
|
||||||
coeff64[2] += ci >> self.time_width
|
coeff64[2] += ci >> self.time_width
|
||||||
coeff64[1] += (ci // 3) >> (2*self.time_width + 1)
|
coeff64[1] += ci // 6 >> 2*self.time_width
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def set_coeff(self, value):
|
def set_coeff(self, value):
|
||||||
|
|
|
@ -88,8 +88,7 @@ class SplineParallelDDS(SplineParallelDUC):
|
||||||
a = Spline(order=orders.a, width=widths.a)
|
a = Spline(order=orders.a, width=widths.a)
|
||||||
self.a = a.tri(widths.t)
|
self.a = a.tri(widths.t)
|
||||||
self.submodules += a
|
self.submodules += a
|
||||||
super().__init__(widths._replace(a=len(self.a.a0)),
|
super().__init__(widths._replace(a=len(self.a.a0)), orders, **kwargs)
|
||||||
orders, **kwargs)
|
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue