Hi, I am using Mirny frequency synthesiser. I am trying to use Almazny HF mezzanine, but I am having some issue.

I am looking at the
artiq.coredevice.mirny.Almazny from M-lab, and I cannot find a way to set the frequency of the signal. Are they fixed frequency?

Here is the code,

from artiq.experiment import *
import numpy as np
class HFgen(EnvExperiment):
    def build(self):
        self.setattr_device("core")
        self.setattr_device("mirny0_almazny")
    @kernel
    def run(self):
        self.core.reset()
        delay(10*ms)
        self.mirny0_almazny.init()
        self.mirny0_almazny.att_to_mu(5.0)
        delay(100*ms)

and here is the device list related to mirny


device_db["spi_mirny0"]={
    "type": "local",
    "module": "artiq.coredevice.spi2",
    "class": "SPIMaster",
    "arguments": {"channel": 0x000016}
}

device_db["ttl_mirny0_sw0"] = {
    "type": "local",
    "module": "artiq.coredevice.ttl",
    "class": "TTLOut",
    "arguments": {"channel": 0x000017}
}

device_db["ttl_mirny0_sw1"] = {
    "type": "local",
    "module": "artiq.coredevice.ttl",
    "class": "TTLOut",
    "arguments": {"channel": 0x000018}
}

device_db["ttl_mirny0_sw2"] = {
    "type": "local",
    "module": "artiq.coredevice.ttl",
    "class": "TTLOut",
    "arguments": {"channel": 0x000019}
}

device_db["ttl_mirny0_sw3"] = {
    "type": "local",
    "module": "artiq.coredevice.ttl",
    "class": "TTLOut",
    "arguments": {"channel": 0x00001a}
}

device_db["mirny0_ch0"] = {
    "type": "local",
    "module": "artiq.coredevice.adf5356",
    "class": "ADF5356",
    "arguments": {
        "channel": 0,
        "sw_device": "ttl_mirny0_sw0",
        "cpld_device": "mirny0_cpld",
    }
}

device_db["mirny0_ch1"] = {
    "type": "local",
    "module": "artiq.coredevice.adf5356",
    "class": "ADF5356",
    "arguments": {
        "channel": 1,
        "sw_device": "ttl_mirny0_sw1",
        "cpld_device": "mirny0_cpld",
    }
}

device_db["mirny0_ch2"] = {
    "type": "local",
    "module": "artiq.coredevice.adf5356",
    "class": "ADF5356",
    "arguments": {
        "channel": 2,
        "sw_device": "ttl_mirny0_sw2",
        "cpld_device": "mirny0_cpld",
    }
}

device_db["mirny0_ch3"] = {
    "type": "local",
    "module": "artiq.coredevice.adf5356",
    "class": "ADF5356",
    "arguments": {
        "channel": 3,
        "sw_device": "ttl_mirny0_sw3",
        "cpld_device": "mirny0_cpld",
    }
}

device_db["mirny0_cpld"] = {
    "type": "local",
    "module": "artiq.coredevice.mirny",
    "class": "Mirny",
    "arguments": {
        "spi_device": "spi_mirny0",
        "refclk": 100000000.0,
        "clk_sel": 0
    },
}

device_db["mirny0_almazny"] = {
    "type": "local",
    "module": "artiq.coredevice.mirny",
    "class": "Almazny",
    "arguments": {
        "host_mirny": "mirny0_cpld",
    },
}

The mezzanine outputs are always twice the frequency of the main Mirny outputs. Set the Mirny output frequencies to set the Almazny frequencies.