赛灵思
直播中

李高歌

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

MCS与BIN文件格式有什么区别?

这两种文件格式(MCS Vs BIN)有什么区别?
为什么PROM文件格式化程序(11.5)不支持生成.bin文件(用于从串行模式配置)?

以上来自于谷歌翻译


以下为原文

What is the difference between these two file formats (MCS Vs BIN) ? why PROM file formatter (11.5) is not supporting to generate the .bin file (for slave serial mode configuration) ?

回帖(12)

潘晶燕

2019-2-18 10:38:45
S,
http://www.fpga-faq.com/archives/33100.html#33108
对正在发生的事情进行了很好的讨论。
25年前,eeproms采用了舞台程序员编程,具有英特尔格式,摩托罗拉格式和各种其他格式。
英特尔和摩托罗拉制造的eeproms早已不复存在,程序员也是如此,但文件格式仍然存在,并成为事实上的标准。
.mcs,.rbt和其他是ASCII表示(ASCI 1 = 31H,ASCII 0 = 30H),带有标题,注释等。
.bin,.bit是二进制文件:所有单个位,1和0。
多年来,所有格式都在不断发展,并且仍然在使用。
新公司制作程序员,并支持所有旧格式。
因此.bin用于使用Impact编程电缆(JTAG或并行)对器件进行编程,而.rbt是执行averify Impact时的文件回读(还提供不等于.bin文件的.bin回读文件)
用来编程部分!)。
.mcd可能习惯于为最终板编程舞会,在开机时配置器件。
Austin Lesea主要工程师Xilinx San Jose

以上来自于谷歌翻译


以下为原文

s,
 
http://www.fpga-faq.com/archives/33100.html#33108
 
Is a good discussion of what is going on.
 
25 years ago, eeproms were programmed with prom programmers, that had Intel format, Motorola format, and various other formats.  The eeproms made by Intel and Motorola are long gone, and so are the programmers, but the file formats remain, and became defacto standards.
 
The .mcs, .rbt, and others are ASCII representations (ASCI 1 = 31H, and ASCII 0=30H) with headers, comments, etc.

The .bin, .bit are binary files:  all single bits, 1's and zeros.
 
All formats have evolved over the years, and are still used.  New companies make programmers, and all the old formats get supported.
 
So a .bin is used to program the part using an Impact programming cable (JTAG or parallel), and a .rbt is the file readback when doing averify Impact (also provide a .bin readback file which is not equal to the .bin file used to program the part!).
 
The .mcd might get used to program a prom for the final board, to configure the part upon power on.
 
 
 
Austin Lesea
Principal Engineer
Xilinx San Jose
举报

h1654155275.5714

2019-2-18 10:57:10
MCS文件是一个HEX文件,其中两个ASCII字符用于表示每个数据字节。
而二进制文件当然只是按顺序包含原始字节流。
因此,MCS文件似乎效率较低,因为它需要2个字节来表示1个字节。
但它有几个优点(1)它在每一行的末尾都有一个校验和用于完整性。
(2)每行包括行应在存储器中的地址。
因此,例如,如果MCS文件包含位于地址空间中相距很远的几个段,则它可能很小,而等效的二进制文件可能很大,因为它会有很多0x00或0xFF来填充段之间的空间。
您可以使用名为HEX2BIN.EXE的旧命令行实用程序轻松地将MCS文件转换为二进制文件。您可以在Keil webste上找到
http://www.keil.com/download/docs/7.asp
吉姆

以上来自于谷歌翻译


以下为原文

The MCS file is a HEX file where two ASCII chars are used to represent each byte of data.  And the binary file of course just contains just the raw byte stream, in sequence.
 
So the MCS file seems less efficient, because it takes 2 bytes to represent 1 byte.  But it has a couple of advantages (1) It has a checksum at the end of each line for integrity.  (2)  Each line includes the address where the line should be located in memory.
 
So for example, if a MCS file contains a few segments located far apart in address space, it can be small while the equivalent binary file might be huge, because it would have a lot of 0x00 or 0xFFs to fill the space between segments.
 
You can easily convert a MCS file to a binary file using an old command line utility called HEX2BIN.EXE  You can find on the Keil webste at
 
   http://www.keil.com/download/docs/7.asp
 
Jim
 
举报

张览秀

2019-2-18 11:07:41
谢谢你的详细信息。

以上来自于谷歌翻译


以下为原文

Thanks for the details.
 
举报

陈秀英

2019-2-18 11:18:17
什么是MCS和BIN文件的长格式/缩写?

以上来自于谷歌翻译


以下为原文

what is long form / abbreviation of the file MCS and BIN ? 
举报

更多回帖

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