From cb836cd4a0106afef666c05cc12c0b1126681912 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 20 Nov 2024 08:20:26 +0800 Subject: [PATCH] fmcdio_vhdci_eem: remove --- RELEASE_NOTES.rst | 1 + artiq/coredevice/fmcdio_vhdci_eem.py | 51 ---------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 artiq/coredevice/fmcdio_vhdci_eem.py diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 7d1c160c8..3d9dcd923 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -22,6 +22,7 @@ ARTIQ-9 (Unreleased) * Idle kernels now restart when written with ``artiq_coremgmt`` and stop when erased/removed from config. * New support for the EBAZ4205 Zynq-SoC control card. * New core device driver for the AD9834 DDS, tested with the ZonRi Technology Co., Ltd. AD9834-Module. +* artiq.coredevice.fmcdio_vhdci_eem has been removed. ARTIQ-8 ------- diff --git a/artiq/coredevice/fmcdio_vhdci_eem.py b/artiq/coredevice/fmcdio_vhdci_eem.py deleted file mode 100644 index bddb55812..000000000 --- a/artiq/coredevice/fmcdio_vhdci_eem.py +++ /dev/null @@ -1,51 +0,0 @@ -# Definitions for using the "FMC DIO 32ch LVDS a" card with the VHDCI-EEM breakout v1.1 - -eem_fmc_connections = { - 0: [0, 8, 2, 3, 4, 5, 6, 7], - 1: [1, 9, 10, 11, 12, 13, 14, 15], - 2: [17, 16, 24, 19, 20, 21, 22, 23], - 3: [18, 25, 26, 27, 28, 29, 30, 31], -} - - -def shiftreg_bits(eem, out_pins): - """ - Returns the bits that have to be set in the FMC card direction - shift register for the given EEM. - - Takes a set of pin numbers (0-7) at the EEM. Return values - of this function for different EEMs should be ORed together. - """ - r = 0 - for i in range(8): - if i not in out_pins: - lvds_line = eem_fmc_connections[eem][i] - # lines are swapped in pairs to ease PCB routing - # at the shift register - shift = lvds_line ^ 1 - r |= 1 << shift - return r - - -dio_bank0_out_pins = set(range(4)) -dio_bank1_out_pins = set(range(4, 8)) -urukul_out_pins = { - 0, # clk - 1, # mosi - 3, 4, 5, # cs_n - 6, # io_update - 7, # dds_reset -} -urukul_aux_out_pins = { - 4, # sw0 - 5, # sw1 - 6, # sw2 - 7, # sw3 -} -zotino_out_pins = { - 0, # clk - 1, # mosi - 3, 4, # cs_n - 5, # ldac_n - 7, # clr_n -}