This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:fpga:docs:hdl:porting_project_quick_start_guide [02 Feb 2018 15:13] – Wording changes Adrian Costina | resources:fpga:docs:hdl:porting_project_quick_start_guide [08 Apr 2024 14:32] (current) – Add documentation migration warning iulia Moldovan | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Porting ADI's HDL reference designs ====== | ====== Porting ADI's HDL reference designs ====== | ||
+ | |||
+ | <note important> | ||
In general, a given reference design for an FMC board is deployed to just a few carriers, although several [[https:// | In general, a given reference design for an FMC board is deployed to just a few carriers, although several [[https:// | ||
- | All the HDL projects were designed to maximize source code reuse, minimize maintainability and simplify portability. The result of these design goals is that porting a given project to another carrier is fairly simple if the user respects a couple of guidelines. The main scope of this wiki page is to discuss these guidelines and provide simple indications for users who wants to port a project to a non-supported carrier. | + | |
+ | All the HDL projects were designed to maximize source code reuse, minimize maintainability and simplify portability. The result of these design goals is that porting a given project to another carrier is fairly simple if the user respects a couple of guidelines. | ||
+ | |||
+ | The main scope of this wiki page is to discuss these guidelines and provide simple indications for users who wants to port a project to a non-supported carrier. | ||
===== Quick Compatibility Check ===== | ===== Quick Compatibility Check ===== | ||
Line 8: | Line 13: | ||
< | < | ||
- | There are two types of FMC connector: LPC (Low Pin Count) and HPC (High Pin Count). In general, an FMC board is using the FMC connector type that has enough pins for the required interfaces between the IO devices and FPGA. A carrier with an FMC HPC connector can host FMC boards with an LPC or HPC connector, but a carrier with an FMC LPC can host a board just with an FMC LPC connector. | + | There are two types of FMC connectors: LPC (Low Pin Count) and HPC (High Pin Count). In general, an FMC board is using the FMC connector type that has enough pins for the required interfaces between the I/O devices and FPGA. A carrier with an FMC HPC connector can host FMC boards with an LPC or HPC connector, but a carrier with an FMC LPC can host a board just with an FMC LPC connector. |
- | <note tip> | + | <note tip> |
The most important things to check before porting are related to the ANSI/VITA 57.1 standard (the list is not necessarily exhaustive): | The most important things to check before porting are related to the ANSI/VITA 57.1 standard (the list is not necessarily exhaustive): | ||
Line 16: | Line 21: | ||
* Power and ground lines - 3P3V/ | * Power and ground lines - 3P3V/ | ||
* VADJ - adjustable voltage level power from the carrier, each board has a specific requirement for VADJ | * VADJ - adjustable voltage level power from the carrier, each board has a specific requirement for VADJ | ||
- | * Dedicated pins for clock signals - all the clock dedicated pins should be connected to a clock capable pin of the FPGA (IO pin which is capable to receive and/or transmit a clock signal) | + | * Dedicated pins for clock signals - all the clock dedicated pins should be connected to a clock capable pin of the FPGA (I/O pin which is capable to receive and/or transmit a clock signal) |
* Dedicated pins for transceiver lines (DPx_[M2C|C2M]_[P|N]) | * Dedicated pins for transceiver lines (DPx_[M2C|C2M]_[P|N]) | ||
- | <note important> | + | <note important> |
- | <note tip>Make sure that you' | + | <note tip>Make sure that you have reviewed all the documentation and design files in order to know the electrical specifications and/or requirements of the FMC board. If you're not sure, ask!</ |
===== Base design files ===== | ===== Base design files ===== | ||
- | At [[https:// | + | At [[/ |
+ | |||
+ | <note tip>In [[repo> | ||
==== Example with a Xilinx board ==== | ==== Example with a Xilinx board ==== | ||
- | In this section we are presenting all the necessary steps to create a base design for the Xilinx ZCU102 development board. | + | In this section, we are presenting all the necessary steps to create a base design for the Xilinx ZCU102 development board. |
- | First, you need to create a new directory in ~/ | + | First, you need to create a new directory in //~/ |
< | < | ||
Line 38: | Line 45: | ||
The **zcu102** directory must contain the following files: | The **zcu102** directory must contain the following files: | ||
* **zcu102_system_bd.tcl** - This script describes the base block design | * **zcu102_system_bd.tcl** - This script describes the base block design | ||
- | * **zcu102_system_constr.xdc** - IO constraint file for the base design. | + | * **zcu102_system_constr.xdc** - I/O constraint file for the base design. |
* MIG configuration file (if needed) - This file can be borrowed for the golden reference design of the board | * MIG configuration file (if needed) - This file can be borrowed for the golden reference design of the board | ||
* other constraints files if needed | * other constraints files if needed | ||
- | You should define the board and its device in the project flow script, called ([[https:// | + | You should define the board and its device in the project flow script, called ([[https:// |
<code tcl>if [regexp " | <code tcl>if [regexp " | ||
Line 59: | Line 66: | ||
==== Example with an Intel board ==== | ==== Example with an Intel board ==== | ||
- | To create a new base design for a given Intel FPGA carrier board the following steps should be taken (the a10soc | + | To create a new base design for a given Intel FPGA carrier board, the following steps should be taken (the A10SoC |
The following files should be created or copied into the directory: | The following files should be created or copied into the directory: | ||
- | * **a10soc_system_assign.tcl** - global and IO assignments of the base design | + | * **a10soc_system_assign.tcl** - global and I/O assignments of the base design |
* **a10soc_system_qsys.tcl** - the QSYS base design | * **a10soc_system_qsys.tcl** - the QSYS base design | ||
- | You should define the board and its device in the flow script ([[https:// | + | You should define the board and its device in the flow script ([[https:// |
<code tcl>if [regexp " | <code tcl>if [regexp " | ||
Line 73: | Line 80: | ||
}</ | }</ | ||
- | ===== Project files for Xilinx boards | + | ===== Project files ===== |
- | To follow the project framework as much as possible the easiest way is to copy all the projects | + | ==== Project |
- | * **system_project.tcl** - This script | + | To follow the project framework as much as possible, the easiest way is to copy all the projects files from an already existing |
- | * **system_bd.tcl** - In this file is sourced | + | * **system_project.tcl** - This script |
- | * **system_constr.xdc** - Constraint | + | |
- | + | ||
- | * **system_top.v** - Top wrapper file, in which the system_wrapper.v module is instantiated, | + | |
+ | |||
+ | * **system_top.v** - Top wrapper file, in which the system_wrapper.v module is instantiated, | ||
* **Makefile** - This is an auto-generated file, but after updating the carrier name, should work with the new project without an issue. | * **Makefile** - This is an auto-generated file, but after updating the carrier name, should work with the new project without an issue. | ||
- | ===== Project files for Intel boards | + | ==== Project files for Intel boards ==== |
To follow the project framework as much as possible the easiest way is to copy all the projects file from an already existing project and modifying those files to support the new carrier. A project for an Intel FPGA board should contain the following files: | To follow the project framework as much as possible the easiest way is to copy all the projects file from an already existing project and modifying those files to support the new carrier. A project for an Intel FPGA board should contain the following files: | ||
- | * **system_project.tcl** - This script is creating the actual Quartus project and run the synthesis/ | + | * **system_project.tcl** - This script is creating the actual Quartus project and runs the synthesis/ |
- | * **system_qsys.tcl** - In this file is sourced the base design' | + | * **system_qsys.tcl** - In this file is sourced the //base// design' |
* **system_constr.sdc** - Contains clock definitions and other path constraints | * **system_constr.sdc** - Contains clock definitions and other path constraints | ||
- | * **system_top.v** - Top wrapper file of the project. The IO port of this verilog | + | * **system_top.v** - Top wrapper file of the project. The I/O ports of this Verilog |
* **Makefile** - This is an auto-generated file, but after updating the carrier name, it should work with the new project without an issue. | * **Makefile** - This is an auto-generated file, but after updating the carrier name, it should work with the new project without an issue. | ||
+ | |||
+ | ===== Tips ===== | ||
+ | |||
+ | ==== Generating the FMC I/O constraints ==== | ||
+ | |||
+ | The easiest way of writing the constraints for FMC I/O pins is making use of a script called [[repo> | ||
+ | |||
+ | Required setup: | ||
+ | |||
+ | * Carrier common FMC connections file ([[repo> | ||
+ | * Project common FMC connections file ([[repo> | ||
+ | |||
+ | <note tip>In cases where these files don't already exist, you can make your own by following some existing ones as an example. For project common files, you can easily make them using our [[repo> | ||
+ | |||
+ | Calling the script: | ||
+ | |||
+ | To use this script you can source it in any tcl shell or simply call the adi_fmc_constr_generator.tcl with argument(s) < | ||
+ | |||
+ | For example: | ||
+ | * **tclsh ../ | ||
+ | * **tclsh ../ | ||
+ | |||
+ | If sourced without argument(s) then you can simply call gen_fmc_constr < | ||
+ | |||
+ | For example: | ||
+ | * **gen_fmc_constr fmc0** (the project uses only one FMC port at a time) | ||
+ | * **gen_fmc_constr fmc0 fmc1** (the project uses two FMC ports at a time) | ||
+ | < | ||
+ | |||
+ | The generated file will appear in the current directory as **fmc_constr.xdc** (Xilinx board) or **fmc_constr.tcl** (Intel board). If ran from an open Vivado project, the generated file will be automatically added to the project. | ||
===== Help and support ===== | ===== Help and support ===== | ||
- | You can ask questions at [[https://ez.analog.com/ | + | You can ask questions at [[ez>community/ |
Threads that discuss this issue: | Threads that discuss this issue: |