We're trying to connect our custom designed DAC Board to the Kasli to get precisely timed SPI Signals. It is not a EEM Form Factor but we connected the EEM SPI Pins to our Board.

I got the toolchain for generating FPGA binaries and flashing the kasli running for Artiq 7.

How would I define such peripherals in the hardware_description.json where we only want to use the SPI pins? I've looked around in the artiq source code and found "DIO_SPI" but not sure if its helpful or even refers to the peripherals.

After that is there a device class that can be used in python script ran by artiq_run? (SPI2 seems more like a library than a device?)

If that's not implemented, is it possible to "lie" to the kasli, telling it it is a for example a Zotino and then use the internal set_config_mu and write functions to get our desired behavior on the DAC?

Use the dio_spi peripheral definition and the spi2 core device driver. Should work just fine. Just verify that the pinout matches your device. Then write a wrapper around spi2 that implements and exposes the protocol that you want to speak over spi.

4 days later

This is essentially #1800, except that you'd connect your custom board instead of a DIO board.