mirror of https://github.com/m-labs/artiq.git
sayma_rtm: add basemod attenuators on RTIO
This commit is contained in:
parent
8f518c6b05
commit
1c9cbe6285
|
@ -16,7 +16,7 @@ from misoc.targets.sayma_rtm import BaseSoC, soc_sayma_rtm_args, soc_sayma_rtm_a
|
||||||
from misoc.integration.builder import Builder, builder_args, builder_argdict
|
from misoc.integration.builder import Builder, builder_args, builder_argdict
|
||||||
|
|
||||||
from artiq.gateware import rtio
|
from artiq.gateware import rtio
|
||||||
from artiq.gateware.rtio.phy import ttl_serdes_7series
|
from artiq.gateware.rtio.phy import ttl_simple, ttl_serdes_7series
|
||||||
from artiq.gateware.drtio.transceiver import gtp_7series
|
from artiq.gateware.drtio.transceiver import gtp_7series
|
||||||
from artiq.gateware.drtio.siphaser import SiPhaser7Series
|
from artiq.gateware.drtio.siphaser import SiPhaser7Series
|
||||||
from artiq.gateware.drtio.wrpll import WRPLL, DDMTDSamplerGTP
|
from artiq.gateware.drtio.wrpll import WRPLL, DDMTDSamplerGTP
|
||||||
|
@ -196,12 +196,23 @@ class Satellite(_SatelliteBase):
|
||||||
platform = self.platform
|
platform = self.platform
|
||||||
|
|
||||||
rtio_channels = []
|
rtio_channels = []
|
||||||
|
for bm in range(2):
|
||||||
|
print("BaseMod{} RF switches starting at RTIO channel 0x{:06x}"
|
||||||
|
.format(bm, len(rtio_channels)))
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
phy = ttl_serdes_7series.Output_8X(platform.request("basemod0_rfsw", i))
|
phy = ttl_serdes_7series.Output_8X(platform.request("basemod{}_rfsw".format(bm), i))
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
for i in range(4):
|
print("BaseMod{} attenuator starting at RTIO channel 0x{:06x}"
|
||||||
phy = ttl_serdes_7series.Output_8X(platform.request("basemod1_rfsw", i))
|
.format(bm, len(rtio_channels)))
|
||||||
|
basemod_att = platform.request("basemod{}_att".format(bm))
|
||||||
|
for name in "rst_n clk mosi le".split():
|
||||||
|
signal = getattr(basemod_att, name)
|
||||||
|
for i in range(len(signal)):
|
||||||
|
phy = ttl_simple.Output(signal[i])
|
||||||
|
self.submodules += phy
|
||||||
|
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
|
phy = ttl_simple.InOut(basemod_att.miso)
|
||||||
self.submodules += phy
|
self.submodules += phy
|
||||||
rtio_channels.append(rtio.Channel.from_phy(phy))
|
rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue