|
| 1 | +.. _ad9081 quickstart vcu118: |
| 2 | + |
| 3 | +VCU118 Quick start |
| 4 | +=============================================================================== |
| 5 | + |
| 6 | +This guide provides quick instructions on how to setup the |
| 7 | +:adi:`EVAL-AD9081` / :adi:`EVAL-AD9082` on: |
| 8 | + |
| 9 | +- :xilinx:`VCU118` FMC+ |
| 10 | + |
| 11 | +.. image:: ../../images/vcu118.png |
| 12 | + :width: 900 |
| 13 | + |
| 14 | +.. esd-warning:: |
| 15 | + |
| 16 | +Using Linux as software |
| 17 | +------------------------------------------------------------------------------- |
| 18 | + |
| 19 | +Necessary files |
| 20 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 21 | + |
| 22 | +The following files are needed for the system to boot: |
| 23 | + |
| 24 | +- HDL boot image: ``BOOT.BIN`` |
| 25 | +- Linux Kernel image: ``Image`` |
| 26 | +- Linux device tree: ``system.dtb`` |
| 27 | + |
| 28 | +They can either be taken from the SD card -- already generated by us, or you |
| 29 | +can build them manually. |
| 30 | + |
| 31 | +In the following sections, we explain **how to take them from the SD card**. |
| 32 | + |
| 33 | +Instructions on how to manually build the boot files from source can be found |
| 34 | +here: |
| 35 | + |
| 36 | +- :ref:`linux-kernel microblaze` |
| 37 | +- :external+hdl:ref:`ad9081_fmca_ebz` build documentation. More HDL build |
| 38 | + details at :external+hdl:ref:`build_hdl`. |
| 39 | + |
| 40 | +Required Software |
| 41 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 42 | + |
| 43 | +- SD Card 16GB imaged with :external+adi-kuiper-gen:doc:`Kuiper <index>` |
| 44 | + (check out that guide on how to do it, then come back to this section) |
| 45 | +- A UART terminal (Putty/Tera Term/Minicom, etc.) with baud rate 115200 (8N1) |
| 46 | + |
| 47 | +Required Hardware |
| 48 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 49 | + |
| 50 | +- AMD Xilinx :xilinx:`VCU118` Rev 1.0 or later FPGA board and its power supply |
| 51 | +- :adi:`EVAL-AD9081` / :adi:`EVAL-AD9082` FMC evaluation board |
| 52 | +- SD card with at least 16GB of memory |
| 53 | +- 2 x Micro-USB cable |
| 54 | +- LAN cable (Ethernet) |
| 55 | +- Signal generator |
| 56 | +- 4x SMA cables |
| 57 | +- (Optional) USB keyboard & mouse and a HDMI compatible monitor |
| 58 | +- (Optional) 4 way splitter |
| 59 | + |
| 60 | +More details as to why you need these, can be found at |
| 61 | +:ref:`ad9081 prerequisites`. |
| 62 | + |
| 63 | +Testing |
| 64 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 65 | + |
| 66 | +Creating the setup |
| 67 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 68 | + |
| 69 | +.. image:: ../../images/ad9081_vcu118_setup.png |
| 70 | + :width: 800 |
| 71 | + |
| 72 | +In the following example, we will make a physical loopback between the ADC |
| 73 | +and the DAC channels on the evaluation board, using SMA cables. |
| 74 | + |
| 75 | +Follow the steps in this order, to avoid damaging the components: |
| 76 | + |
| 77 | +#. Connect the SMA cables ADC0-DAC0, ADC1-DAC1, ADC2-DAC2, ADC3-DAC3 |
| 78 | +#. Connect the :adi:`EVAL-AD9081` / :adi:`EVAL-AD9082` FMC board to the |
| 79 | + FPGA carrier **FMC+** socket |
| 80 | +#. Insert SD card into the SD card socket on the FPGA |
| 81 | +#. Configure :xilinx:`VCU118` for SD card boot mode (mode SW6[3:1] switch in |
| 82 | + the position **1: Down, 2: Down, 3: Up, 4: Up** ) |
| 83 | +#. Plug-in an Ethernet cable from your router/switch to the Ethernet port on |
| 84 | + the FPGA board |
| 85 | +#. Connect USB UART (Micro-USB) to your host PC |
| 86 | +#. (Optional) Connect a monitor to the FPGA by HDMI, and a mouse and a keyboard |
| 87 | +#. Connect the power supply for the FPGA |
| 88 | +#. Turn on the power switch on the FPGA board |
| 89 | +#. Observe Kernel and serial console output messages on your terminal (use |
| 90 | + the first ttyUSB or COM port registered) |
| 91 | + |
| 92 | +Boot messages |
| 93 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 94 | + |
| 95 | +The following is what is printed in the serial console, after you have |
| 96 | +connected to the proper ttyUSB or COM port: |
| 97 | + |
| 98 | +.. collapsible:: Complete boot log |
| 99 | + |
| 100 | + :: |
| 101 | + |
| 102 | + U-Boot 2018.01-21442-gf06dec3cab (Nov 10 2023 - 16:08:56 +0200) Xilinx ZynqMP VCU118 revA, Build: jenkins-development-build_uboot-6 |
| 103 | + |
| 104 | + I2C: ready |
| 105 | + DRAM: 4 GiB |
| 106 | + |
| 107 | + |
| 108 | +Useful commands for the serial terminal |
| 109 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 110 | + |
| 111 | +The below commands are to be run in the serial terminal connected to the FPGA. |
| 112 | + |
| 113 | +To find out the IP of the FPGA board, run the following command and take the |
| 114 | +IP specified at "eth0 inet": |
| 115 | + |
| 116 | +.. shell:: |
| 117 | + |
| 118 | + $ifconfig |
| 119 | + |
| 120 | +To see the IIO devices detected, run: |
| 121 | + |
| 122 | +.. shell:: |
| 123 | + |
| 124 | + $iio_info | grep iio:device |
| 125 | + iio:device0: hmc7044 |
| 126 | + iio:device1: axi-ad9081-tx-hpc (buffer capable) |
| 127 | + iio:device2: axi-ad9081-rx-hpc (buffer capable) |
| 128 | + |
| 129 | +To see the EEPROM specifications, run: |
| 130 | + |
| 131 | +.. shell:: |
| 132 | + |
| 133 | + $fru-dump -b /sys/bus/i2c/devices/15-0050/eeprom |
| 134 | + |
| 135 | +To use the :dokuwiki:`JESD204 status utility <resources/tools-software/linux-software/jesd_status>`, |
| 136 | +run: |
| 137 | + |
| 138 | +.. shell:: |
| 139 | + |
| 140 | + $jesd_status |
| 141 | + |
| 142 | +All links should be in DATA without errors: |
| 143 | + |
| 144 | +.. shell:: |
| 145 | + |
| 146 | + $jesd_status -s |
| 147 | + (DEVICES) Found 2 JESD204 Link Layer peripherals |
| 148 | + |
| 149 | + (0): axi-jesd204-rx/44a90000.axi-jesd204-rx [*] |
| 150 | + (1): axi-jesd204-tx/44b90000.axi-jesd204-tx |
| 151 | + |
| 152 | + (STATUS) |
| 153 | + Link is enabled |
| 154 | + Link Status DATA |
| 155 | + Measured Link Clock (MHz) 249.998 |
| 156 | + Reported Link Clock (MHz) 250.000 |
| 157 | + Measured Device Clock (MHz) 250.000 |
| 158 | + Reported Device Clock (MHz) 250.000 |
| 159 | + Desired Device Clock (MHz) 250.000 |
| 160 | + Lane rate (MHz) 10000.000 |
| 161 | + Lane rate / 40 (MHz) 250.000 |
| 162 | + LMFC rate (MHz) 7.812 |
| 163 | + SYSREF captured Yes |
| 164 | + SYSREF alignment error No |
| 165 | + SYNC~ |
| 166 | + |
| 167 | + (LANE STATUS) |
| 168 | + Lane# 0 1 2 3 |
| 169 | + Errors 0 0 0 0 |
| 170 | + Latency (Multiframes/Octets) 1/22 1/20 1/25 1/21 |
| 171 | + CGS State DATA DATA DATA DATA |
| 172 | + Initial Frame Sync Yes Yes Yes Yes |
| 173 | + Initial Lane Alignment Sequence Yes Yes Yes Yes |
| 174 | + |
| 175 | +To power off the system, run the following command, and wait for the final |
| 176 | +message to be printed, then power off the FPGA board from the switch as well. |
| 177 | + |
| 178 | +.. shell:: |
| 179 | + |
| 180 | + $poweroff |
| 181 | + |
| 182 | +To reboot the system, run: |
| 183 | + |
| 184 | +.. shell:: |
| 185 | + |
| 186 | + $reboot |
| 187 | + |
| 188 | +.. important:: |
| 189 | + |
| 190 | + Even thought this is Linux, this is a persistent file systems. Care should |
| 191 | + be taken not to corrupt the file system -- please shut down things, don't |
| 192 | + just turn off the power switch. Depending on your monitor, the standard |
| 193 | + power off could be hiding. You can do this from the terminal as well with |
| 194 | + :code:`sudo shutdown -h now` or the above-mentioned command for powering |
| 195 | + off. |
| 196 | + |
| 197 | +.. include:: ../../common/using-iio-osc.rst |
| 198 | + |
| 199 | +About the IIO devices |
| 200 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 201 | +.. |
| 202 | + TBD |
| 203 | +
|
| 204 | +Using no-OS as software |
| 205 | +------------------------------------------------------------------------------- |
| 206 | + |
| 207 | +Necessary files |
| 208 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 209 | + |
| 210 | +The following files are needed for the system to boot: |
| 211 | + |
| 212 | +- HDL boot file: ``system_top.xsa`` |
| 213 | +- no-OS project: :git-no-os:`projects/ad9081` |
| 214 | + |
| 215 | +Instructions on how to build the boot files from source can be found here: |
| 216 | + |
| 217 | +- :external+no-OS:doc:`projects/adc/ad9081`. More no-OS build |
| 218 | + details at :external+no-OS:doc:`build_guide`. |
| 219 | +- :external+hdl:ref:`ad9081_fmca_ebz`. More HDL build details at |
| 220 | + :external+hdl:ref:`build_hdl`. |
| 221 | + |
| 222 | +Required Software |
| 223 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 224 | + |
| 225 | +- AMD Xilinx Vivado and Vitis (downloading Vitis from |
| 226 | + `here <https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vitis.html>`_ |
| 227 | + will include Vivado as well) |
| 228 | +- An UART terminal (Putty/Tera Term/Minicom, etc.), Baud rate 115200 (8N1) |
| 229 | + |
| 230 | +Required Hardware |
| 231 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 232 | + |
| 233 | +- AMD Xilinx :xilinx:`VCU118` Rev 1.0 or later FPGA board and its power supply |
| 234 | +- :adi:`EVAL-AD9081` / :adi:`EVAL-AD9082` FMC evaluation board |
| 235 | +- 2x Micro-USB cables, one for UART and one for JTAG |
| 236 | +- (Optional) USB keyboard & mouse and a HDMI-compatible monitor |
| 237 | + |
| 238 | +More details as to why you need these, can be found at |
| 239 | +:ref:`ad9081 prerequisites`. |
| 240 | + |
| 241 | +Testing |
| 242 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 243 | + |
| 244 | +Creating the setup |
| 245 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 246 | + |
| 247 | +.. image:: ../../images/ad9081_vcu118_setup.png |
| 248 | + :width: 800 |
| 249 | + |
| 250 | +Follow the steps in this order, to avoid damaging the components: |
| 251 | + |
| 252 | +#. Connect the :adi:`EVAL-AD9081` / :adi:`EVAL-AD9082` FMC board to the |
| 253 | + FPGA carrier **FMC+** socket |
| 254 | +#. Configure :xilinx:`VCU118` for SD card boot mode (mode SW6[3:1] switch in |
| 255 | + the position **1: Down, 2: Down, 3: Up, 4: Up** ) |
| 256 | +#. Connect USB UART (Micro-USB) to your host PC |
| 257 | +#. Connect USB JTAG (Micro-USB) to your host PC |
| 258 | +#. (Optional) Connect a monitor to the FPGA by HDMI, and a mouse and a keyboard |
| 259 | +#. Turn on the power switch on the FPGA board |
| 260 | +#. Observe console output messages on your terminal (use the first ttyUSB or |
| 261 | + COM port registered) |
| 262 | + |
| 263 | +Console output |
| 264 | +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 265 | + |
| 266 | +The following is what is printed in the serial console, after you have |
| 267 | +connected to the proper ttyUSB or COM port: |
| 268 | + |
| 269 | +.. collapsible:: Complete boot log |
| 270 | + |
| 271 | + :: |
| 272 | + |
| 273 | + Xilinx Microblaze First Stage Boot Loader |
| 274 | + |
| 275 | +.. |
| 276 | + TBD |
| 277 | +
|
| 278 | +.. include:: ../../common/using-iio-osc.rst |
0 commit comments