From 7492a59f6d63b0f4daf8b4f0e9f0d4f5f9f57342 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 11 Sep 2019 11:12:48 +0800 Subject: [PATCH] kasli_generic: add SUServo support (#1343) --- artiq/gateware/targets/kasli_generic.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/artiq/gateware/targets/kasli_generic.py b/artiq/gateware/targets/kasli_generic.py index 01889afa8..0aacecd21 100755 --- a/artiq/gateware/targets/kasli_generic.py +++ b/artiq/gateware/targets/kasli_generic.py @@ -61,6 +61,18 @@ def peripheral_sampler(module, peripheral): eem.Sampler.add_std(module, port, port_aux, ttl_serdes_7series.Output_8X) +def peripheral_suservo(module, peripheral): + if len(peripheral["sampler_ports"]) != 2: + raise ValueError("wrong number of Sampler ports") + if len(peripheral["urukul0_ports"]) != 2: + raise ValueError("wrong number of Urukul #0 ports") + if len(peripheral["urukul1_ports"]) != 2: + raise ValueError("wrong number of Urukul #1 ports") + eem.SUServo.add_std(module, + peripheral["sampler_ports"], + peripheral["urukul0_ports"], peripheral["urukul1_ports"]) + + def peripheral_zotino(module, peripheral): if len(peripheral["ports"]) != 1: raise ValueError("wrong number of ports") @@ -89,6 +101,7 @@ def add_peripherals(module, peripherals): "urukul": peripheral_urukul, "novogorny": peripheral_novogorny, "sampler": peripheral_sampler, + "suservo": peripheral_suservo, "zotino": peripheral_zotino, "grabber": peripheral_grabber, }