Click here to go to the bottom of this tutorial.
Back to top
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
The files needed to recreate everything are here:
Back to top
Back to top
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.
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
After adding this line, reboot, and then do an
Note that there are 2 ethernet ports,
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:
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.
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.
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.
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:
On the 4x2 board, there are 4 tiles wired up (connected to SMA connectors): 2 ADC tiles
(224 and 226) and 2 DAC tiles (228 and 230).
Both the ADC and DAC tiles are dual tiles (2 channels per tile),
but on the DAC tiles only 1 channel is connected to SMA, whereas for the ADC tiles
both channels are connected (4 ADC and 2 DAC channels connected). Each one of the
4 tiles gets one of the output clocks from the LMX chips soldered to the board with
the clocks routed along traces. Note that the LMX chip gets its clock from the
LMK chip. The default clock frequency (default in PYNQ) is 491.52MHz and that is the
"refclk" frequency used in Vivado for the
loopback project.
On the 208, the clock wiring is different. The clocks on the 208 comes from the
CLK104 mezzanine card. Two of the LMK clocks are routed through the connectors
that connect the CLK104 card to the 208, and these are routed directly to ADC tile
226 and DAC tile 228. Note that the reference clock is 245.76MHz. So if you
use those tiles and use their refclks directly from the clock input pins, you have
to specify 245.76MHz in Vivado.
There are also outputs from the 2 LMX chips on the CLK104 board that can be
connected to the 208 using these small SSPM connectors and the 4 black 6.5in
cables that come with the kit. These connections are labeled "N" and "P"
since they are differential, and named "ADC RFCLK A", "ADC RFCLK B",
"DAC RFCLK A", and "DAC RFCLK B". On the 208 board they are right next to
the fan over the RFSoC chip, labeled "ADC 225 CLK" and "DAC 223 CLK" with
corresponding "N" and "P" labels. So you can use ADC tile 225 on the 208
board and connect those SSPM connectors (small connectors, hard to screw down)
from either the "ADC RFCLK A" or "*B" output of the CLK104. On the DAC side,
you can use DAC tile 230 (the silkscreen on the 208 is wrong, it's 229 for
the 216 board but 230 for the 208) and connect from CLK104 "DAC RFCLK A" (or
"*B") outputs.
To get clocks to any other tile,
you have to configure the clock forwarding in Vivado.
There are 4 pair of SSMP connectors on the CLK104 board. But you only can
use 2 pair. The other 2 are just there for convience, so you
can use these for any other purpose (like synchronizing boards, etc).
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
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):
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:
Note that the "heartbeat" name in the constraints file above has to match the
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).
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:
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.
Start
Archive
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.
PYNQ Image
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
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.
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
ifconfig. You should
see this:
eth0: flags=4163
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.
Interface with PC
Connecting the 208 board
Power up the 208 board
4x2 vs 208 Differences
Build the Loopback project
/ character with
a port, and I'll describe what ports are connected to what. This will make it easier
to reproduce.
## 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.
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
output heartbeat in the heartbeat.v code (sorry for naming the module and
the output the same but that's ok).
SMART_SG
Slave on SMART_SG Master on AXI_DMA_SG Master on SMART_SG Slave on ZYNQ
S00_AXI M_AXI_MM2S M00_AXI S_AXI_HP0_FPD
S01_AXI M_AXI_SG
SMART_NOSG
Slave on SMART_NOSG Master on AXI_DMA_NOSG Master on SMART_NOSG Slave on ZYNQ
S00_AXI M_AXI_S2MM M00_AXI S_AXI_HP1_FPD
RX_FIFO_CLK TX_FIFO_CLK
in1 ← RFDC/clk_adc1 RFDC/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