1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,有没有办法将HEX文件转换为.bit文件?
我们目前正在尝试创建一个多引导mcs文件,其中地址0具有header.bit,地址0x200000用于黄金映像位文件,0x300000用于多引导。 我们目前有一个头文件的HEX文件,iMPACT需要一个.bit文件来生成多重引导MCS文件。 有任何想法吗? 我们现在的解决方案要求我们将HEX生成为MCS ...并且还合并了黄金和多重启动图像中的MCS ...然后将两个MCS文件合并为一个......我们正在尝试 通过使用GUI使过程变得简单...我们只需要将HEX头文件转换为.bit 谢谢。 以上来自于谷歌翻译 以下为原文 Hi, is there a way to convert a HEX file into a .bit file? We currently are trying to create a multiboot mcs file where address 0 has the header.bit, address 0x200000 is for the golden image bit file, and 0x300000 is for the multiboot. We currently have a HEX file for the header and iMPACT requires a .bit file to generate the multiboot MCS file. Any ideas? Our solution right now requires us to generate the HEX into a MCS...and also generate a MCS out of the golden and multiboot images merged...and then merge both of the two MCS files into one...we're trying to make the process easy by using the GUI...we just need the HEX header file to be converted into a .bit Thanks. |
|
相关推荐
4个回答
|
|
我不知道你怎么能在iMPACT中做到这一点。
您可以将十六进制转换为1和0,并将其称为.rbt文件。 不过,iMPACT之外还有其他选择。 Xilinx在其SP601示例中使用promgen将HEX转换为MCS。 你看过那个吗? promgen -w -p mcs -r boot_header_only_SPI_x1.hex -o boot_header_only_SPI_x1.mcs 您也可以联系Xilinx支持部门并索取XMCSUTIL的副本。 它有很多选择(见下文)。 布赖恩 用法:xmcsutil [options] -i -o选项:-bytecount = count MCS文件中的字节数-d =删除/覆盖输出文件-l =生成日志文件-0 =使用0基址寻址将HEX转换为MCS(默认) -1 =将MCS转换为HEX(移除MCS地址)-2 =重新格式化HEX文件-3 =将MCS字节转换为无符号整数-4 =将空格分隔的无符号整数转换为MCS -5 =将HEX字节转换为ASCII -6 = 将MCS字节转换为ASCII -7 =验证/重新计算输入文件中的MCS记录的校验和-8 =反向字节并重新计算MCS输入文件中的校验和=保留的MCS地址-9 n =左旋转MCS字节n位并重新计算校验和= MCS地址 保留-10 n =生成随机n-Kbit MCS文件=使用输入文件中的字符作为随机数种子 - ==== - -11 =将MCS字节转换为无符号32位长(十六进制)= DD CC BB AA 将被写为0xAABBCCDD -12 =将空白分隔的32位十六进制转换为MCS = 0xAABBCCDD将被写为DD CC BB AA -13 =转换MCS字节 无符号32位值 - >使用-signed转换为带符号的32位值-14 =将空白分隔的32位值转换为MCS -15 [数据| cfg] = MCS文件中0和1的计数 - > data = MCS是数据文件(处理所有字节) - > cfg = MCS是配置比特流(忽略1s填充)-16 =组合来自多个MCS输入文件的数据= MCS 数据将从地址0开始=使用-s sizeN选项分区为指定的PROM大小= -usedataaddr将使用MCS地址(否则假设文件中的数据是连续的并从addr 0开始) - >使用-padFF填充0xFF的地址空白 bytes = -segaddr将MCS数据重定位到指定的段地址-17 n =将读写格式信息添加到XCF0nS PROM n = 2用于XCF02S或4用于XCF04S -18 =将HEX转换为二进制-19 =将ASCII二进制数据转换为HEX (-22选项的反转) - ==== - -20 nm =生成具有所有m字节数据的n-Kbit MCS文件 - > m =以八进制,十进制或十六进制格式定义的字节-21 =交换数据 字节对(例如,0x5599AA66变为0x995566AA)-22 n =将HEX转换为ASCII二进制(-19选项的反转)=对于8位,16位或32位数据转换,n必须为1,2或4 -23 地址 0字节0 [addrN byteN] =用字节N替换字节N的字节(-32 =交换16位字对(例如,0x5599AA66变为0xAA665599)-25 xy =从输入文件发送/分配X字节到Y文件=程序 将从指定的输出创建Y文件filename = Y必须> 1 =如果用户指定的输出文件被调用FILENAME.MCS然后生成的文件将被称为FILENAME_NNNN_of_Y.MCS其中NNNN = 1到Y -26 x =从输入读取X个字节 MCS文件和写入输出文件=多个输入MCS文件可以使用-i =反转-25 xy选项指定 - ==== - -27 =比较来自2个输入MCS文件的字节= 2个使用-i指定的输入MCS文件 -28 =将二进制文件转换为ASCII HEX =使用-ascii_hex显示可打印的ASCII字节-29 =将二进制文件转换为MCS -30 =将16位MCS文件转换为8位,高位字节填充= 0x5599变为0xFF55FF99 -nochecksumtest = 跳过MCS记录校验和测试-s size_0 [size_N] =分区组合MCS数据到size_N PROMs =使用size_0 PROM,然后size_N PR OM等(大小以千比特为单位)=将使用指定的最后大小,如果需要更多PROM =仅对-16选项有效-segaddr addr_0 [addr_N] =输入MCS文件的基本地址= addr_N可以是八进制(例如,0nnnn), 十进制或十六进制(例如,0xNNNN)=段地址必须按升序排列=仅对-16有效(即组合MCS文件)选项-padFF =填充地址间隙w / 0xFF字节(使用w / -16和-usedataaddr) -readrange XY =将位置Y(十进制)的十进制X数据字节转换为ASCII(仅对-5和-6有效)-usedataddr =使用MCS地址(仅对-16有效)-ascii_hex =显示可打印的ASCII字节( 仅对-28有效 以上来自于谷歌翻译 以下为原文 I don't see how you could do this in iMPACT as is. You may be able to convert your hex to ones and zeroes and call it an .rbt file. There are other options outside of iMPACT, though. Xilinx uses promgen in their SP601 example to convert HEX to MCS. Have you looked at that? promgen -w -p mcs -r boot_header_only_SPI_x1.hex -o boot_header_only_SPI_x1.mcs You could also contact Xilinx Support and request a copy of XMCSUTIL. It has lots of options (see below). Bryan Usage: xmcsutil [options] -i -o Options: -bytecount = count number of bytes in MCS file -d = delete/overwrite output file -l -0 = convert HEX to MCS using 0 base addressing (default) -1 = convert MCS to HEX (MCS addresses removed) -2 = reformat HEX file -3 = convert MCS bytes to unsigned integers -4 = convert white-space delimited unsigned integers to MCS -5 = convert HEX bytes to ASCII -6 = convert MCS bytes to ASCII -7 = verify/recalculate checksum for MCS records in input file -8 = reverse bytes and recalculate checksum in MCS input file = MCS addresses retained -9 n = left rotate MCS bytes n bits and recalculate checksum = MCS addresses retained -10 n = generate a random n-Kbit MCS file = use chars from input file as random number seeds -==< Press ENTER to continue >==- -11 = convert MCS bytes to unsigned 32-bit longs (in hex) = DD CC BB AA will be written as 0xAABBCCDD -12 = convert white-space delimited 32-bit hex to MCS = 0xAABBCCDD will be written as DD CC BB AA -13 = convert MCS bytes to unsigned 32-bit values -> use -signed to convert to signed 32-bit values -14 = convert white-space delimited 32-bit values to MCS -15 [data | cfg] = count number of 0's and 1's in MCS file -> data = MCS is data file (process all bytes) -> cfg = MCS is config bitstream (ignore 1s padding) -16 = combine data from multiple MCS input files = MCS data will start from address 0 = use -s sizeN option to partition into specified PROM sizes = -usedataaddr will use MCS addresses (else assume data in file is contiguous and starts from addr 0) -> use -padFF to pad address gaps with 0xFF bytes = -segaddr to relocate MCS data to specified segment addresses -17 n = add read-write format info to XCF0nS PROM n = 2 for XCF02S or 4 for XCF04S -18 = convert HEX to binary -19 = convert ASCII binary data to HEX (inverse of -22 option) -==< Press ENTER to continue >==- -20 n m = generate an n-Kbit MCS file with data of all m-bytes -> m = byte defined in octal, decimal, or hex format -21 = swap data byte pairs (e.g., 0x5599AA66 becomes 0x995566AA) -22 n = convert HEX to ASCII binary (inverse of -19 option) = n must be 1, 2, or 4 for 8-, 16-, or 32-bit data conversion -23 addr0 byte0 [addrN byteN] = replace byte(s) at address N with byteN -24 = swap 16-bit word pairs (e.g., 0x5599AA66 becomes 0xAA665599) -25 x y = send/distribute X bytes from input file to Y files = program will create Y files from specified output filename = Y must be > 1 = if user-specified output file is called FILENAME.MCS then generated files will be called FILENAME_NNNN_of_Y.MCS where NNNN = 1 to Y -26 x = read X bytes from input MCS files and write to output file = multiple input MCS files can be specified using -i = inverse of -25 x y option -==< Press ENTER to continue >==- -27 = compare bytes from 2 input MCS files = 2 input MCS files specified using -i -28 = convert binary file to ASCII HEX = use -ascii_hex to show printable ASCII bytes -29 = convert binary file to MCS -30 = convert 16-bit MCS file to 8-bit with upper byte padding = 0x5599 becomes 0xFF55FF99 -nochecksumtest = skip MCS record checksum testing -s size_0 [size_N] = partition combined MCS data into size_N PROMs = use size_0 PROM, then size_N PROM, etc. (size in Kbits) = will use last size specified if more PROMs required = valid only with -16 option -segaddr addr_0 [addr_N] = base addr for input MCS files = addr_N can be octal (e.g., 0nnnn), decimal or hex (e.g., 0xNNNN) = segment addresses must be in ascending order = valid only with -16 (i.e., combine MCS files) option -padFF = pad address gaps w/ 0xFF bytes (use w/ -16 and -usedataaddr) -readrange X Y = convert decimal X number of data bytes at location Y (decimal) to ASCII (valid only with -5 and -6) -usedataaddr = use MCS addresses (valid only with -16) -ascii_hex = display printable ASCII bytes (valid only with -28) |
|
|
|
我的请求旁边有我的请求!
如何将.bit转换为.coe文件 有没有解决方案将.bit转换为.coe文件? 我必须使用FPGA virtex5(Xilinx)中的比特流初始化单端口RAM(使用块存储器生成器创建)所以,我正在寻找任何软转换我的.bit文件。 我尝试将其转换为.hex文件,其中包含BIN2HEX.EXE:File Utilities并尝试将.hex文件转换为.coe。 在这里可以使用MAKEXCOE:如何简单地将hex或mif文件转换为.coe文件? 但文件很大,输出文件失败(写000000 ....)。 你知道其他任何解决方案吗? 最好的问候Dayn 以上来自于谷歌翻译 以下为原文 I have a request next to your request ! How to convert .bit to .coe file Is there any solution to convert .bit to .coe file ? |
|
|
|
dayn,
你是新来的,你违反了两个论坛礼节。 1.请不要发布问题或主题的重复内容。 这称为“交叉发布”。 请,每个主题或问题只有一个主题。 请在您刚刚创建的主题中继续讨论您的请求。 2.请不要向现有主题发布新的和不相关的主题或问题。 这导致在单个线程中进行多次讨论,这对每个人来说都是令人困惑和讨厌的。 请在您刚刚在此处创建的主题中继续讨论您的请求,而不是在此主题中。 谢谢您的考虑。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 dayn, You are new here, and you violated two forum courtesies. 1. Please do not post duplicates of your problem or topic. This is called 'cross-posting'. Please, one thread only per topic or question. Please continue discussion of your request in the thread which you have just created here. 2. Please do not post a new and unrelated topic or question to an existing thread. This leads to multiple discussions in a single thread, and this is both confusing and annoying for everyone. Please continue discussion of your request in the thread which you have just created here, and not in this thread. Thank you for your consideration. -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
对不起,我刚发布预览帖后发现这篇文章
以上来自于谷歌翻译 以下为原文 Sorry I just found this post after my preview post |
|
|
|
只有小组成员才能发言,加入小组>>
2432 浏览 7 评论
2831 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2300 浏览 9 评论
3379 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2471 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1425浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
597浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
463浏览 1评论
2016浏览 0评论
739浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 22:44 , Processed in 1.232537 second(s), Total 52, Slave 46 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号