打印

[设计心得]FPGA配置文件格式问题

[复制链接]
3961|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
hjjnet|  楼主 | 2011-10-11 23:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
FPGA, TE, AC, AN, ge
PROM的配置文件,格式有MCS, EXO,HEX等
The iMPACT software can be used to generate the following PROM file formats:

Intel MCS-86 Hexadecimal Object (.mcs)

Motorola EXORmacs (.exo)

Tektronix HEX (.tek)
Hexadecimal files ("'.hex") containing only data (without addressing) in ASCII format can also be generated using the iMPACT software.
EXO files will not be support past iMPACT 11.4 and PROMGen will need to be used to change these files into MCS files.

相关帖子

沙发
hjjnet|  楼主 | 2011-10-11 23:18 | 只看该作者
PROMGen can be used to change file format from one type to the another in the following manner.
The following changes an ".mcs" file into a hex file:
promgen -p hex -r input.mcs -o output.hex
PROM File Formats
INTEL MCS-86 HEXADECIMAL OBJECT
File Format Code 88

使用特权

评论回复
板凳
hjjnet|  楼主 | 2011-10-11 23:19 | 只看该作者
INTEL MCS-86 HEXADECIMAL OBJECT
File Format Code 88

The Intel Hexadecimal Object record format has a 9-character (4 field) prefix that defines the start of the record, byte count, load address, and record type, as well as a 2-character checksum suffix.  
The 16-bit hexadecimal format allows for a 20-bit segmented address space, and the 32-bit format allows for the 32-bit linear address space.
The six record types are:  
00 = Data Record  
01 = End of File Record (signals the end of the file)  
02 = Extended Segment Address Record (provides the offset to determine the absolute destination address)  
03 = Start Segment Address Record (is ignored during input and not sent during output by Data I/O translator firmware)  
04 = Extended Linear Address Record (provides the offset to determine the absolute destination address) *
05 = Start Linear Address Record (provides the execution start address) *
*NOTE: The Extended Linear Address Record type and Start Linear Address Record type are supported only in the 32-bit format.
  

(The Start Segment Address record (Type 03) is not used by Data I/O firmware.)
The checksum is the two's complement of the binary summation of the preceding bytes in the record (including the byte count, address, and any data bytes) in hexadecimal notation.
The extended segment address record (Type 02) defines Bits 4 to 19 of the 20-bit segment base address. This address will be added to subsequent data record addresses to provide the absolute address. (This record can appear randomly in the file, but for this application, it will be the initial record.)
The extended linear address record (Type 04) defines bits 16 to 31 of the 32-bit linear base address. This address will be added to subsequent data record addresses to provide the absolute address.  
NOTE: Always specify the address offset when using this format, even when the offset is zero.  
The Data I/O firmware will force the record size to 16 (decimal) if the record size is specified greater than 16.

使用特权

评论回复
地板
hjjnet|  楼主 | 2011-10-11 23:19 | 只看该作者
MOTOROLA EXORmacs  
File Format Code 87

A Motorola data file may begin with a sign-on record, but for this application it will be ignored. (Data records have an 8- or 9-character prefix and a two- character checksum suffix.)
  

The Byte Count is the number of data bytes in the record plus 3 (for a four-hexadecimal character address) or plus 4 (for a six-hexadecimal character address) for the checksum and address.
The checksum is a one's complement of binary summation of preceding bytes in the record (including byte count, address, and data bytes) in hexadecimal notation.

************************************************************************************************
Tektronix maximum address:..................................................65536 (x100000)
Motorola EXORmacs maximum address:..........................16777216 (x100000)
16-bit Intel MCS-86 Hexadecimal maximum address:..........1048576 (x100000)
32-bit Intel MCS-86 Hexadecimal maximum address:....4294967296 (x100000)
************************************************************************************************

使用特权

评论回复
5
hjjnet|  楼主 | 2011-10-11 23:20 | 只看该作者
TEKTRONIX HEXADECIMAL
File Format Code 86

The Tektronix Hexadecimal format for a data file consists of a 9-character prefix (start character, address, byte count, and checksum of the prefix) followed by data bytes and ended by a 2-character checksum of the data characters. The end-of-file record consists only of control characters used to signal the end of the transmission and a byte count and sum-check for verification.
  

The prefix checksum is the 8-bit sum of the four-bit hexadecimal value of the six digits that make up the address and byte count. The data checksum is the 8-bit sum, modulo 256, of the 4-bit hexadecimal values of the digits that make up the data bytes.

使用特权

评论回复
6
AutoESL| | 2011-10-12 10:25 | 只看该作者
收藏起来,说不定哪天就用上了

使用特权

评论回复
7
快乐出发| | 2011-10-12 11:50 | 只看该作者
MARK

使用特权

评论回复
8
kakio| | 2011-10-12 12:53 | 只看该作者
好的资料都收都收

使用特权

评论回复
9
kakio| | 2011-10-12 12:54 | 只看该作者
:lol

使用特权

评论回复
10
mzhang198| | 2011-10-12 13:02 | 只看该作者
谢谢分享!

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:Devere Hu E-mail: deverehu@comtech.com.cn Tel: 027-87568667 Mobile  :13545000634 Comtech (Wuhan), Xilinx FAE

170

主题

734

帖子

2

粉丝