forked from M-Labs/artiq
1
0
Fork 0

sayma_rtm: drive DAC control signals

This commit is contained in:
Sebastien Bourdeauducq 2017-08-26 16:57:02 -07:00
parent d609c67cbd
commit 26a11a296c
1 changed files with 6 additions and 0 deletions

View File

@ -88,6 +88,12 @@ class SaymaRTM(Module):
platform.request("dac_clk_src_sel").eq(0), # use clk from dac_clk platform.request("dac_clk_src_sel").eq(0), # use clk from dac_clk
] ]
self.comb += [
platform.request("ad9154_rst_n").eq(0),
platform.request("ad9154_txen", 0).eq(0b11),
platform.request("ad9154_txen", 1).eq(0b11)
]
self.submodules.converter_spi = spi.SPIMaster(platform.request("hmc_spi")) self.submodules.converter_spi = spi.SPIMaster(platform.request("hmc_spi"))
csr_devices.append("converter_spi") csr_devices.append("converter_spi")
self.comb += platform.request("hmc7043_reset").eq(0) self.comb += platform.request("hmc7043_reset").eq(0)