赛灵思
直播中

陈连香

7年用户 207经验值
私信 关注
[问答]

ISE 14.7怎么从tcl脚本更改.bit文件名

你好,我做了Project->生成TCL脚本。
现在,我希望能够从tcl脚本中指定.bit文件名。
我怎么做?

以上来自于谷歌翻译


以下为原文

hello,  I did the Project->generate TCL script.  now, I want to be able to specify the .bit filename from the tcl script.  how do I do that?

回帖(7)

陈玉筠

2018-11-9 12:08:35
我不确定你可以将它作为bitgen命令的一个选项 - 从Project Navigator中似乎没有一个选项可以控制它。
但是,您可以使用Tcl命令“文件重命名”完成bitgen后重命名文件
Avrum

以上来自于谷歌翻译


以下为原文

I'm not sure you can do it as an option to the bitgen command - from the Project Navigator there doesn't appear to be an option to control this.
 
However, you can always rename the file after bitgen is done using the Tcl command "file rename "
 
Avrum
举报

刘鹏

2018-11-9 12:26:36
@mvalvoNo没有办法像vivado一样使用bitgen重命名比特流。
通过defalut ISE获取您的顶级模块名称并使用[top_module_name.bit]生成.bit文件
-Pratham ------------------------------------------------
----------------------------------------------请注意 - 请
如果提供的信息有用,请将答案标记为“接受为解决方案”。给予您认为有用并回复导向的帖子。感谢K-
--------------------------------------------------
-----------------------

以上来自于谷歌翻译


以下为原文

@mvalvo No there is no way like vivado to rename bitstream using bitgen.
 
By defalut ISE takes your top module name and generate .bit file with [top_module_name.bit]
-Pratham

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
举报

陈衡毅

2018-11-9 12:33:33
嗨@mvalvo
bitgen [options] infile [.ncd] [outfile] [pcf_file.pcf]
Outfile是位文件的名称。
有关详细信息,请参阅http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/devref.pdf的第223页。
谢谢,维杰-----------------------------------------------
---------------------------------------------请将帖子标记为
一个答案“接受为解决方案”,以防它有助于解决您的查询。如果一个帖子引导到解决方案,请给予赞誉。

以上来自于谷歌翻译


以下为原文

Hi @mvalvo
 
bitgen [options] infile[.ncd] [outfile] [pcf_file.pcf]
 
Outfile is the name of the bit file.
 
Refer to page 223 of http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/devref.pdf for details.
Thanks,Vijay
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
举报

陈玉筠

2018-11-9 12:44:13
@vijayak,
原始问题询问如何从.tcl脚本更改它。
在ISE中,Tcl脚本通过Project Navigator,因此bitgen命令的所有选项必须通过Project Navigator设置窗口提供的字段。
对于bitgen,没有提供用于指定outfile名称的选项。
通常,可以使用“其他选项”字段来指定没有提供机制的内容,但是您在此处放置的额外选项将放在[options]字段中,并假设与位置无关。
[outfile]字段取决于位置,因此只有在项目导航器具有指定选项时才能更改。
因此,虽然您的建议对于直接或在.bat / .sh / .csh脚本中运行bitgen的人来说是正确的,但它不适用于使用.tcl脚本的人(通过Project Navigator)。
Avrum

以上来自于谷歌翻译


以下为原文

@vijayak,
 
The original question asked how to change it from the .tcl script. In ISE the Tcl script goes through the Project Navigator, and hence all the options to the bitgen command must come through the fields provided by the Project Navigator settings window.
 
For bitgen there is no option provided for specifying the name of the outfile. Normally, one would use the "Other options" field for specifying something for which there is not provided mechanism, but the extra options you put here would be putin the [options] field, and are assumed to be position independent. The [outfile] field is position dependent, and hence would only be able to be changed if the project navigator had a specified option for it.
 
So while your suggestion is correct for someone running bitgen directly or in a .bat/.sh/.csh script, it doesn't apply to someone using a .tcl script (through the Project Navigator).
 
Avrum
举报

更多回帖

发帖
×
20
完善资料,
赚取积分