当前位置:首页 >> 信息与通信 >>

MCS文件格式详解


Description
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)
<

br />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. For more PROM File Articles and other Configuration Related Articles, see (Xilinx Answer 34104).

Solution
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

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. 开始记录、字节个数、 加载地址、记录类型、2字符的校验和后缀 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. 16 bit 形式允许20 bit 的分割的地址空间,32 bit 形式允许32 bit 的线性地址空间。 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. : 10 0010 00 地址 00 00 00 0000 00E0 0400 0000 0400 0000 0C80 0480 数据 0020 FCA7 0C80 0180 4010 01C9 0C00 0180 0000 0090 0400 0000 0C00 0380 0000 6000 0C00 0580 0000 6000 0400 0000 0400 0000 3D B7 59 E8

:16个字节 : : : 10 10 10 0020 0030 0040

:02000004000BEF 020000040001F9 :020000040000FA
(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. 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) ******************************************************************************************** **** 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.

AR# 34104 Description

The Configuration Design Assistant walks you through the recommended design flow for configuration while debugging commonly encountered issues, such as iMPACT software install and error messages, Cable Support, and FPGA related issues.The Design Assistant not only provides useful design and troubleshooting information, but breaks down the scope of configuration issues through this process. NOTE:This answer record is part of the Xilinx Configuration Solution Center (Xilinx Answer 34904) Xilinx Configuration Solution Center is available to address all questions related to Configuration.


相关文章:
项目报告排版格式要求
项目报告排版格式要求_学习计划_计划/解决方案_实用...通过全面的透视企业的存货流程, 加上探讨性的分析,...[1] 孙育才.MCS-51 系列单片微机及其应用[M]?....
论文格式参考
MCS-51 单片机特点如下: 1、可靠性好:单片机按照工业控制要求设计,抵抗工业噪声...设计分析与综合、适配、编程文件汇编(装配) 、时序、参数 提取以及编程下载几个...
大智慧格式全
使用说明: 1)调用格式:FxjData2FinData(Market,..." + "mcsl1,卖一量,single,4,24,160,;" + ...(未知),,48,40,200,;" 分笔成交数据文件 report...
HEX文件编码格式解析
HEX文件编码格式解析_计算机软件及应用_IT/计算机_专业资料。标题: HEX 文件解析...这里的机器码已 经是标准的 MCS-51 指令,如果查表的话可以直接知道其功能,...
AMR音频编码器概述及文件格式分析
AMR音频编码器概述及文件格式分析_计算机软件及应用_IT/计算机_专业资料。AMR 音频...文档贡献者 mcsmaple 贡献于2015-01-08 专题推荐 2014教师资格材料分析辅......
办公室收发文流程示意图
说明 所有来文(含传真、电话)都要登记,并提交 ...格式、附件等是否正确无误;用印时,要对 应使用...文档贡献者 mjdjmcs 贡献于2017-03-07 ...
习题(系统结构)
A .PC B .IR C .PSW D .ID 3.MCS-51 外扩存储器时,系统的数据总线是...单片机的存储器在物理上和逻辑上各有几种地址空间,访问不同空间的指令格式 有...
ISE文件类型 第二版
ISE文件类型 第二版_信息与通信_工程科技_专业资料...*.mcs PROM-formatted file in Intel’s MCS-86 ...ISE操作说明 20页 免费 ISE使用方法 13页 免费 ISE...
我的简历200816022215
格式:doc 关键词:暂无同系列文档 【求职准备】求职...本课程主要介绍 MCS-51 单片机的结构和原理, MCS-...C 语言模块化程序设计的方法,文件的基本操作 和使用...
IMPACT软件使用
如果要用其它模式配置 FPGA,则需要通过 iMPACT 进行格式转化, 生成.mcs、.exo 以及.hex 等文件格式,表 M 对常用的配置文件进行比较和说明。 表 5-19 常用的 ...
更多相关标签:
mcs文件格式 | .mcs文件转为其他格式 | bmp文件格式详解 | mp4文件格式详解 | elf文件格式详解 | jpg文件格式详解 | wav文件格式分析详解 | bam文件格式详解 |