forked from M-Labs/artiq
README_PHASER: update
This commit is contained in:
parent
5efd0fcea5
commit
d34084be0f
|
@ -1,16 +1,15 @@
|
||||||
ARTIQ Phaser
|
ARTIQ Phaser
|
||||||
============
|
============
|
||||||
|
|
||||||
This ARTIQ branch contains a proof-of-concept design of a GHz-datarate multichannel direct digital synthesizer (DDS) compatible with ARTIQ's RTIO channels.
|
This ARTIQ branch contains a proof-of-concept design of a GHz-datarate, multi-channel, interpolating, multi-tone, direct digital synthesizer (DDS) compatible with ARTIQ's RTIO channels.
|
||||||
In later developments this proof-of-concept can be expanded to provide a two-tone output with spline modulation and multi-DAC synchronization.
|
Ultimately it will be the basis for the ARTIQ Sayma Smart Arbitrary Waveform Generator project. See https://github.com/m-labs/sinara and https://github.com/m-labs/artiq-hardware.
|
||||||
Ultimately it will be the basis for the ARTIQ Sayma Smart Arbitrary Waveform Generator project. See https://github.com/m-labs/sayma and https://github.com/m-labs/artiq-hardware.
|
|
||||||
|
|
||||||
*Features*:
|
*Features*:
|
||||||
|
|
||||||
* up to 4 channels
|
* up to 4 channels
|
||||||
* up to 500 MHz data rate per channel (KC705 limitation)
|
* up to 500 MHz data rate per channel (KC705 limitation)
|
||||||
* up to 8x interpolation to 2.4 GHz DAC sample rate
|
* up to 8x interpolation to 2.4 GHz DAC sample rate
|
||||||
* Real-time control over amplitude, frequency, phase of each channel through ARTIQ RTIO commands
|
* Real-time sample-coherent control over amplitude, frequency, phase of each channel through ARTIQ RTIO commands
|
||||||
* Full configurability of the AD9154 and AD9516 through SPI with ARTIQ kernel support
|
* Full configurability of the AD9154 and AD9516 through SPI with ARTIQ kernel support
|
||||||
* All SPI registers and register bits exposed as human readable names
|
* All SPI registers and register bits exposed as human readable names
|
||||||
* Parametrized JESD204B core (also capable of operation with eight lanes)
|
* Parametrized JESD204B core (also capable of operation with eight lanes)
|
||||||
|
@ -18,12 +17,11 @@ Ultimately it will be the basis for the ARTIQ Sayma Smart Arbitrary Waveform Gen
|
||||||
|
|
||||||
The hardware required to use the ARTIQ phaser branch is a KC705 with an AD9154-FMC-EBZ plugged into the HPC connector and a low-noise sample rate reference clock.
|
The hardware required to use the ARTIQ phaser branch is a KC705 with an AD9154-FMC-EBZ plugged into the HPC connector and a low-noise sample rate reference clock.
|
||||||
|
|
||||||
This work was supported by the Army Research Lab.
|
This work was supported by the Army Research Lab and the University of Maryland.
|
||||||
|
|
||||||
The code that was developed for this project is located in several repositories:
|
The code that was developed for this project is located in several repositories:
|
||||||
|
|
||||||
* In ARTIQ, the SAWG and Phaser code: https://github.com/m-labs/artiq/compare/phaser
|
* In ARTIQ, the SAWG and Phaser code: https://github.com/m-labs/artiq/compare/phaser2
|
||||||
* The CORDIC core has been reused from the PDQ2 gateware https://github.com/m-labs/pdq2
|
|
||||||
* The Migen/MiSoC JESD204B core: https://github.com/m-labs/jesd204b
|
* The Migen/MiSoC JESD204B core: https://github.com/m-labs/jesd204b
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,7 +30,7 @@ Installation
|
||||||
|
|
||||||
These installation instructions are a short form of those in the ARTIQ manual.
|
These installation instructions are a short form of those in the ARTIQ manual.
|
||||||
Please refer to and follow the ARTIQ manual for more details:
|
Please refer to and follow the ARTIQ manual for more details:
|
||||||
https://m-labs.hk/artiq/manual-release-2/index.html
|
https://m-labs.hk/artiq/manual-master/index.html
|
||||||
|
|
||||||
* Set up a new conda environment and activate it.
|
* Set up a new conda environment and activate it.
|
||||||
* Install the standard ARTIQ runtime/install dependencies.
|
* Install the standard ARTIQ runtime/install dependencies.
|
||||||
|
@ -42,22 +40,20 @@ https://m-labs.hk/artiq/manual-release-2/index.html
|
||||||
* Install the standard ARTIQ build dependencies.
|
* Install the standard ARTIQ build dependencies.
|
||||||
They are all available as conda packages in m-labs/main or m-labs/dev for linux-64:
|
They are all available as conda packages in m-labs/main or m-labs/dev for linux-64:
|
||||||
|
|
||||||
- migen =0.4
|
- migen
|
||||||
- misoc =0.4
|
- misoc
|
||||||
- llvm-or1k =3.8
|
- jesd204b
|
||||||
|
- llvm-or1k
|
||||||
- rust-core-or1k
|
- rust-core-or1k
|
||||||
- cargo
|
- cargo
|
||||||
- binutils-or1k-linux >=2.27
|
- binutils-or1k-linux
|
||||||
|
|
||||||
* Install a recent version of Vivado (tested and developed with 2016.2).
|
* Install a recent version of Vivado (tested and developed with 2016.2).
|
||||||
* Checkout the ARTIQ phaser branch and the JESD204B core: ::
|
* Do a checkout of the ARTIQ phaser2 branch: ::
|
||||||
|
|
||||||
mkdir ~/src
|
mkdir ~/src
|
||||||
cd ~/src
|
cd ~/src
|
||||||
git clone --recursive -b phaser https://github.com/m-labs/artiq.git
|
git clone --recursive -b phaser2 https://github.com/m-labs/artiq.git
|
||||||
git clone https://github.com/m-labs/jesd204b.git
|
|
||||||
cd jesd204b
|
|
||||||
python setup.py develop
|
|
||||||
cd ../artiq
|
cd ../artiq
|
||||||
python setup.py develop
|
python setup.py develop
|
||||||
|
|
||||||
|
@ -74,11 +70,13 @@ Setup
|
||||||
|
|
||||||
* Compile the ARTIQ Phaser bitstream, bios, and runtime (c.f. ARTIQ manual): ::
|
* Compile the ARTIQ Phaser bitstream, bios, and runtime (c.f. ARTIQ manual): ::
|
||||||
|
|
||||||
python -m artiq.gateware.targets.phaser --toolchain vivado
|
python -m artiq.gateware.targets.phaser
|
||||||
|
|
||||||
|
* Generate an ARTIQ configuration flash image with MAC and IP address (see the
|
||||||
|
documentation for ``artiq_mkfs``). Name it ``phaser_config.bin``.
|
||||||
* Run the following OpenOCD command to flash the ARTIQ phaser design: ::
|
* Run the following OpenOCD command to flash the ARTIQ phaser design: ::
|
||||||
|
|
||||||
openocd -f board/kc705.cfg -c "init; jtagspi_init 0 bscan_spi_xc7k325t.bit; jtagspi_program misoc_phaser_kc705/gateware/top.bin 0x000000; jtagspi_program misoc_phaser_kc705/software/bios/bios.bin 0xaf0000; jtagspi_program misoc_phaser_kc705/software/runtime/runtime.fbi 0xb00000; xc7_program xc7.tap; exit"
|
openocd -f board/kc705.cfg -c "init; jtagspi_init 0 bscan_spi_xc7k325t.bit; jtagspi_program misoc_phaser_kc705/gateware/top.bin 0x000000; jtagspi_program misoc_phaser_kc705/software/bios/bios.bin 0xaf0000; jtagspi_program misoc_phaser_kc705/software/runtime/runtime.fbi 0xb00000;jtagspi_program phaser_config.bin 0xb80000; xc7_program xc7.tap; exit"
|
||||||
|
|
||||||
The proxy bitstream ``bscan_spi_xc7k325t.bit`` can be found at https://github.com/jordens/bscan_spi_bitstreams or in any ARTIQ conda package for the KC705.
|
The proxy bitstream ``bscan_spi_xc7k325t.bit`` can be found at https://github.com/jordens/bscan_spi_bitstreams or in any ARTIQ conda package for the KC705.
|
||||||
See the source code of ``artiq_flash.py`` from ARTIQ for more details.
|
See the source code of ``artiq_flash.py`` from ARTIQ for more details.
|
||||||
|
@ -91,7 +89,7 @@ Setup
|
||||||
* Refer to the ARTIQ documentation to configure an IP address and other settings for the transmitter device.
|
* Refer to the ARTIQ documentation to configure an IP address and other settings for the transmitter device.
|
||||||
If the board was running stock ARTIQ before, the settings will be kept.
|
If the board was running stock ARTIQ before, the settings will be kept.
|
||||||
* A 300 MHz clock of roughly 10 dBm (0.2 to 3.4 V peak-to-peak into 50 Ohm) must be connected to the AD9154-FMC-EBZ J1.
|
* A 300 MHz clock of roughly 10 dBm (0.2 to 3.4 V peak-to-peak into 50 Ohm) must be connected to the AD9154-FMC-EBZ J1.
|
||||||
The external RTIO clock, DAC deviceclock, FPGA deviceclock, and SYSREF are derived from this signal.
|
The external RTIO clock, DAC deviceclock, FPGA deviceclock, and SYSREF are derived from this signal. There is no internal RTIO clock.
|
||||||
* An example device database, several status and test scripts are provided in ``artiq/examples/phaser/``. ::
|
* An example device database, several status and test scripts are provided in ``artiq/examples/phaser/``. ::
|
||||||
|
|
||||||
cd artiq/examples/phaser
|
cd artiq/examples/phaser
|
||||||
|
@ -109,9 +107,9 @@ Usage
|
||||||
* Run ``artiq_run repository/ad9154_test_status.py`` to retrieve and print several status registers from the AD9154 DAC.
|
* Run ``artiq_run repository/ad9154_test_status.py`` to retrieve and print several status registers from the AD9154 DAC.
|
||||||
* Run ``artiq_run repository/ad9154_test_prbs.py`` to test the JESD204B PHY layer for bit errors. Reboot the core device afterwards.
|
* Run ``artiq_run repository/ad9154_test_prbs.py`` to test the JESD204B PHY layer for bit errors. Reboot the core device afterwards.
|
||||||
* Run ``artiq_run repository/ad9154_test_stpl.py`` to executes a JESD204B short transport layer test.
|
* Run ``artiq_run repository/ad9154_test_stpl.py`` to executes a JESD204B short transport layer test.
|
||||||
* Run ``artiq_run repository/sawg.py`` for an example that sets up amplitudes, frequencies, and phases on all four DDS channels.
|
|
||||||
* Run ``artiq_run repository/demo.py`` for an example that exercises several different use cases of synchronized phase, amplitude, and frequency updates.
|
* Run ``artiq_run repository/demo.py`` for an example that exercises several different use cases of synchronized phase, amplitude, and frequency updates.
|
||||||
for an example that exercises several different use cases of synchronized phase, amplitude, and frequency updates.
|
for an example that exercises several different use cases of synchronized phase, amplitude, and frequency updates.
|
||||||
|
* Run ``artiq_run repository/demo_2tone.py`` for an example that emits a shaped two-tone pulse.
|
||||||
* Implement your own experiments using the SAWG channels.
|
* Implement your own experiments using the SAWG channels.
|
||||||
* Verify clock stability between the sample rate reference clock and the DAC outputs.
|
* Verify clock stability between the sample rate reference clock and the DAC outputs.
|
||||||
* Changes to the AD9154 configuration can also be performed at runtime in experiments.
|
* Changes to the AD9154 configuration can also be performed at runtime in experiments.
|
||||||
|
|
Loading…
Reference in New Issue