如何在Altera Quartus中生成.rbf文件?[英] How to generate .rbf files in Altera Quartus?

本文是小编为大家收集整理的关于如何在Altera Quartus中生成.rbf文件?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

什么是.rbf文件,如何从Windows上的Quartus output File .sof中生成它们?

推荐答案

使用Quartus II GUI转到file =>转换编程文件,然后可以选择.rbf作为输出文件,并且可以将.sof作为输入文件给出.

转换设置可以从GUI中保存,以供

这样的命令行中使用
> quartus_cpf -c convert_sof_to_rbf.cof

其他推荐答案

rbf 是" 原始二进制文件".它代表了原始数据,例如,将加载到闪存中以初始化电源上的fpga.

a sof 是" sram对象文件".它包含直接初始化FPGA所需的数据.

尽管您可以从Quartus(File -> Convert Programming Files...)输出RBF,但我从您的问题中怀疑您正在寻找一种直接将SOF转换为RBF的方法.可以使用Altera的" Nios II命令Shell"完成,可以从开始菜单中的Quartus文件夹运行.

请注意,尽管您需要安装Quartus才能执行此操作,但您不需要为订阅付费,因为NIOS II命令壳即使是Quartus没有有效的许可证,也需要付费.

.

这是两个步骤的过程...

第一步

cd到包含您的SOF的目录,然后键入:

sof2flash --offset=0 --input="./your_file.sof" --output="./your_file.flash"

这将SOF文件转换为闪存文件,这是所需RBF的ASCII表示.

第2步

现在输入以下内容:

nios2-elf-objcopy -I srec -O binary "./your_file.flash" "./your_file.rbf"

您现在将根据需要有RBF文件.

其他推荐答案

其他替代GUI免费:

要在Windows中使用的命令行中使用,您必须首先启动Altera嵌入式命令Shell(Linux System在BTW上相同的想法).在我的计算机上,要启动的文件是:

# on Windows
C:\intelFPGA\17.1\embedded\Embedded_Command_Shell.bat

# on Linux
/opt/altera/17.1/embedded/Embedded_Command_Shell.sh

然后您可以使用Quartus命令行程序.

直接将 sof 转换为 rbf :

quartus_cpf -c my_input_file.sof my_output_file.rbf

您还可以添加选项以压缩bitstream:

quartus_cpf -c -o bitstream_compression=on my_input_file.sof my_output_file.rbf

本文地址:https://www.itbaoku.cn/post/2090969.html

问题描述

What are .rbf files and how can i generate them from the Quartus output file .sof on windows ?

推荐答案

With Quartus II GUI go to File => Convert Programming Files, where .rbf can then be selected as output file, and the .sof can be given as input file.

The conversion setup can be saved from the GUI for use in a command line like

> quartus_cpf -c convert_sof_to_rbf.cof

其他推荐答案

An RBF is a "Raw Binary File". It represents the raw data that will, for example, be loaded into a flash memory for initialising an FPGA on power-up.

A SOF is an "SRAM Object File". It contains the data required to initialise the FPGA directly.

Although you can output an RBF from Quartus (File -> Convert Programming Files...), I suspect from your question that you're looking for a way to directly convert a SOF to an RBF. This can be done using Altera's "NIOS II Command Shell", which can be run from the Quartus folder in the Start menu.

Note that although you need Quartus installed in order to do this, you don't need to pay for a subscription, because the NIOS II Command Shell works even if Quartus doesn't have a valid licence.

It's a two step process...

Step One

cd to the directory containing your SOF then type:

sof2flash --offset=0 --input="./your_file.sof" --output="./your_file.flash"

This converts the SOF file into a FLASH file, which is an ASCII representation of the desired RBF.

Step Two

Now type this:

nios2-elf-objcopy -I srec -O binary "./your_file.flash" "./your_file.rbf"

You will now have your RBF file, as required.

其他推荐答案

An other alternative GUI free:

For use in command line in windows, you have to first launch the Altera Embedded Command Shell (Same idea on a linux system btw). On my computers, the file to launch are:

# on Windows
C:\intelFPGA\17.1\embedded\Embedded_Command_Shell.bat

# on Linux
/opt/altera/17.1/embedded/Embedded_Command_Shell.sh

Then you can use Quartus command lines programs.

To convert directly a sof to an rbf:

quartus_cpf -c my_input_file.sof my_output_file.rbf

You can also add options to compress the bitstream for example :

quartus_cpf -c -o bitstream_compression=on my_input_file.sof my_output_file.rbf