UltraZohm Setup#
Requirements#
Installed Xilinx toolchain (Vivado and Vitis)
Installed Java
Vivado license
Installed git
Github account
(Optional) Sourcetree
Aim#
Set up the physical connections of the UltraZohm
Generate the bitstream with Vivado
Generate the Vitis workspace
Program the UltraZohm
Debug the UltraZohm
Connect the Javascope to the UltraZohm
Clone the UltraZohm repositories#
Create a folder
ultrazohmUse Git Bash or a terminal to clone the repositories
git clone https://github.com/ultrazohm/ultrazohm_sw.git
After executing the git clone command, the following directory structure exists.
./ultrazohm/
ultrazohm_sw
Generate the Bitstream with Vivado#
Open the block design#
To generate the bitstream in Vivado, open Vivado by double-clicking it.
Open the project in
File -> Project -> OpenChoose the file
~/ultrazohm/ultrazohm_sw/vivado/project/ultrazohm.xprThe project initializes
Check if a valid Vivado license exists in
Help -> Manage License -> View License StatusClick
Open Block DesignThe Block Design is opened (takes several minutes)
Generate Bitstream#
Click on
Generate BitstreamClick
Yesto launch synthesis and implementationChoose the number of CPU jobs/cores that should be used by Vivado (leave a few unused, e.g., for your OS etc.)
Launch the run(s) by clicking
OKThe bitstream is generated. This takes 20 to 60 minutes, depending on your PC!
Open the implemented design after the bitstream generation is completed
Note
More CPU jobs decrease the time Vivado needs to generate the bitstream. However, Vivado requires more RAM for a higher number of jobs. If you run out of RAM and your OS writes to the disk (paging file or swap), decrease the number of jobs!
Export Bitstream via Tcl script#
A Tcl script can be added to the Vivado icons to automate the process of exporting the bitstream since it is a common task.
Tools -> Custom Commands -> Customize CommandsClick on the plus and enter a name, e.g., export_xsa
Click on
Source Tcl filePath:
~/ultrazohm/ultrazohm_sw/tcl_scripts/vivado_export_xsa.tclClick OK
Export Bitstream manually (deprecated method)#
Show steps (collapsed by default)
Export the bitstream in
File -> Export -> Export HardwareChoose
FixedChoose
Include bitstreamChoose the path to which the bitstream will be exported
Path:
~/ultrazohm/ultrazohm_sw/vitis/vivado_exported_xsaOverride the existing file
Vivado exports the file
Generate the Vitis workspace#
See pictures below for all steps!
Navigate to
~/ultrazohm/ultrazohm_sw/vitis/software/Baremetal/src/uzCheck that the configuration in
uz_global_configuration.hmatches your setup (see Global configuration for details)
Important
You might have to adjust the UltraZohm version in uz_global_configuration.h by setting the define UZ_HARDWARE_VERSION to your version (e.g., 2U, 3U, 4U, …)
Open Vitis or launch Vitis from Vivado (
Tools -> Launch Vitis IDE)Choose the workspace
Path:
~/ultrazohm/ultrazohm_sw/vitis/workspaceOpen the XSCT Console in Vitis:
Window -> Show view... -> XSCT ConsoleType the following commands
cd [getws]
source {../../tcl_scripts/vitis_generate_UltraZohm_workspace.tcl}
The script runs for several minutes
The script displays generate_UltraZohm_workspace.tcl script finished…
Note
If the XSCT console is still not visible, press the restore button.
Note
After the script has finished and the workspace has been built, restart Vitis by clicking on File -> Restart .
This is recommended, because otherwise the pre-defined debug configurations are not visible.
This is only necessary after the initial build of the workspace.
For subsequent uses of the workspace, the debug configurations will be visible without additional steps.
Headless Vitis workflow (Linux)#
Source the Vitis 2022.2 settings64.sh so that xsct, vitis, and hw_server are on PATH.
Run the following commands from the repository root.
Close Vitis before modifying its workspace from the command line.
# First use only: create and build an empty vitis/workspace, without a GUI.
make -C vitis generate
# Subsequent builds: platform/BSPs, all applications, and system projects.
make -C vitis build
# Start a local hardware server in another terminal if none is running.
hw_server
# Build, then program the FPGA and download/start both processor applications.
make -C vitis flash
build explicitly selects the Debug build configuration for Baremetal (R5_0) and FreeRTOS (A53_0), because the existing launch scripts load those ELF paths even in Run mode.
It uses the existing exported hardware; it does not run Vivado synthesis.
The workspace uses the checked-in FSBL binary, as configured by the workspace generator.
make -C vitis flash always runs an incremental build of the platform and applications, including R5/Baremetal and A53/FreeRTOS, before programming.
Unchanged sources are not recompiled.
run and build-run are aliases for flash; direct invocation of the Tcl flash or run action also builds first.
It defaults to PROFILE=Run_UltraZohm and sources the same Tcl wrapper as vitis/software/Run_UltraZohm.launch.
This resets the board, programs the FPGA, initializes the PS, and downloads and starts FreeRTOS and Baremetal via the local JTAG hardware server at 127.0.0.1:3121.
The download is volatile; it does not write QSPI flash or create an SD boot image.
Use one connected UltraZohm, as assumed by the existing target-selection script.
Debug_UltraZohm and Debug_UltraZohm_fast_restart_PL_reset still require the Vitis GUI.
The headless launcher rejects these profiles until debugger session handling is implemented; it never silently substitutes Run mode.
make -C vitis open opens the existing workspace.
generate-open preserves the original generate-and-open workflow.
Generation refuses a nonempty workspace, except for create_Vitis_workspace_here.txt.
The Ubuntu Makefile is a convenience wrapper around a shared Tcl entry point; Bash wrappers are not required.
Override XSCT to select an executable outside PATH.
On Ubuntu or Windows, call the same Tcl entry point through XSCT directly. From the repository root:
On Linux (GUI opening requires an existing desktop display):
xsct -norlwrap tcl_scripts/vitis_headless.tcl generate
xsct -norlwrap tcl_scripts/vitis_headless.tcl build
xsct -norlwrap tcl_scripts/vitis_headless.tcl flash Run_UltraZohm
xsct -norlwrap -nodisp tcl_scripts/vitis_headless.tcl open
On native Windows:
xsct.bat tcl_scripts/vitis_headless.tcl generate
xsct.bat tcl_scripts/vitis_headless.tcl build
xsct.bat tcl_scripts/vitis_headless.tcl flash Run_UltraZohm
xsct.bat tcl_scripts/vitis_headless.tcl open
Use xsct.bat if required by your Windows command shell.
For other working directories, supply the absolute path to the Tcl script; workspace paths are resolved relative to that script.
generate-open generates the workspace and then starts Vitis.
GUI actions require vitis on PATH and return after launching it; they do not wait for the GUI to close.
These scripts target Vitis 2022.2.
Programming also requires XILINX_VITIS to point to the installation containing its Tcl utility scripts.
Use the vendor environment setup and installed JTAG drivers.
Build and programming errors return a nonzero exit status; programming never proceeds after a failed build.
Do not run multiple workspace operations concurrently, including from separate terminals.
Native Windows build and hardware programming still require validation.
Physical Setup of the UltraZohm#
Connect the UltraZohm to 230V AC
Connect the Ethernet to your PC
Connect the USB (JTAG) to your PC
For UltraZohm Carrier Board 3v00: Plug an external stop or the external stop dummy into the front panel
For UltraZohm Carrier Board Rev04 and newer: An external stop / dummy is not required
Turn on the UltraZohm – NB: See here for important differences between an older (i.e., pre-Rev05) and newer (Rev05 ff.) system w.r.t. power-on/off
All four LEDs are turned on
Program UltraZohm (Debug)#
Click on the red-marked windows to see the design perspective in Vitis.
Click the arrow next to the debug-icon and choose
Debug Configurations.Choose the appropriate debug config. If the debug configurations are not visible, follow the advice here.
Note
There are two different debug configurations:
To debug the code and use breakpoints, click on the debug-icon (red) and select the
Debug_UltraZohmconfig.To run the code and ignore all breakpoints, click on the run-icon (green) and select the
Run_UltraZohmconfig.Vitis Programming Modes for more details about the different programming modes.
Click on
Debug.After the first debug run, it is sufficient to click the debug-icon.
Start all processors (click on the play button).
Javascope#
Setup the network settings of the Ethernet adapter that is connected to the UltraZohm
IP: 192.168.1.1
Subnet-Mask: 255.255.255.0
See JavaScope
Go to the folder
Start the Javascope
Linux firmware display requirements#
Batch firmware operations require xlsclients and, without a usable display, Xvfb on the machine running XSCT. On Debian/Ubuntu install x11-utils and xvfb; dbus-x11 provides the optional dbus-launch helper. Acquisition alone does not need these tools. Native Windows needs no X11 packages or Linux launcher flags. An attached laptop needs none of these firmware-host dependencies.
Use xsct -norlwrap for direct Linux batch execution. For Linux open and generate-open, use xsct -norlwrap -nodisp with an existing desktop display. ultrazohm-cli and Make targets select these flags automatically. A temporary batch display cannot host a persistent Vitis GUI.
Start the ultrazohm-cli process normally over SSH after installing the dependencies; no xvfb-run wrapper is necessary. Rebuild the checkout ultrazohm-cli and restart its ultrazohm-cli process to pick up launcher changes. Failed generation can leave a partial workspace: preserve it before retrying in an empty workspace. Inspect the job output and timestamp-matching vitis/workspace/IDE.log; Channel closed alone does not identify its cause.