2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

suservo: remove adc return clock gating

This commit is contained in:
Robert Jördens 2018-05-12 22:10:40 +00:00
parent 74c0b4452b
commit 2a47b934ea

View File

@ -107,7 +107,7 @@ class ADC(Module):
)
try:
sck_en_ret = pads.sck_en_ret
sck_en_ret = pads.sck_en_ret # simulation
except AttributeError:
sck_en_ret = 1
@ -119,7 +119,7 @@ class ADC(Module):
for i, sdo in enumerate(sdo):
sdo_sr = Signal(2*t_read)
self.sync.ret += [
If(self.reading & sck_en_ret,
If(sck_en_ret,
sdo_sr[1:].eq(sdo_sr),
sdo_sr[0].eq(sdo),
)