[Project source code] Using scripts in Quartus II to convert sof to rbf files
[Copy link]
This article and design code were written by FPGA enthusiast Xiao Meige. Without the author's permission, this article is only allowed to be copied and reproduced on online forums, and the original author must be indicated when reprinting.
1. Create a new text file and save it with any meaningful name, such as sof_to_rbf.bat. Note that you should not use the default format when saving, but should manually switch from .txt to all files.
2. Enter the following content in the text file:
Among them, DE1_SOC_golden_top.sof is the name of the sof file to be converted. We can change it to the file name of our actual sof, such as led.sof. soc_system.rbf is the name of the file obtained after conversion.
3. Put it in the directory where the sof file is located, double-click to run, and the soc_system.rbf file can be generated.
The rbf file is mainly used to configure FPGA in PS mode, such as using CPLD, MCU, etc. In altera soc, this file can also be used to configure FPGA under Linux.
(Note that the script provided by Terasic should use 32-bit software, so %QUARTUS_ROOTDIR%\\bin64\\quartus_cpf is not written as bin64, but as bin, so running it directly will result in an error. So you can also use Notepad to edit the file yourself, and change bin to bin64)
Some netizens said that it could not be executed before. Finally, it was confirmed that the cause of the problem was that the SoC EDS software and Quartus were not installed in the same directory. For example, the picture below is the correct installation location, and embedded is the installed soc eds kit
|