forked from M-Labs/artiq-zynq
flake: expose 100mhz for zc706
parent
49810da188
commit
07ba15c2f4
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,626 @@
|
|||
|
||||
# Autogenerated for the master variant
|
||||
core_addr = "192.168.1.198"
|
||||
|
||||
device_db = {
|
||||
"core": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.core",
|
||||
"class": "Core",
|
||||
"arguments": {"host": core_addr, "ref_period": 1e-09, "target": "cortexa9"},
|
||||
},
|
||||
"core_log": {
|
||||
"type": "controller",
|
||||
"host": "::1",
|
||||
"port": 1068,
|
||||
"command": "aqctl_corelog -p {port} --bind {bind} " + core_addr
|
||||
},
|
||||
"core_moninj": {
|
||||
"type": "controller",
|
||||
"host": "::1",
|
||||
"port_proxy": 1383,
|
||||
"port": 1384,
|
||||
"command": "aqctl_moninj_proxy --port-proxy {port_proxy} --port-control {port} --bind {bind} " + core_addr
|
||||
},
|
||||
"core_cache": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.cache",
|
||||
"class": "CoreCache"
|
||||
},
|
||||
"core_dma": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.dma",
|
||||
"class": "CoreDMA"
|
||||
},
|
||||
|
||||
"satellite_targets": {},
|
||||
|
||||
"i2c_switch0": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.i2c",
|
||||
"class": "I2CSwitch",
|
||||
"arguments": {"address": 0xe0}
|
||||
},
|
||||
"i2c_switch1": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.i2c",
|
||||
"class": "I2CSwitch",
|
||||
"arguments": {"address": 0xe2}
|
||||
},
|
||||
}
|
||||
|
||||
# master peripherals
|
||||
|
||||
device_db["grabber0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.grabber",
|
||||
"class": "Grabber",
|
||||
"arguments": {"channel_base": 0x000000}
|
||||
}
|
||||
|
||||
device_db["ttl0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000002},
|
||||
}
|
||||
|
||||
device_db["ttl1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000003},
|
||||
}
|
||||
|
||||
device_db["ttl2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000004},
|
||||
}
|
||||
|
||||
device_db["ttl3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000005},
|
||||
}
|
||||
|
||||
device_db["ttl4"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000006},
|
||||
}
|
||||
|
||||
device_db["ttl5"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000007},
|
||||
}
|
||||
|
||||
device_db["ttl6"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000008},
|
||||
}
|
||||
|
||||
device_db["ttl7"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000009},
|
||||
}
|
||||
|
||||
device_db["ttl8"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000a},
|
||||
}
|
||||
|
||||
device_db["ttl9"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000b},
|
||||
}
|
||||
|
||||
device_db["ttl10"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000c},
|
||||
}
|
||||
|
||||
device_db["ttl11"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000d},
|
||||
}
|
||||
|
||||
device_db["ttl12"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000e},
|
||||
}
|
||||
|
||||
device_db["ttl13"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000f},
|
||||
}
|
||||
|
||||
device_db["ttl14"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000010},
|
||||
}
|
||||
|
||||
device_db["ttl15"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000011},
|
||||
}
|
||||
|
||||
device_db["eeprom_urukul0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.kasli_i2c",
|
||||
"class": "KasliEEPROM",
|
||||
"arguments": {"port": "EEM3"}
|
||||
}
|
||||
|
||||
device_db["spi_urukul0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x000012}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_io_update"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000013}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000014}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000015}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000016}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000017}
|
||||
}
|
||||
|
||||
device_db["urukul0_cpld"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.urukul",
|
||||
"class": "CPLD",
|
||||
"arguments": {
|
||||
"spi_device": "spi_urukul0",
|
||||
"sync_device": None,
|
||||
"io_update_device": "ttl_urukul0_io_update",
|
||||
"refclk": 125000000.0,
|
||||
"clk_sel": 2,
|
||||
"clk_div": 0
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 4,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw0"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 5,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw1"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 6,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw2"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 7,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw3"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_zotino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x000018}
|
||||
}
|
||||
device_db["ttl_zotino0_ldac"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000019}
|
||||
}
|
||||
device_db["ttl_zotino0_clr"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001a}
|
||||
}
|
||||
device_db["zotino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.zotino",
|
||||
"class": "Zotino",
|
||||
"arguments": {
|
||||
"spi_device": "spi_zotino0",
|
||||
"ldac_device": "ttl_zotino0_ldac",
|
||||
"clr_device": "ttl_zotino0_clr"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_sampler0_adc"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001b}
|
||||
}
|
||||
device_db["spi_sampler0_pgia"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001c}
|
||||
}
|
||||
device_db["ttl_sampler0_cnv"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001d},
|
||||
}
|
||||
device_db["sampler0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.sampler",
|
||||
"class": "Sampler",
|
||||
"arguments": {
|
||||
"spi_adc_device": "spi_sampler0_adc",
|
||||
"spi_pgia_device": "spi_sampler0_pgia",
|
||||
"cnv_device": "ttl_sampler0_cnv",
|
||||
"hw_rev": "v2.2"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_mirny0"]={
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001e}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001f}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000020}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000021}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000022}
|
||||
}
|
||||
|
||||
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": 125000000.0,
|
||||
"clk_sel": 1
|
||||
},
|
||||
}
|
||||
|
||||
device_db["fastino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.fastino",
|
||||
"class": "Fastino",
|
||||
"arguments": {"channel": 0x000023, "log2_width": 0}
|
||||
}
|
||||
|
||||
device_db["ttl16"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000024},
|
||||
}
|
||||
|
||||
device_db["ttl17"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000025},
|
||||
}
|
||||
|
||||
device_db["ttl18"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000026},
|
||||
}
|
||||
|
||||
device_db["ttl19"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000027},
|
||||
}
|
||||
|
||||
device_db["ttl20"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000028},
|
||||
}
|
||||
|
||||
device_db["ttl21"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000029},
|
||||
}
|
||||
|
||||
device_db["ttl22"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x00002a},
|
||||
}
|
||||
|
||||
device_db["ttl23"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x00002b},
|
||||
}
|
||||
|
||||
device_db["ttl24"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002c},
|
||||
}
|
||||
|
||||
device_db["ttl25"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002d},
|
||||
}
|
||||
|
||||
device_db["ttl26"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002e},
|
||||
}
|
||||
|
||||
device_db["ttl27"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002f},
|
||||
}
|
||||
|
||||
device_db["ttl28"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000030},
|
||||
}
|
||||
|
||||
device_db["ttl29"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000031},
|
||||
}
|
||||
|
||||
device_db["ttl30"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000032},
|
||||
}
|
||||
|
||||
device_db["ttl31"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000033},
|
||||
}
|
||||
# DEST#1 peripherals
|
||||
device_db["satellite_targets"][1] = "rv32g"
|
||||
|
||||
device_db["ttl32"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010000},
|
||||
}
|
||||
|
||||
device_db["ttl33"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010001},
|
||||
}
|
||||
|
||||
device_db["ttl34"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010002},
|
||||
}
|
||||
|
||||
device_db["ttl35"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010003},
|
||||
}
|
||||
|
||||
device_db["ttl36"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010004},
|
||||
}
|
||||
|
||||
device_db["ttl37"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010005},
|
||||
}
|
||||
|
||||
device_db["ttl38"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010006},
|
||||
}
|
||||
|
||||
device_db["ttl39"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010007},
|
||||
}
|
||||
|
||||
device_db["led2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010008}
|
||||
}
|
||||
|
||||
device_db["led3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010009}
|
||||
}
|
|
@ -0,0 +1,626 @@
|
|||
|
||||
# Autogenerated for the master variant
|
||||
core_addr = "192.168.1.198"
|
||||
|
||||
device_db = {
|
||||
"core": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.core",
|
||||
"class": "Core",
|
||||
"arguments": {"host": core_addr, "ref_period": 1e-09, "target": "cortexa9"},
|
||||
},
|
||||
"core_log": {
|
||||
"type": "controller",
|
||||
"host": "::1",
|
||||
"port": 1068,
|
||||
"command": "aqctl_corelog -p {port} --bind {bind} " + core_addr
|
||||
},
|
||||
"core_moninj": {
|
||||
"type": "controller",
|
||||
"host": "::1",
|
||||
"port_proxy": 1383,
|
||||
"port": 1384,
|
||||
"command": "aqctl_moninj_proxy --port-proxy {port_proxy} --port-control {port} --bind {bind} " + core_addr
|
||||
},
|
||||
"core_cache": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.cache",
|
||||
"class": "CoreCache"
|
||||
},
|
||||
"core_dma": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.dma",
|
||||
"class": "CoreDMA"
|
||||
},
|
||||
|
||||
"satellite_targets": {},
|
||||
|
||||
"i2c_switch0": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.i2c",
|
||||
"class": "I2CSwitch",
|
||||
"arguments": {"address": 0xe0}
|
||||
},
|
||||
"i2c_switch1": {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.i2c",
|
||||
"class": "I2CSwitch",
|
||||
"arguments": {"address": 0xe2}
|
||||
},
|
||||
}
|
||||
|
||||
# master peripherals
|
||||
|
||||
device_db["grabber0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.grabber",
|
||||
"class": "Grabber",
|
||||
"arguments": {"channel_base": 0x000000}
|
||||
}
|
||||
|
||||
device_db["ttl0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000002},
|
||||
}
|
||||
|
||||
device_db["ttl1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000003},
|
||||
}
|
||||
|
||||
device_db["ttl2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000004},
|
||||
}
|
||||
|
||||
device_db["ttl3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000005},
|
||||
}
|
||||
|
||||
device_db["ttl4"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000006},
|
||||
}
|
||||
|
||||
device_db["ttl5"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000007},
|
||||
}
|
||||
|
||||
device_db["ttl6"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000008},
|
||||
}
|
||||
|
||||
device_db["ttl7"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000009},
|
||||
}
|
||||
|
||||
device_db["ttl8"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000a},
|
||||
}
|
||||
|
||||
device_db["ttl9"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000b},
|
||||
}
|
||||
|
||||
device_db["ttl10"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000c},
|
||||
}
|
||||
|
||||
device_db["ttl11"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000d},
|
||||
}
|
||||
|
||||
device_db["ttl12"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000e},
|
||||
}
|
||||
|
||||
device_db["ttl13"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00000f},
|
||||
}
|
||||
|
||||
device_db["ttl14"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000010},
|
||||
}
|
||||
|
||||
device_db["ttl15"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000011},
|
||||
}
|
||||
|
||||
device_db["eeprom_urukul0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.kasli_i2c",
|
||||
"class": "KasliEEPROM",
|
||||
"arguments": {"port": "EEM3"}
|
||||
}
|
||||
|
||||
device_db["spi_urukul0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x000012}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_io_update"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000013}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000014}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000015}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000016}
|
||||
}
|
||||
|
||||
device_db["ttl_urukul0_sw3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000017}
|
||||
}
|
||||
|
||||
device_db["urukul0_cpld"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.urukul",
|
||||
"class": "CPLD",
|
||||
"arguments": {
|
||||
"spi_device": "spi_urukul0",
|
||||
"sync_device": None,
|
||||
"io_update_device": "ttl_urukul0_io_update",
|
||||
"refclk": 125000000.0,
|
||||
"clk_sel": 2,
|
||||
"clk_div": 0
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 4,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw0"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 5,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw1"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 6,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw2"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["urukul0_ch3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ad9910",
|
||||
"class": "AD9910",
|
||||
"arguments": {
|
||||
"pll_n": 32,
|
||||
"pll_en": 1,
|
||||
"chip_select": 7,
|
||||
"cpld_device": "urukul0_cpld",
|
||||
"sw_device": "ttl_urukul0_sw3"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_zotino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x000018}
|
||||
}
|
||||
device_db["ttl_zotino0_ldac"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000019}
|
||||
}
|
||||
device_db["ttl_zotino0_clr"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001a}
|
||||
}
|
||||
device_db["zotino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.zotino",
|
||||
"class": "Zotino",
|
||||
"arguments": {
|
||||
"spi_device": "spi_zotino0",
|
||||
"ldac_device": "ttl_zotino0_ldac",
|
||||
"clr_device": "ttl_zotino0_clr"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_sampler0_adc"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001b}
|
||||
}
|
||||
device_db["spi_sampler0_pgia"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001c}
|
||||
}
|
||||
device_db["ttl_sampler0_cnv"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001d},
|
||||
}
|
||||
device_db["sampler0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.sampler",
|
||||
"class": "Sampler",
|
||||
"arguments": {
|
||||
"spi_adc_device": "spi_sampler0_adc",
|
||||
"spi_pgia_device": "spi_sampler0_pgia",
|
||||
"cnv_device": "ttl_sampler0_cnv",
|
||||
"hw_rev": "v2.2"
|
||||
}
|
||||
}
|
||||
|
||||
device_db["spi_mirny0"]={
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.spi2",
|
||||
"class": "SPIMaster",
|
||||
"arguments": {"channel": 0x00001e}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00001f}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw1"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000020}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000021}
|
||||
}
|
||||
|
||||
device_db["ttl_mirny0_sw3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x000022}
|
||||
}
|
||||
|
||||
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": 125000000.0,
|
||||
"clk_sel": 1
|
||||
},
|
||||
}
|
||||
|
||||
device_db["fastino0"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.fastino",
|
||||
"class": "Fastino",
|
||||
"arguments": {"channel": 0x000023, "log2_width": 0}
|
||||
}
|
||||
|
||||
device_db["ttl16"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000024},
|
||||
}
|
||||
|
||||
device_db["ttl17"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000025},
|
||||
}
|
||||
|
||||
device_db["ttl18"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000026},
|
||||
}
|
||||
|
||||
device_db["ttl19"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000027},
|
||||
}
|
||||
|
||||
device_db["ttl20"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000028},
|
||||
}
|
||||
|
||||
device_db["ttl21"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000029},
|
||||
}
|
||||
|
||||
device_db["ttl22"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x00002a},
|
||||
}
|
||||
|
||||
device_db["ttl23"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x00002b},
|
||||
}
|
||||
|
||||
device_db["ttl24"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002c},
|
||||
}
|
||||
|
||||
device_db["ttl25"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002d},
|
||||
}
|
||||
|
||||
device_db["ttl26"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002e},
|
||||
}
|
||||
|
||||
device_db["ttl27"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x00002f},
|
||||
}
|
||||
|
||||
device_db["ttl28"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000030},
|
||||
}
|
||||
|
||||
device_db["ttl29"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000031},
|
||||
}
|
||||
|
||||
device_db["ttl30"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000032},
|
||||
}
|
||||
|
||||
device_db["ttl31"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x000033},
|
||||
}
|
||||
# DEST#1 peripherals
|
||||
device_db["satellite_targets"][1] = "rv32g"
|
||||
|
||||
device_db["ttl32"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010000},
|
||||
}
|
||||
|
||||
device_db["ttl33"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010001},
|
||||
}
|
||||
|
||||
device_db["ttl34"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010002},
|
||||
}
|
||||
|
||||
device_db["ttl35"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLInOut",
|
||||
"arguments": {"channel": 0x010003},
|
||||
}
|
||||
|
||||
device_db["ttl36"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010004},
|
||||
}
|
||||
|
||||
device_db["ttl37"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010005},
|
||||
}
|
||||
|
||||
device_db["ttl38"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010006},
|
||||
}
|
||||
|
||||
device_db["ttl39"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010007},
|
||||
}
|
||||
|
||||
device_db["led2"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010008}
|
||||
}
|
||||
|
||||
device_db["led3"] = {
|
||||
"type": "local",
|
||||
"module": "artiq.coredevice.ttl",
|
||||
"class": "TTLOut",
|
||||
"arguments": {"channel": 0x010009}
|
||||
}
|
|
@ -338,18 +338,22 @@
|
|||
} //
|
||||
(build { target = "zc706"; variant = "nist_clock"; }) //
|
||||
(build { target = "zc706"; variant = "nist_clock_master"; }) //
|
||||
(build { target = "zc706"; variant = "nist_clock_master_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "nist_clock_satellite"; }) //
|
||||
(build { target = "zc706"; variant = "nist_clock_satellite_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "nist_qc2"; }) //
|
||||
(build { target = "zc706"; variant = "nist_qc2_master"; }) //
|
||||
(build { target = "zc706"; variant = "nist_qc2_master_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "nist_qc2_satellite"; }) //
|
||||
(build { target = "zc706"; variant = "nist_qc2_satellite_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_clock"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_clock_master"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_clock_master_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_clock_satellite"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_clock_satellite_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_qc2"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_qc2_master"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_qc2_master_100mhz"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_qc2_satellite"; }) //
|
||||
(build { target = "zc706"; variant = "acpki_nist_qc2_satellite_100mhz"; }) //
|
||||
(build { target = "kasli_soc"; variant = "demo"; json = ./demo.json; }) //
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
from artiq.experiment import *
|
||||
|
||||
|
||||
class DMAPulses(EnvExperiment):
|
||||
def build(self):
|
||||
self.setattr_device("core")
|
||||
self.setattr_device("ttl4")
|
||||
self.setattr_device("led2")
|
||||
self.setattr_device("led3")
|
||||
|
||||
@subkernel(destination=1)
|
||||
def simple_return() -> TInt32:
|
||||
a = 0xdeadbeef
|
||||
b = 1512
|
||||
c = a + b
|
||||
return c
|
||||
|
||||
@subkernel(destination=1)
|
||||
def simple_args(self, a: TInt32, b: TInt32) -> TInt32:
|
||||
return a + b + self.simple_self()
|
||||
|
||||
@subkernel(destination=1)
|
||||
def simple_self(self) -> TInt32:
|
||||
self.core.break_realtime()
|
||||
self.led2.pulse(1000*ms)
|
||||
return 15
|
||||
|
||||
@subkernel(destination=1)
|
||||
def simple_self_too(self) -> TNone:
|
||||
self.core.break_realtime()
|
||||
self.led3.pulse(1000*ms)
|
||||
|
||||
@kernel
|
||||
def run(self):
|
||||
subkernel_preload(self.simple_args)
|
||||
self.core.reset()
|
||||
self.core.break_realtime()
|
||||
self.simple_args(0xdead, 0xbeef0000)
|
||||
val = subkernel_await(self.simple_args)
|
||||
print(val)
|
||||
self.simple_return()
|
||||
val = subkernel_await(self.simple_return, 1000)
|
||||
print(val)
|
||||
self.simple_self_too()
|
||||
delay(3000*ms)
|
||||
self.ttl4.pulse(1000*ms)
|
||||
delay(1000*ms)
|
Loading…
Reference in New Issue