This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
flink_vhdl [2018/01/30 11:11] – [Building] sfink | flink_vhdl [2023/10/12 17:07] – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VHDL ====== | ====== VHDL ====== | ||
<box blue right 38% | **Downloads**> | <box blue right 38% | **Downloads**> | ||
- | * [[https:// | + | * [[https:// |
</ | </ | ||
- | This is the user documentation for the fLink VHDL modules. At the current state flink is available for Altera and Xilinx FPGAs. | + | This is the user documentation for the flink VHDL modules. At the current state flink is available for Altera and Xilinx FPGAs. |
\\ | \\ | ||
\\ | \\ | ||
Line 18: | Line 18: | ||
* [[.: | * [[.: | ||
</ | </ | ||
- | * Quartus | + | * Quartus |
* Modelsim Altera 10.1d (only necessary for simulation of modules) | * Modelsim Altera 10.1d (only necessary for simulation of modules) | ||
- | * Instead of Altera Quartus, Xilinx | + | * Vivado (Tested with Version 2016.1, 2017.3, 2017.4 |
+ | |||
+ | ===== Id and Unique_Id ===== | ||
+ | Every subdevice has a parameter '' | ||
+ | When a flink device is later scanned and all its contained subdevices read out, every subdevice is numbered with numbers starting from 0. This number is the '' | ||
+ | The '' | ||
+ | An userland application should use '' | ||
+ | |||
+ | ===== Info Subdevice ===== | ||
+ | An info subdevice serves for information purposes only. It comprises the fields '' | ||
+ | \\ | ||
+ | The field '' | ||
+ | |||
===== Building ===== | ===== Building ===== | ||
==== Quartus ==== | ==== Quartus ==== | ||
Line 27: | Line 40: | ||
- Under //Device -> Device and Pin Options... -> Unused Pins// choose //As input tri-stated with weak pull-up//. Without this setting the system will not work later! | - Under //Device -> Device and Pin Options... -> Unused Pins// choose //As input tri-stated with weak pull-up//. Without this setting the system will not work later! | ||
- Start Qsys and choose //Tools -> Options//. Press //Add// and choose the fLink repository root path. After pressing //Finish// flink should be listed in the library section. | - Start Qsys and choose //Tools -> Options//. Press //Add// and choose the fLink repository root path. After pressing //Finish// flink should be listed in the library section. | ||
- | - Add all your desired subdevices to your system by double clicking on the appropriate entry. Set all the necessary parameters, among them '' | + | - Add all your desired subdevices to your system by double clicking on the appropriate entry. Set all the necessary parameters, among them '' |
- Add a //info subdevice// if necessary. An //info subdevice// can be very useful for reading the total memory size of the whole device as well as reading the description field. This can be used to cross check whether the right design is loaded in the FPGA. | - Add a //info subdevice// if necessary. An //info subdevice// can be very useful for reading the total memory size of the whole device as well as reading the description field. This can be used to cross check whether the right design is loaded in the FPGA. | ||
- Connect all the clock sinks as well as the reset sinks. | - Connect all the clock sinks as well as the reset sinks. | ||
Line 39: | Line 52: | ||
- Open Pin Planer and designate all the necessary pins. | - Open Pin Planer and designate all the necessary pins. | ||
- Compile the design and download it. | - Compile the design and download it. | ||
+ | |||
==== Vivado ==== | ==== Vivado ==== | ||
- | - Start Vivado and create a new project. | + | - Start Vivado and create a new project |
- | - Choose your appropriate | + | - Choose your appropriate |
- | - Under „Project Manager“ -> „Settings“ in the „General“ tab change target language to VHDL. | + | - Under //Project Manager// -> //Settings// -> //General// change target language to VHDL. |
- | - Under „IP“ -> „Repository“ add the flinkvhdl root directory | + | - Under //Project Manager// -> // |
- | - In the "IP INTEGRATOR" | + | - In the //IP INTEGRATOR// click // |
- | - Add a ZYNQ7 Processor System | + | - Add a ZYNQ7 processor system |
- | - Double click the Processor System. In the "clock configuration" | + | - Double click on the processor system. In the //clock configuration// -> //PL fabric clocks// you can choose the frequency driving the AXI Interface. You should also later enter this value in your flink subdevices as baseclock. In the //PS-PL Configuration// |
- | - Open the IP Catalog(blue cross) and add all needed | + | - Add all desired |
- | - In the Block Design press "Run Connection Automation" -> add all Subdevices | + | - Press //Run Connection Automation// to make necessary connections. If you forgot to add an //AXI Interconnect// |
- | - Right click on the ports of the subdevices and create | + | - Edit the subdevices, choose properties such as uniqueId, number of channels or base clock. If the base clock has to be specified, you must make sure, that it reflects the actual system clock of your FPGA. |
- | - Open the „Address Editor“-tab and make sure that all devices have a Range of 4k and that there are no gaps between two devices. | + | - Right click on the outputs |
+ | - Open the //Address Editor// tab and make sure that all devices have a range of 4k and that there are no gaps between two devices. | ||
- Add pin mapping. For specific boards you can get your .xdc-files [[https:// | - Add pin mapping. For specific boards you can get your .xdc-files [[https:// | ||
- | - Ensure that every fLink Subdevice has its own unique id. | + | - Change |
- | - If an infoDevice is used double click on the IP and add the "Dev Size". Every fLink Subdevice has a dev size of 4096.[{{ : | + | - Right click on your block design |
- | - Right click on your Block Design | + | - Under //PROGRAM AND DEBUG// select |
- | - Under „PROGRAM AND DEBUG“ select | + | - The resulting FPGA configuration file can be found under // |
- | ===== Id and Unique_Id ===== | ||
- | Every subdevice has a parameter '' | ||
- | When a flink device is later scanned and all its contained subdevices read out, every subdevice is numbered with numbers starting from 0. This number is the '' | ||
- | The '' | ||
- | An userland application should use '' | ||
- | |||
- | ===== Info Subdevice ===== | ||
- | An info subdevice serves for information purposes only. It comprises the fields '' | ||
- | \\ | ||
- | The field '' | ||
- | |||