ZynqMP PS Design with Linux Example and simple frequency counter to measure SI5338 Reference CLK with Vivado HW-Manager. Only for use with TEF1002 Carrier.
Wiki Resources page: http://trenz.org/te0820-info
| Date | Vivado | Project Built | Authors | Description |
|---|---|---|---|---|
| 2025-07-24 | 2024.2 | TE0820-te0820-tef1002rd_noprebuilt-vivado_2024.2-build_1_20250724104529.zip TE0820-te0820-tef1002rd-vivado_2024.2-build_1_20250724104529.zip | John Hartfiel |
|
| 2020-03-25 | 2019.2 | TE0820-TD_TEF1002_noprebuilt-vivado_2019.2-build_8_20200325084054.zip TE0820-TD_TEF1002-vivado_2019.2-build_8_20200325084033.zip | Martin Rohrmüller/John Hartfiel |
|
| 2020-02-14 | 2019.2 | TE0820-TD_TEF1002_noprebuilt-vivado_2019.2-build_6_20200217120248.zip TE0820-TD_TEF1002-vivado_2019.2-build_6_20200217120209.zip | Martin Rohrmüller |
|
| Issues | Description | Workaround | To be fixed version |
|---|---|---|---|
| - | - | - | - |
| Software | Version | Note |
|---|---|---|
| Vitis | 2014.2 | needed Vivado is included into Vitis installation |
| PetaLinux | 2014.2 | needed |
| SI ClockBuilder Pro | --- | optional |
Basic description of TE Board Part Files is available on TE Board Part Files.
Complete List is available on <design name>/board_files/*_board_files.csv
Design supports following modules:
| Module Model | Board Part Short Name | PCB Revision Support | DDR | QSPI Flash | EMMC | Others | Notes |
|---|---|---|---|---|---|---|---|
| TE0820-03-02CG-1EA | 2cg_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-02CG-1ED | 2cg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-02EG-1EA | 2eg_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-02EG-1EL | 2eg_1e_2gb | REV03 | 2GB | 128MB | 4GB | 2.5 mm connectors | NA |
| TE0820-03-03CG-1EA | 3cg_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-03EG-1EA | 3eg_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-03EG-1EL | 3eg_1e_2gb | REV03 | 2GB | 128MB | 4GB | 2.5 mm connectors | NA |
| TE0820-03-04CG-1EA | 4cg_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-04EV-1EA | 4ev_1e_2gb | REV03 | 2GB | 128MB | 4GB | NA | NA |
| TE0820-03-2AE21FA | 2cg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-2AI21FA | 2cg_1i_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-2BE21FA | 2eg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-2BE21FL | 2eg_1e_2gb | REV03 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-03-2BI21FA | 2eg_1i_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-2BI21FL | 2eg_1i_2gb | REV03 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-03-3AE21FA | 3cg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-3AI210A | 3cg_1i_2gb | REV03 | 2GB | 128MB | 0GB | NA | NA |
| TE0820-03-3AI21FA | 3cg_1i_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-3BE21FA | 3eg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-3BE21FL | 3eg_1e_2gb | REV03 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-03-4AE21FA | 4cg_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-4AI21FI | 4cg_1i_x_2gb | REV03 | 2GB | 128MB | 8GB | without ETH PHY | NA |
| TE0820-03-4DE21FA | 4ev_1e_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-4DE21FC | 4ev_1e_2gb | REV03 | 2GB | 128MB | 8GB | without encryption NCNR | NA |
| TE0820-03-4DE21FL | 4ev_1e_2gb | REV03 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-03-4DI21FA | 4ev_1i_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-5DI21FA | 5ev_1i_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-03-5DR21FA | 5ev_1q_2gb | REV03 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2AE21FA | 2cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2AI21FA | 2cg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2AI21MC | 2cg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BE21-V1 | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | Customised |
| TE0820-04-2BE21FA | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BE21FAJ | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | without spacers | NA |
| TE0820-04-2BE21FL | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-04-2BE21MA | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BE21MAJ | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BI21FA | 2eg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BI21FL | 2eg_1i_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-04-2BI21MA | 2eg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-2BI21ML | 2eg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-3AE21FA | 3cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-3AE21MA | 3cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-04-3AI21FA | 3cg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-3AI21FAT | 3cg_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | Customer supplied |
| TE0820-04-3BE21FA | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-3BE21FL | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-04-3BE21KA | 3eg_1e_2gb | REV04 | 2GB | 128MB | 64GB | NA | NA |
| TE0820-04-3BE21MA | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-3BE21ML | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | Other EMMC mfr |
| TE0820-04-3BE21MLZ | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | Other EMMC mfr |
| TE0820-04-4AE21FA | 4cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-4AE21MA | 4cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-4AI21FI | 4cg_1i_x_2gb | REV04 | 2GB | 128MB | 8GB | without ETH PHY | NA |
| TE0820-04-4BI21KL | 4eg_1i_2gb | REV04 | 2GB | 128MB | 64GB | 2.5 mm connectors | NA |
| TE0820-04-4DE21FA | 4ev_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-4DE21FL | 4ev_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-04-4DE21MA | 4ev_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-04-4DI21FA | 4ev_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-4DI21MA | 4ev_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-04-5DI21FA | 5ev_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-5DI21MA | 5ev_1i_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-5DR21FA | 5ev_1q_2gb | REV04 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-04-S002 | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | Other EMMC mfr|Custom supplied TE0820-04-3BE21MA |
| TE0820-04-S002C1 | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-04-S003 | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | Other EMMC mfr |
| TE0820-04-S004 | 2eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-04-S005 | 4cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | Other EMMC mfr|Custom supplied TE0820-04-4AE21MA |
| TE0820-04-S006 | 4ev_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | CAO:Other EMMC mfr |
| TE0820-04-S009 | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | Other EMMC mfr |
| TE0820-04-S010 | 4ev_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | CAO:Other EMMC mfr |
| TE0820-04-S013 | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | CAO:Other EMMC mfr |
| TE0820-04-S016 | 3eg_1e_2gb | REV04 | 2GB | 128MB | 8GB | 2.5 mm connectors | CAO:Other EMMC mfr |
| TE0820-04-S018 | 4cg_1e_2gb | REV04 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-2AE21MA | 2cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2AE21MAZ | 2cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2AE81MA | 2cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2AI21MA | 2cg_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2AI81MA | 2cg_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2BE21MA | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2BE21MAJ | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2BI21MA | 2eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2BI81MA | 2eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-2BI81ML | 2eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-05-3AE21MA | 3cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-3AE81MA | 3cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-3BE21MA | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-3BE21MAZ | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-3BE81MA | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-3BE81ML | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | 2.5 mm connectors | Other EMMC mfr |
| TE0820-05-3BI21ML | 3eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-05-3BI81ML | 3eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | 2.5 mm connectors | NA |
| TE0820-05-4AE21MA | 4cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-4AE81MA | 4cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-4AI21MI | 4cg_1i_x_2gb | REV05 | 2GB | 128MB | 8GB | without ETH PHY | NA |
| TE0820-05-4BE81MA | 4eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-4BI21PL | 4eg_1i_2gb | REV05 | 2GB | 128MB | 64GB | 2.5 mm connectors | NA |
| TE0820-05-4BI21PLZ | 4eg_1i_2gb | REV05 | 2GB | 128MB | 64GB | 2.5 mm connectors | NA |
| TE0820-05-4DE21MA | 4ev_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-05-4DE81MA | 4ev_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-05-4DI21MA | 4ev_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-05-4DI81MA | 4ev_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | Other EMMC mfr |
| TE0820-05-5DI21MA | 5ev_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-5DI81MA | 5ev_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | NA |
| TE0820-05-S002C1 | 4cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S003 | 4ev_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S004C1 | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S005 | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S008C1 | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO:without PLL |
| TE0820-05-S010C1 | 4cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S013 | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO:without PLL |
| TE0820-05-S014C1 | 4cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S016 | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S017C1 | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO:without PLL |
| TE0820-05-S018 | 3cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S020 | 3eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S022 | 3cg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S024C1 | 2eg_1e_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
| TE0820-05-S025 | 2eg_1i_2gb | REV05 | 2GB | 128MB | 8GB | NA | CAO |
Design supports following carriers:
| Carrier Model | Notes |
|---|---|
| TEF1002 |
|
Additional HW Requirements:
| Additional Hardware | Notes |
|---|---|
| USB Cable for JTAG/UART | Check Carrier Board and Programmer for correct typ |
| Cooler | It's recommended to use cooler on ZynqMP device |
| SATA Harddisk | optional |
| PCIe Host PC | optional |
For general structure and of the reference design, see Project Delivery - AMD devices.
| Type | Location | Notes |
|---|---|---|
| Vivado | <design name>/block_design <design name>/constraints <design name>/ip_lib | Vivado Project will be generated by TE Scripts |
| Vitis | <design name>/sw_lib | Additional Software Template for Vitis and apps_list.csv with settings automatically for Vitis app generation |
| PetaLinux | <design name>/os/petalinux | PetaLinux template with current configuration |
| Type | Location | Notes |
|---|---|---|
| SI5338 | <design name>/misc/Si5338 | SI5338 Project with current PLL Configuration |
| init.sh | <design name>/sd/ | Additional Initialization Script for Linux |
File | File-Extension | Description |
|---|---|---|
| BIF-File | *.bif | File with description to generate Bin-File |
| BIN-File | *.bin | Flash Configuration File with Boot-Image (Zynq-FPGAs) |
| BIT-File | *.bit | FPGA (PL Part) Configuration File |
| DebugProbes-File | *.ltx | Definition File for Vivado/Vivado Labtools Debugging Interface |
| Diverse Reports | --- | Report files in different formats |
| Hardware-Platform-Specification-Files | *.xsa | Exported Vivado Hardware Specification forVitis and PetaLinux |
| LabTools Project-File | *.lpr | Vivado Labtools Project File |
| OS-Image | *.ub | Image with Linux Kernel (On Petalinux optional with Devicetree and RAM-Disk) |
| Software-Application-File | *.elf | Software Application for Zynq or MicroBlaze Processor Systems |
Reference Design is only usable with the specified Vivado/SDK/PetaLinux/SDx version. Do never use different Versions of Xilinx Software for the same Project.
Reference Design is available on:
Reference Design is available with and without prebuilt files. It's recommended to use TE prebuilt files for first launch.
Trenz Electronic provides a tcl based built environment based on Xilinx Design Flow.
See also:
The Trenz Electronic FPGA Reference Designs are TCL-script based project. Command files for execution will be generated with "_create_win_setup.cmd" on Windows OS and "_create_linux_setup.sh" on Linux OS.
TE Scripts are only needed to generate the vivado project, all other additional steps are optional and can also executed by Xilinx Vivado/Vitis GUI. For currently Scripts limitations on Win and Linux OS see: Project Delivery Currently limitations of functionality
Caution! Win OS has a 260 character limit for path lengths which can affect the Vivado tools. To avoid this issue, use Virtual Drive or the shortest possible names and directory locations for the reference design (for example "x:\<project folder>")
_create_win_setup.cmd/_create_linux_setup.sh and follow instructions on shell:
------------------------Set design paths---------------------------- -- Run Design with: _create_win_setup -- Use Design Path: <absolute project path> -------------------------------------------------------------------- -------------------------TE Reference Design--------------------------- -------------------------------------------------------------------- -- (0) Module selection guide, project creation...prebuilt export... -- (1) Create minimum setup of CMD-Files and exit Batch -- (2) Create maximum setup of CMD-Files and exit Batch -- (3) (internal only) Dev -- (4) (internal only) Prod -- (c) Go to CMD-File Generation (Manual setup) -- (d) Go to Documentation (Web Documentation) -- (g) Install Board Files from Xilinx Board Store (beta) -- (a) Start design with unsupported Vivado Version (beta) -- (x) Exit Batch (nothing is done!) ---- Select (ex.:'0' for module selection guide):
optional for manual changes: Select correct device and Xilinx install path on "design_basic_settings.cmd" and create Vivado project with "vivado_create_project_guimode.cmd"
Note: Select correct one, see also Vivado Board Part Flow
Create hardware description file (.xsa file) for PetaLinux project and export to prebuilt folder
TE::hw_build_design -export_prebuilt
Using Vivado GUI is the same, except file export to prebuilt folder.
use exported .xsa file from "<project folder>\prebuilt\hardware\<short name>" . Note: HW Export from Vivado GUI creates another path as default workspace.
"<project folder>\prebuilt\os\petalinux\<ddr size>" or "<project folder>\prebuilt\os\petalinux\<short name>"
TE::sw_run_vitis -all TE::sw_run_vitis (optional; Start Vitis from Vivado GUI or start with TE Scripts on Vivado TCL)
TCL scripts generate also platform project, this must be done manually in case GUI is used. See Vitis
Check Module and Carrier TRMs for proper HW configuration before you try any design.
Xilinx documentation for programming and debugging: Vivado/SDK/SDSoC-Xilinx Software Programming and Debugging.
Note: Depending on CPLD Firmware and Boot Mode settings, QSPI boot with Linux image on SD or complete SD Boot is possible.
Select create and open delivery binary folder
Note: Folder "<project folder>/_binaries_<Article Name>" with subfolder "boot_<app name>" for different applications will be generated
Option for Boot.bin on QSPI Flash and image.ub, and boot.scr on SD or USB.
Open Vivado Project with "vivado_open_existing_project_guimode.cmd" or if not created, create with "vivado_create_project_guimode.cmd"
TE::pr_program_flash -swapp u-boot TE::pr_program_flash -swapp hello_te0820 (optional)
To program with Vitis/Vivado GUI, use special FSBL (fsbl_flash) on setup
Not used on this example.
Starting with Petalinux version 2020.1, the industry standard "Distro-Boot" boot flow for U-Boot was introduced, which significantly expands the possibilities of the boot process and has the primary goal of making booting much more standardised and predictable.
The boot options described above describe the common boot processes for this hardware; other boot options are possible.
For more information see Distro Boot
1. ZynqMP Boot ROM loads FSBL from SD/QSPI into OCM,
2. FSBL init the PS, programs the PL using the bitstream and loads PMU, ATF and U-boot from SD/QSPI into DDR,
3. U-boot loads Linux (image.ub) from SD/QSPI/... into DDR
Win OS, see device manager, Linux OS see dmesg |grep tty (UART is *USB1)
Note: Wait until Linux boot finished
SI5338_CLK0 Counter:
SI5338 CLK is configured to 200MHz by default.
PCB REV03 Design:


Activated interfaces:
| Type | Note |
|---|---|
| DDR | |
| PCIe | GTR Lane0, 100MHz endpoint, RESET# MIO33 |
| SATA | GTR Lane3, 150MHz |
| QSPI | MIO |
| SD0 | MIO |
| SD1 | MIO |
| I2C0 | MIO |
| UART0 | MIO |
| GPIO0 | MIO |
| SWDT0..1 | |
| TTC0..3 | |
| GEM3 | MIO |
| USB0 | MIO, USB2 only |
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design] set_property BITSTREAM.CONFIG.UNUSEDPIN PULLNONE [current_design
set_property PACKAGE_PIN K9 [get_ports {SI5338_CLK0_D_clk_p[0]}]
set_property IOSTANDARD LVDS [get_ports {SI5338_CLK0_D_clk_p[0]}]
set_property DIFF_TERM TRUE [get_ports {SI5338_CLK0_D_clk_p[0]}]
set_property PACKAGE_PIN H1 [get_ports {x0[0]}]
set_property IOSTANDARD LVCMOS18 [get_ports {x0[0]}]
set_property PACKAGE_PIN J1 [get_ports {x1[0]}]
set_property IOSTANDARD LVCMOS18 [get_ports {x1[0]}]
For SDK project creation, follow instructions from:
Template location: ./sw_lib/sw_apps/
TE modified 2024.2 FSBL
General:
Module Specific:
Xilinx default PMU firmware.
Hello Trenz is a Xilinx Hello World example as endless loop instead of one console output.
U-Boot.elf is generated with PetaLinux. SDK/HSI is used to generate Boot.bin.
For PetaLinux installation and project creation, follow instructions from:
Start with petalinux-config or petalinux-config --get-hw-description
Changes:
Start with petalinux-config -c u-boot
Changes:
Change platform-top.h:
#include <configs/xilinx_zynqmp.h> #no changes
/include/ "system-conf.dtsi"
/ {
/*------------------ PS-PL CLK --------------------*/
fclk0: fclk0 {
status = "okay";
compatible = "xlnx,fclk";
clocks = <&zynqmp_clk PL0_REF>;
//clocks = <&zynqmp_clk 71>;
clock-names = "pl_clk0";
};
};
/*------------------ gtr --------------------*/
//https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841716/Zynq+Ultrascale+MPSOC+Linux+SIOU+driver
/ {
refclk3:psgtr_unused_clock3 {
compatible = "fixed-clock";
#clock-cells = <0x00>;
clock-frequency = <100000000>;
};
refclk2:psgtr_unused_clock2 {
compatible = "fixed-clock";
#clock-cells = <0x00>;
clock-frequency = <100000000>;
};
refclk1:psgtr_sata_clock {
compatible = "fixed-clock";
#clock-cells = <0x00>;
clock-frequency = <125000000>;
};
refclk0:psgtr_pci_clock {
compatible = "fixed-clock";
#clock-cells = <0x00>;
clock-frequency = <100000000>;
};
};
&psgtr {
clocks = <&refclk0 &refclk1 &refclk2 &refclk3>;
//clocks = <&refclk0 &refclk2 &refclk3>;
/* ref clk instances used per lane */
clock-names = "ref0\0ref1\0ref2\0ref3";
};
/*-------------------- SD0 eMMC ----------------*/
&sdhci0 {
// 1.8V
bus-width = <8>;
};
/*-------------------- SD1 sd2.0 ----------------*/
&sdhci1 {
// 3.3V
disable-wp;
no-1-8-v;
};
/*-------------------- USB 2.0 only ----------------*/
&usb0 {
status = "okay";
clock-names = "bus_clk";
clocks = <&zynqmp_clk USB0_BUS_REF>;
assigned-clocks = <&zynqmp_clk USB0_BUS_REF>;
};
&dwc3_0 {
dr_mode = "host";
};
/*------------------ ETH PHY --------------------*/
&gem3 {
phy-handle = <&phy0>;
nvmem-cells = <ð0_addr>;
nvmem-cell-names = "mac-address";
//required otherwise petalinux gives a static address here
/delete-property/ local-mac-address;
phy0: phy0@1 {
device_type = "ethernet-phy";
reg = <1>;
};
};
/*-------------------- PCIe PHY ----------------*/
&pcie {
status = "okay";
phy-names="pciephy";
};
/*----------------- SATA PHY --------------------*/
&sata {
status = "okay";
ceva,p0-burst-params = <0x13084a06>;
ceva,p0-cominit-params = <0x18401828>;
ceva,p0-comwake-params = <0x614080e>;
ceva,p0-retry-params = <0x96a43ffc>;
ceva,p1-burst-params = <0x13084a06>;
ceva,p1-cominit-params = <0x18401828>;
ceva,p1-comwake-params = <0x614080e>;
ceva,p1-retry-params = <0x96a43ffc>;
};
/*-------------------- QSPI ---------------------*/
&qspi {
num-cs = <2>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>, <1>;
parallel-memories = /bits/ 64 <0x10000000 0x10000000>;
/* 0x10000000 = 256MB dual as maximum;
this is a proprietary property from u-boot/linux-xlnx. it is used in u-boot and does work if it is larger than the connected qspi, even though the displayed size if wrong
we implemented a linux patch that uses the size which is read back from the qspi itself
*/
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
spi-max-frequency = <108000000>; // max. frequency also depends on the QSPI chip
// here 108MHz for N25Q512A (Fast Read Quad IO STR, 8 Dummy Cycles, quad SPI protocol)
#address-cells = <1>;
#size-cells = <1>;
};
};
/*------------------ I2C --------------------*/
&i2c0 {
eeprom: eeprom@50 {
compatible = "microchip,24aa025", "atmel,24c02";
reg = <0x50>;
#address-cells = <1>;
#size-cells = <1>;
eth0_addr: eth-mac-addr@FA {
reg = <0xFA 0x06>;
};
};
};
Start with petalinux-config -c kernel
Changes:
Only needed to fix JTAG Debug issue:
CONFIG_CPU_FREQ is not set
Start with petalinux-config -c rootfs
Changes:
Changes:
See "<project folder>\os\petalinux\project-spec\meta-user\recipes-bsp\embeddedsw"
Petalinux Troubleshoot#Petalinux2023.2
te_* files are identical to files in "<project folder>\sw_lib\sw_apps\zynqmp_fsbl\src" except for the PLL files (SI5338) which depend on PLL revision. The PLL files may have to be copied again manually into the appropriate petalinux folder "<project folder>\os\petalinux\project-spec\meta-user\recipes-bsp\embeddedsw\fsbl-firmware\git\lib\sw_apps\zynqmp_fsbl\src"
Petalinux template with Trenz debug log prints, see "<project folder>\os\petalinux\project-spec\meta-user\recipes-bsp\u-boot"
Petalinux patch to read back QSPI size from flash instead device tree parameter, see "<project folder>\os\petalinux\project-spec\meta-user\recipes-kernel\linux\linux-xlnx"
Script App to load init.sh from SD Card if available.
See: \os\petalinux\project-spec\meta-user\recipes-apps\startup\files
Webserver application accemble for Zynq access. Need busybox-httpd
File location <design name>/misc/Si5338/Si5338-*.slabtimeproj
General documentation how you work with these project will be available on Si5338
To get content of older revision got to "Change History" of this page and select older document revision number.
| Date | Document Revision | Authors | Description |
|---|---|---|---|
| |||
2020-03-25 | v.7 | John Hartfiel |
|
| 2020-03-11 | v.6 | Martin Rohrmüller |
|
Please also note our data protection declaration at https://www.trenz-electronic.de/en/Data-protection-Privacy
The material contained in this document is provided “as is” and is subject to being changed at any time without notice. Trenz Electronic does not warrant the accuracy and completeness of the materials in this document. Further, to the maximum extent permitted by applicable law, Trenz Electronic disclaims all warranties, either express or implied, with regard to this document and any information contained herein, including but not limited to the implied warranties of merchantability, fitness for a particular purpose or non infringement of intellectual property. Trenz Electronic shall not be liable for errors or for incidental or consequential damages in connection with the furnishing, use, or performance of this document or of any information contained herein.
In no event will Trenz Electronic, its suppliers, or other third parties mentioned in this document be liable for any damages whatsoever (including, without limitation, those resulting from lost profits, lost data or business interruption) arising out of the use, inability to use, or the results of use of this document, any documents linked to this document, or the materials or information contained at any or all such documents. If your use of the materials or information from this document results in the need for servicing, repair or correction of equipment or data, you assume all costs thereof.
Products (incl. Software and Firmware) are exclusively designed, manufactured, and distributed for industrial applications. They are not intended, authorized, or certified for use in critical safety applications, medical devices, aerospace, nuclear, life-support, traffic-control, military, or other environments where malfunction or failure could result in personal injury, death, or significant property or environmental damage.
Trenz Electronic GmbH (“Manufacturer”) excludes any liability for inappropriate use in such contexts. The Customer bears all responsibility for verifying suitability and compliance with applicable regulations when deploying in any critical-use scenario. The Customer also agrees to indemnify and hold harmless the Manufacturer from any third-party claims or liabilities arising from such use.
No part of this manual may be reproduced in any form or by any means (including electronic storage and retrieval or translation into a foreign language) without prior agreement and written consent from Trenz Electronic.
The hardware / firmware / software described in this document are furnished under a license and may be used /modified / copied only in accordance with the terms of such license.
To confront directly with the responsibility toward the environment, the global community and eventually also oneself. Such a resolution should be integral part not only of everybody's life. Also enterprises shall be conscious of their social responsibility and contribute to the preservation of our common living space. That is why Trenz Electronic invests in the protection of our Environment.
REACH
Trenz Electronic is a manufacturer and a distributor of electronic products. It is therefore a so called downstream user in the sense of REACH. The products we supply to you are solely non-chemical products (goods). Moreover and under normal and reasonably foreseeable circumstances of application, the goods supplied to you shall not release any substance. For that, Trenz Electronic is obliged to neither register nor to provide safety data sheet. According to present knowledge and to best of our knowledge, no SVHC (Substances of Very High Concern) on the Candidate List are contained in our products. Furthermore, we will immediately and unsolicited inform our customers in compliance with REACH - Article 33 if any substance present in our goods (above a concentration of 0,1 % weight by weight) will be classified as SVHC by the European Chemicals Agency (ECHA).
RoHS
Trenz Electronic GmbH herewith declares that all its products are developed, manufactured and distributed RoHS compliant.
WEEE
Information for users within the European Union in accordance with Directive 2002/96/EC of the European Parliament and of the Council of 27 January 2003 on waste electrical and electronic equipment (WEEE).
Users of electrical and electronic equipment in private households are required not to dispose of waste electrical and electronic equipment as unsorted municipal waste and to collect such waste electrical and electronic equipment separately. By the 13 August 2005, Member States shall have ensured that systems are set up allowing final holders and distributors to return waste electrical and electronic equipment at least free of charge. Member States shall ensure the availability and accessibility of the necessary collection facilities. Separate collection is the precondition to ensure specific treatment and recycling of waste electrical and electronic equipment and is necessary to achieve the chosen level of protection of human health and the environment in the European Union. Consumers have to actively contribute to the success of such collection and the return of waste electrical and electronic equipment. Presence of hazardous substances in electrical and electronic equipment results in potential effects on the environment and human health. The symbol consisting of the crossed-out wheeled bin indicates separate collection for waste electrical and electronic equipment.
Trenz Electronic is registered under WEEE-Reg.-Nr. DE97922676.