2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-27 20:28:25 +08:00
artiq/doc/manual/core_device.rst

84 lines
3.9 KiB
ReStructuredText
Raw Normal View History

2015-08-08 21:24:13 +08:00
Core device
===========
2015-08-08 22:59:53 +08:00
The core device is a FPGA-based hardware component that contains a softcore CPU tightly coupled with the so-called RTIO core that provides precision timing. The CPU executes Python code that is statically compiled by the ARTIQ compiler, and communicates with the core device peripherals (TTL, DDS, etc.) over the RTIO core. This architecture provides high timing resolution, low latency, low jitter, high level programming capabilities, and good integration with the rest of the Python experiment code.
2015-10-13 18:45:04 +08:00
While it is possible to use all the other parts of ARTIQ (controllers, master, GUI, dataset management, etc.) without a core device, many experiments require it.
2015-08-08 22:59:53 +08:00
2015-08-08 21:24:13 +08:00
.. _core-device-flash-storage:
Flash storage
*************
2015-08-08 22:59:53 +08:00
The core device contains some flash space that can be used to store configuration data.
2015-08-08 21:24:13 +08:00
This storage area is used to store the core device MAC address, IP address and even the idle kernel.
2015-08-08 22:59:53 +08:00
The flash storage area is one sector (typically 64 kB) large and is organized as a list of key-value records.
2015-08-08 21:24:13 +08:00
This flash storage space can be accessed by using ``artiq_coreconfig`` (see: :ref:`core-device-configuration-tool`).
2015-08-08 21:24:13 +08:00
2015-08-21 13:33:23 +08:00
.. _board-ports:
2015-08-08 21:24:13 +08:00
FPGA board ports
2015-08-08 21:24:13 +08:00
****************
KC705
-----
The main target board for the ARTIQ core device is the KC705 development board from Xilinx. It supports the NIST QC1 hardware via an adapter, and the NIST QC2 hardware (FMC).
With the QC1 hardware, the TTL lines are mapped as follows:
+--------------+------------+--------------+
| RTIO channel | TTL line | Capability |
+==============+============+==============+
| 0 | PMT0 | Input |
+--------------+------------+--------------+
| 1 | PMT1 | Input |
+--------------+------------+--------------+
| 2-16 | TTL0-14 | Output |
+--------------+------------+--------------+
| 17 | SMA_GPIO_N | Input+Output |
+--------------+------------+--------------+
| 18 | LED | Output |
+--------------+------------+--------------+
| 19 | TTL15 | Clock |
+--------------+------------+--------------+
Pipistrello
-----------
2015-08-21 13:33:23 +08:00
The low-cost Pipistrello FPGA board can be used as a lower-cost but slower alternative. The current USB over serial protocol also suffers from limitations (no monitoring/injection, no idle experiment, no kernel interruptions, lack of robustness).
When plugged to an adapter, the NIST QC1 hardware can be used. The TTL lines are mapped to RTIO channels as follows:
+--------------+------------+------------+
| RTIO channel | TTL line | Capability |
+==============+============+============+
| 0 | PMT0 | Input |
+--------------+------------+------------+
| 1 | PMT1 | Input |
+--------------+------------+------------+
| 2-16 | TTL0-14 | Output |
+--------------+------------+------------+
| 17 | EXT_LED | Output |
+--------------+------------+------------+
| 18 | USER_LED_1 | Output |
+--------------+------------+------------+
| 19 | USER_LED_2 | Output |
+--------------+------------+------------+
| 20 | USER_LED_3 | Output |
+--------------+------------+------------+
| 21 | USER_LED_4 | Output |
+--------------+------------+------------+
| 22 | TTL15 | Clock |
+--------------+------------+------------+
The input only limitation on channels 0 and 1 comes from the QC-DAQ adapter. When the adapter is not used (and physically unplugged from the Pipistrello board), the corresponding pins on the Pipistrello can be used as outputs. Do not configure these channels as outputs when the adapter is plugged, as this would cause electrical contention.
2015-06-30 02:21:54 +08:00
The board can accept an external RTIO clock connected to PMT2. If the DDS box
does not drive the PMT2 pair, use XTRIG and patch the XTRIG transceiver output
2015-06-30 02:21:54 +08:00
on the adapter board onto C:15 disconnecting PMT2.