Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to save Vivado project with minimum storage space

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the minimum storage space to save the Vivado project. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

In the usual process of debugging FPGA, you will find that Vivado projects are often hundreds of megabytes, or even a few gigabytes. If you debug too many versions, even a few T hard drives are not enough. What should I do? In fact, Vivado comes with a storage method that uses tcl commands to save vivado projects as .tcl scripts. Hundreds of megabytes of projects can be saved only a few hundred kilograms in size.

The VIVADO project directory contains a lot of intermediate generation files, which results in a project size of hundreds of MB or even GB, which is very inconvenient when we save project backups or use Git. Fortunately, VIVADO provides us with a large number of scripts, so we can keep only the source code of the project and a script, and use tcl to restore the VIVADO project when we need to restore the project.

There are two ways to generate VIVADOtcl:

1. Use the tcl command: in the open vivado project, on the tcl command input line, enter the following command, write_project_tcl {~ / work/system.tcl}, you can save the project as a .tcl file. Where ~ / work/ is the path where the .tcl file is saved, which can be changed according to the needs of actual use, and system.tcl is the saved file name.

2, use GUI operation: in the open vivado project, click File-"Write Project to Tcl, then set the relevant parameters in the Write Project To Tcl interface (mainly the save path and file name of the tcl file), you can save the project as a .tcl file.

When resuming the VIVADO project, return to the directory corresponding to tcl, and source the corresponding tcl file in the VIVADO under the Linux system to resume the project. Here is a brief introduction in the way of GUI.

Restore the project operation method 1. Get the VIVADO project in the form of tcl as shown in the following figure. At this time, there is only one script and src folder in the project, including design files and simulation files. Its size is no more than a few dozen KB.

2. Start VIVADO and change the working directory to the directory corresponding to tcl.

Enter and start the command, and VIVADO will resume the project according to the instructions of tcl.

3. The project was successfully restored.

Generate Tcl project operations

1. Select File- > Project- > Write TCL under VIVADO19.2

2. Configure tcl name and path

3. Delete the unwanted files other than SRC and tcl and save them.

Matters needing attention

1. To cross the drive letter under Windows, you need to use the command (cd E:).

2. The requirements for the version of VIVADO are consistent.

This is the end of the project on how to save Vivado with minimum storage space. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report