ZCU208 Setup and Loopback Tutorial

Table of Contents

Click here to go to the bottom of this tutorial.

Back to top

Start

This tutorial shows how to setup the ZCU208 board, and implement the loopback tutorial that we implemented for the RealDigital 4x2 board.

Back to top

Archive

The files needed to recreate everything are here:

Back to top

ZCU208 board setup

Finally got to setting up the ZCU208 that was purchased almost a year ago. This board has a 10MHz cutoff on the inputs and outputs, as opposed to the 4x2 which is around 20MHz.

Back to top

PYNQ Image

To start go to the PYNQ startup page https://www.rfsoc-pynq.io/getting_starting.html and click on ZCU111 and ZCU208 at the bottom. That takes you to a github page, then click on README.md to get more directions.

First thing is to download the new image from the PYNQ website. Unfortunately the link in the README.md doesn't work, so you have to go here to see the images you can download.

It looks like there's been a new image for both the 4x2 and the 208, PYNQ 4.0.0. This image goes with Vivado 2025.2 so we will have to install that version to use the 208. Since that version dates back to Sept 2026, it's pretty new so I'm going to stay with PYNQ 3.1.1 used for the 4x2 tutorials, which uses Vivado 2024.2 which is what we've installed.

So on that page click on "Previous versions" and download 3.1.1 for the 208 board. It's a big zip file, 2.2 GBytes. Extract it, makes a file called zcu208_v3.1.1.img. On the PC, use Win32DiskImager and write the image to the SD Card and insert into the 208.

Boot up
Set boot switches SW2 to ON,OFF,OFF,OFF on pins 1,2,3,4 so that it will boot up from the SD card. Connect the laptop to the 208 with an ethernet cable.

Ethernet
The board has a factory MAC address, which lives in an EEPROM on board, and is printed on a sticker at the top of the board. This one is 00:0a:35:1d:76:24. Normally, when Ubuntu boots up the bootloader reads it from EEPROM and hands it to linux, but the PYNQ image 3.1.1 evidently doesn't do that, and instead the bootloader makes one up and hands it to Ubuntu (I think!). You can tell because if you do a ifconfig, you will see a mac address like:
eth0: flags=4163  mtu 1500
        inet6 fe80::bcb6:b6ff:fe19:69ab  prefixlen 64  scopeid 0x20
        ether be:b6:b6:19:69:ab  txqueuelen 1000  (Ethernet)
        RX packets 24  bytes 1922 (1.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23  bytes 3206 (3.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 42

eth0:1: flags=4163  mtu 1500
        inet 192.168.2.99  netmask 255.255.255.0  broadcast 192.168.2.255
        ether be:b6:b6:19:69:ab  txqueuelen 1000  (Ethernet)
        device interrupt 42

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 180  bytes 12760 (12.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 180  bytes 12760 (12.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
The MAC address here is be:b6:b6:19:69:ab, and the first byte is be. The standard IEEE 6-byte MAC address assigns the first 3 bytes to the manufacturer, and the manufacturer numbers it's devices with the last 3 bytes. The 2 lowest bits of the first byte are reserved as flags: the LSB is 0 for unicast (one device) and 1 for multicast (a group of devices), and the next bit is 0 for factory assigned and 1 for locally administered. The first byte be is 1011 1110, which means that it's locally administered.

We will probably want to use this 208 board on the network, so we will have to modify things and reboot. The fix is to edit (use sudo nano) /etc/network/interfaces.d/eth0 and add hwaddress ether 00:0a:35:xx:xx:xx under the line that has iface. So it should look like this:

iface eth0 inet dhcp
    hwaddress ether 00:0a:35:1d:76:24

After adding this line, reboot, and then do an ifconfig. You should see this:

eth0: flags=4163  mtu 1500
        inet6 fe80::20a:35ff:fe1d:7624  prefixlen 64  scopeid 0x20
        ether 00:0a:35:1d:76:24  txqueuelen 1000  (Ethernet)
        RX packets 71  bytes 9946 (9.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 60  bytes 22655 (22.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 42

eth0:1: flags=4163  mtu 1500
        inet 192.168.2.99  netmask 255.255.255.0  broadcast 192.168.2.255
        ether 00:0a:35:1d:76:24  txqueuelen 1000  (Ethernet)
        device interrupt 42

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 197  bytes 22762 (22.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 197  bytes 22762 (22.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Note that there are 2 ethernet ports, eth0 and eth0:1. The eth0 port is the real port, and eth0:1 is an alias, so they both have the same MAC address. eth0 asks for an address by DHCP, and it will get one if it's plugged into a network with a router. eth0:1 always ahs the fixed address 192.168.2.99 with mask 255.255.255.0, that's the fallback, and that's what you use in the browser on the laptop to connect to the Jupyter server if you've connected the 208 board directly with an ethernet cable.

Clock mezzanine board

There is a clock board that comes in the kit, it's a narrow board covered in metallic RF shielding cans that house low-jitter PLLs and oscillators, mounts in the center slot between the 2 400-pin connectors and generates the precision sample clocks for the ADCs and DACs. It is held in place by 3 screws. Before you connect it, you should see 2 bags with a pair of 6.5 inch skinny black cables per bag. These cables bring the reference clock signals from the clock mezzanine card to the ZYNQ chip. They have very small connectors, so screw these into the 208 board in the connectors labeled "ADC 223 CLK" and "DAC 229 CLK" (right near the black far over the ZYNQ chip) before mounting the clock mezzanine card, as in the photo:

Now you can connect the mezzanine to the 208 board with the 3 screws, and after tightening, attach the 4 black cables to the pair of connects labeled "ADC_REFCLK_A" and "DAC_REFCLK_B". Each cable carries a P or N part of a differential signal, so be sure to keep P on the board attached to P on the mezzanine etc.

It should look like this when done:

Baluns mezzanine board

Next connect the XM655 breakout board used for SMA inputs and outputs. There are 2 connectors and 4 screws holding it in place. That board looks like this:

The board has 2 parts to it: the bottom 2/3 with the silver boxes and SMA connectors are inputs, and the top side with the vertical rectangular strips labeled "ADC VIN" and "DAC VOUT" are connected through the board and the mass connectors underneath to the ZYNQ chip. In the 208 kit there are 2 8-way octopus connectors called "Carlisle" connectors, so they have 8 SMA on one end and a rectangular connector on the other that can be screwed in. This plugs into the silver rectangles at the top in the photo. Here's a picture of a Carlisle:

The way it works is relatively simple. First of all, the balun board XM655 will fit both the 208 and the ZCU216 board, which has twice the number of ADCs and DACs. Each of the 8 SMA connectors on the Carlisle connect to either a P or N inputs. So for the ADC input to the RFSoC, each ADC is driven by a differential pair that comes from an N and P SMA connector on the Carlisle, and each DAC differential output drives an N and P SMA connector on the Carlisle as well. So each Carlisle with 8 SMA connectors get 4 channels of either ADC input or DAC output. There are 4 ADC VIN strips, so that's a total of 16 possible ADC inputs. That accommodates a ZCU216, but for the 208 board, 2 of those strips are not connected to anything:

ZCU208 ADC inputs:

ZCU208 DAC outputs:

Now let's look at the 16 baluns on the XM655 card (the silver square parts). There's a pair of baluns grouped inside the decal, and each pair is labeled with a different bandwidth. There are 3 SMA surrounding each balun. The two at the corners are labled "P" and "N", and these are where the Carlisle SMA cables go. The 3rd SMA is the input for ADC and output for DAC, with labels like "SHFB_ADC_2" etc.

These baluns are not all equivalent. The bandwidths for each pair are 10MHz - 1GHz, 1-4 GHz, 4-5 GHz, and 5-6HGz, for both the ADC and the DAC. The lower limit of 10MHz is lower than the 4x2 board lower limit of 20MHz (I think). The 5-6 GHz for the DAC is greater than the maximum Nyquist frequency on the 208 which is half the maximum sampling frequency of around 10GHz. For the ADC, the maximum sampling frequency is around 5 GHz so the 5-6GHz balun is even less useful unless you want to worry about being in the 2nd Nyquist zone etc. For ADMX, we are usually in the 1-4GHz range so this 208 board can only accommodate 2 ADC and 2 DAC channels at a time, without more balun cards.

I'm going to boot up this board with 1 ADC and 1 DAC connected through the 10MHz-1GHz baluns. Here's how the XM655 board with the 2 Carlisle connected looks:

So you can see the 2 Carlisle connectors with the top 2 SMA of each connected to the 10MHz-1GHz N and P pairs for the ADC (on the left) and DAC (on the right). You have to use the small allen wrench (comes with each Carlisle) to screw in the Carlisle connectors. For the configuration here, the 2 SMA cables from JHC5 come from "P0_255" and "N02_255" connect to channel "ADC 0" tile 225 of the 208 board. "ADC 0" is how Vivado knows the channels, so this channel should be enabled in Vivado, and we use this one because it has the LMX clock on it's clock input pin. The "P" and "N" are of course the differential pair. The DAC we will use is channel 0 of tile 230, which correspond to the 2 top SMA connectors of the Carlisle that's on JHC3.

Note: be sure that you've connected the P cable on the Carlisle to a P input/output on the baluns!

The 208 with the above 2 cards attached should look like this:

Interface with PC

Now we have to connect the 208 board to a PC to run the Jupyter notebook interface. Here we will use an ethernet cable connected to the ethernet plug on the 208 and a PC.

For this test, I'm going to redo the loopback, sending 1 DAC output into 1 ADC input. That means connecting the external output of one of the baluns on the DAC side into the internal ADC input above. So just take a SMA cable, be sure to add a filter (I'm using the same one for the 4x2 loopback test, 1400 MHz low pass filter).

Keep the board powered down.

Connecting the 208 board

Connect an ethernet cable between the 208 and a windows laptop. I use a USB-C bridge with an RF45 port for the laptop side. To make the connection, we will need to assign a static IP address to the USB ethernet adapter on the 192.168.2.x submet. By default, PYNQ images configure the board's ethernet interface with the static fallback IP 192.168.2.99.

Open the network settings in windows 11 by pressing the windows key and R at the same time, and type "ncpa.cpl" and press enter in the Run window that pops up. This brings up a "Network Connections" window. You should see an ethernet adapter in the list of connections there. Right click the ethernet adapter, select Properties, then in the list under "The connection uses the following items" select "Internet Protocol Version 4 (TCP IPv4)", and with that selection highlighted (be careful not to deselect it), click Properties below. click "Use the following iP address" and put 192.168.2.100 in the "IP address" and 255.255.255.0 for "Subnet mask". Hit OK and close and that's all you need to do.

Power up the 208 board

Now, power up the 208 board. Then, connect a USB cable that has USB-A on one side and micro-USB on the other between the 208 and the windows machine. On the 208, it's the micro USB connector next to the power switch. Then look at the device manager on the windows machine. You should see 3 "USB Serial Port" devices under "Ports (COM & LPT)", because the 208 uses a quad-channel USB-to-UARET/JTAG bridge chip which exposes 4 interfaces over that single micro USB cable: one for JTAG (a serial protocol for loading an FPGA), and 3 separate COM ports for the different processors on the board. The lowest 3 COM ports are for the ARM A53 linux console, the R5 processor that is used for real-time cores, and the TI MSP430 board-management microcontroller which handles power rail telemetry, fan control, and setting default clocks. The one we will want is the highest one, COM8, so we can see the linux console. You'll have to just see how your computer maps the 3 COM ports, and use PuTTY to try each one. My guess is that it'll be the highest one every time but you might have to try it to be sure.

Now check that the ethernet works on the board by typing "ifconfig" in the console window and look for "eth0", it should have 192.168.2.100 for the IP address. On the laptop, open Chrome and go to "192.168.2.99/lab". It should ask you for the password (xilinx) and launch the Jupyter notebook. If so you are good to go.

4x2 vs 208 Differences

The ZCU208 and the 4x2 board have the same gen3 ZYNQ chip, so the core DSP logic and RF data converter pipeline will transfer directly without having to change the block design. However, the 208 and 4x2 boards differ in several ways:

Build the Loopback project

I'm going to build this project on the Alienware computer, in the area C:/Users/admx_/drew/208/loopback directory. As a convention, every block in the block design will be given a name in all caps, followed by a / character with a port, and I'll describe what ports are connected to what. This will make it easier to reproduce.

Open Vivado on the alienware and create a new project called loopback_v1 and put it into that directory. Click through defaults until you get to the "Default Part" window, click the "Boards" tab and search for 208 and select the ZCU208 Evaluation board. The status should say "Installed" so you are good to go.

Now we are going to follow what was done in the 4x2 loopback project. There are other ways to do this by starting with the 4x2 project and modifying it, but that will depend highly on an AI advising me what to do and I think that's a rabbit hole. Doing it from scratch is likely much more efficient! Anyway in below, I'm going to blast through the stuff that's a repeat of the 4x2 project, stopping to detail what's new.

Create the block design, rename it to "Loopback", hit OK. In the diagram, add the ZYNQ MPSOC part and rename it to ZYNQ. Then click "Run Block Automation" at the top.

Add the constraints file, then edit it and add these (compression and over-temperature features plus the 2 LEDs):

## compress the bitstream to make it smaller
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]
# enable the over-temperature shutdown features
set_property BITSTREAM.CONFIG.OVERTEMPSHUTDOWN ENABLE [current_design]
#
# set LED0 to show the RX_FIFO reset condition
set_property -dict { PACKAGE_PIN H11 IOSTANDARD LVCMOS18 } [get_ports { LED0 }]
# set LED3 for the heartbeat
set_property -dict { PACKAGE_PIN F11 IOSTANDARD LVCMOS18 } [get_ports { LED3 }]
This will flash LED0 and LED3 on the 8 led strip on the bottom left side of the 208 board, near the bit switches and push buttons.

Next add the 2 AXI DMA blocks ("AXI Direct Memory Access"), call them "AXI_DMA_SG" and "AXI_DMA_NOSG". Make sure scatter gather (SG) is enabled on *SG and disabled on *NOSG, set both buffer length registers to 26. On *SG enable read and disable write, and do the opposite for *NOSG. Hit OK and "Run Connection Automation" twice with everything enabled.

Add a new design source and call it "heartbeat", and open it and add this to the code:

module heartbeat (
    input  aclk,
    input  aresetn,   // active low
    
    output  heartbeat
);

reg [27:0] counter;
assign heartbeat = counter[27];

always @ (posedge aclk) 
    if (aresetn) counter <= counter + 1;
    else counter <= 28'b0;

endmodule

Note that the "heartbeat" name in the constraints file above has to match the output heartbeat in the heartbeat.v code (sorry for naming the module and the output the same but that's ok).

Save it and add it as a module to the block design diagram and rename it as "HEARTBEAT". Connect HEARTBEAT/aclk to ZYNQ/pl_clk0 and connect HEARTBEAT/aresetn to rst_ZYNQ/99M/peripheral_aresetn (on Processor System Reset block rst_ZYNQ_99M or some other name if you renamed it).

Add 2 AXI DMA engines, name them AXI_DMA_SG and AXI_DMA_NOSG. Configure both to have "Width of buffer Length Register" set to 26. Enable "Enable Scatter Gather Engine" on AXI_DMA_SG. On AXI_DMA_SG select "Enable Write Channel" and deselect "Enable Read Channel", and do the opposite on AXI_DMA_NOSG.

Then add the 3 "AXI GPIO" blocks, and rename them to VERSION, RX_FIFO_RESET, and RX_FIFO_TLAST. VERSION should be configured to have a 32 bit input, and the other 2 to have a single bit output. Add 2 ports, call them LED0 and LED3 outputs, matching the names in the constraints file above. Both should be configured as outputs and type data. Connect RX_FIFO_RESET/gpio_io_o (only 1 bit) to LED0 and HEARTBEAT/heartbeat to LED3. Run Connection Automation, and in the list select for everything except for the *TLAST output.

Add 2 "AXI4-Stream Data FIFO" blocks, rename to RX_FIFO and TX_FIFO. Configure both to be 1024 deep with "Independent clocks" set to yes, and TDATA set to 4 bytes. Then connect RX_FIFO/M_AXIS to AXI_DMA_NOSG/S_AXIS_S2MM and TX_FIFO/S_AXIS to AXI_DMA_SG/M_AXIS_MM2S. Add a "Processor System Reset" block, rename to RX_FIFO_RESET_SYNC, and connect RX_FIFO_RESET_SYNC/slowest_sync_clk to RX_FIFO/s_axis_aclk, RX_FIFO_RESET_SYNC/aux_reset_in to RX_FIFO_RESET/gpio_io_o, RX_FIFO_RESET_SYNC/ext_reset to ZYNQ/pl_resetno, and RX_FIFO_RESET_SYNC/peripheral_aresetn to RX_FIFO/s_axis_aresetn. Add 2 constants, rename to "ONE" and "ZERO", change the ZERO value to 0 (both should be 1 bit output), and connect ZERO/dout to RXFIFO_RESET_SYNC/mb_debug_sys_rst and ONE/dout to RX_FIFO_RESET_SYNC/dcm_locked.

And don't click on "Run Connection Automation", it's just doing that because of some dangling lines that we have to connect by hand.

Next we enable the ports that connect the DDR4 on the PS side through the FPGA go the RF data converter. Double click ZYNQ, click "PS-PL Configuration" and enable "AXI HP0 FPD" and "AXI HP1 FPD" ports just like in the tutorial. And don't forget to set the data widths to 32 (default is 128). And change the clock speed to 250 via the "Clock Configuration" link. Hit OK and close that configuration window and you should see the 2 slave ports for HP0 and HP1 on the ZYNQ block.

Next add the 2 AXI smart connections, call them SMART_SG and SMART_NOSG. Change SMART_NOSG to have 1 slave interface, leave the other with 2. These will sit between the DMA engines and the ports on the ZYNQ chip.

Make these connections (this table comes from the loopback tutorial).

SMART_SG
Slave on SMART_SGMaster on AXI_DMA_SGMaster on SMART_SGSlave on ZYNQ
S00_AXIM_AXI_MM2SM00_AXIS_AXI_HP0_FPD
S01_AXIM_AXI_SG
SMART_NOSG
Slave on SMART_NOSGMaster on AXI_DMA_NOSGMaster on SMART_NOSGSlave on ZYNQ
S00_AXIM_AXI_S2MMM00_AXIS_AXI_HP1_FPD

Then connect "aresetn" on both of these SmartConnects to the "peripheral_aresetn" output on the rst_ZYNQ_99M Processor System Reset block.

Next deal with the "TLAST Saga". Make a new source file, call it "axi_tlast_gen", and save it. Then edit it and put the code from the tutorial in and save that. Go back to the diagram and right click, "Add Module" and rename to AXI_TLAST_GEN. Then place AXI_TLAST_GEN between between RX_FIFO/M_AXIS and AXI_DMA_NOSG/S_AXIS_S2MM. Connect the output of RX_FIFO_TLAST to AXI_TLAST_GEN/word_count, and connect AXI_TLAST_GEN/aresetn to any GPIO block s_axi_resetn line, and AXI_TLAST_GEN/aclk to RX_FIFO/m_axis_aclk.

Now for the RF Converter. Add it to the block design and name it RFDC. Set it up almost exactly like what is in the loopback tutorial), except for the following changes:

AXIS_IQ_PACKER/s_axis_i Next create the AXI_IQ_PACKER source and add it as a module to the project, call it AXI_IQ_PACKER, and route the RFDC/m10_axis output to AXIS_IQ_PACKER/s_axis_i and RFDC/m11_axis output to AXIS_IQ_PACKER/s_axis_q and connect AXIS_IQ_PACKER/m_axis to RX_FIFOI/S_AXIS, storing the data in 32 bits packed inside the FIFO. And connect "aclk" and "aresetn" on the packer to "s_axis_aclk" and "s_axis_aresetn" on RX_FIFO.

Next add 2 clocking wizards, name them "RX_FIFO_CLK" and "TX_FIFO_CLK". Change both of them so that the input clock is 46.080, the output clock is 36.864, and deselect reset and locked.

Here's how to finish connecting the clocks from these 2 new clocking wizards:

 RX_FIFO_CLKTX_FIFO_CLK
in1 ←RFDC/clk_adc1RFDC/clk_dac2
out1 → RX_FIFO/s_axis_aclk
RFDC/m1_axis_aclk
RX_FIFO_RESET_SYNC/slowest_sync_clk
AXI_IQ_PACKER/aclk
TX_FIFO/m_axis_aclk
RFDC/s2_axis_aclk

Then connect RX_FIFO_RESET_SYNC/peripheral_aresetn to both RFDC/m1_axis_aresetn and AXIS_IQ_PACKER/aresetn.

Then connect TX_FIFO/M_AXIS to RFDC/s20_axis to complete the DAC data path.

Now add a new "Processor System Reset" block to synchronize the resets to the TX_FIFO, so connect TX_FIFO_CLK/clk_out1 to slowest_sync_clk, connect RFDC/s2_axis_aresetn to perfipheral_aresetn, and connect ZYNQ/pl_resetn0 to ext_reset_in on that block.

Python

Back to top