mif文件的格式定义(From Altera)(ZZ http://blog.ednchina.com/hustzq/195488/message.aspx#)
来源:互联网 发布:淘宝网衬衣 编辑:程序博客网 时间:2024/05/20 16:13
Memory Initialization File (.mif) Definition
An ASCII text file (with the extension .mif) that specifies the initial content of a memory block (CAM, RAM, or ROM), that is, the initial values for each address. This file is used during project compilation and/or simulation. You can create a Memory Initialization File in the Memory Editor, the In-System Memory Content Editor, or the Quartus II Text Editor.
A Memory Initialization File serves as an input file for memory initialization in the Compiler and Simulator. You can also use a Hexadecimal (Intel-Format) File (.hex) to provide memory initialization data.
A Memory Initialization File contains the initial values for each address in the memory. A separate file is required for each memory block. In a Memory Initialization File, you must specify the memory depth and width values. In addition, you can specify data radixes as binary (BIN), hexadecimal (HEX), octal (OCT), signed decimal (DEC), or unsigned decimal (UNS) to display and interpret addresses and data values. Data values must match the specified data radix.
When creating a Memory Initialization File in the Quartus II Text Editor, you must start with the DEPTH, WIDTH, ADDRESS_RADIX and DATA_RADIX keywords. You can use Tab "/t" and Space " " characters as separators, and insert multiple lines of comments with the percent "%" character, or a single comment with double dash "--" characters. Address : data pairs represent data contained inside certain memory addresses and you must place them between the CONTENT BEGIN and END keywords, as shown in the following examples.
% multiple-line comment
multiple-line comment %
-- single-line comment
DEPTH = 32; -- The size of data in bits
WIDTH = 8; -- The size of memory in words
ADDRESS_RADIX = HEX; -- The radix for address values
DATA_RADIX = BIN; -- The radix for data values
CONTENT -- start of (address : data pairs)
BEGIN
00 : 00000000; -- memory address : data
01 : 00000001;
02 : 00000010;
03 : 00000011;
04 : 00000100;
05 : 00000101;
06 : 00000110;
07 : 00000111;
08 : 00001000;
09 : 00001001;
0A : 00001010;
0B : 00001011;
0C : 00001100;
END;
Address : Data Pairs Syntax Rules
Definition
Example
A : D
Addr[A] = D
2 : 4
Address: 01234567
Data: 00400000
[A0..A1] : D
Addr[A0] to [A1] contain data D
[0..7] : 6
Address: 01234567
Data: 66666666
[A0..A1] : D0 D1
Addr[A0] = D0,
Addr[A0+1] = D1,
Add [A0+2] = D0,
Addr[A0+3] = D1,
until A0+n = A1
[0..7] : 5 6
Address: 01234567
Data: 56565656
A : D0 D1 D2
Addr[A] = D0,
Addr[A+1] = D1,
Addr[A+2] = D2
2 : 4 5 6
Address: 01234567
Data: 00456000
- mif文件的格式定义(From Altera)(ZZ http://blog.ednchina.com/hustzq/195488/message.aspx#)
- 碰到不能删除DLL文件时的解决办法-- 转载于http://blog.ednchina.com/joyjs/17757/message.aspx
- VisualSVN Server和TotoiseSVN的配置和使用方法(转自:http://blog.ednchina.com/yueleilei/423305/message.aspx)
- 基于ARM的嵌入式系统Bootloader启动流程分析[转自http://blog.ednchina.com/darkbluexn/11951/message.aspx#]
- http://blog.ednchina.com/tiloog embedded os
- CString 的方法(from:http://blog.csdn.net/lijuwen/archive/2006/03/13/623186.aspx)
- http://www.hanselman.com/blog/default.aspx
- from: http://ud3hero.spaces.live.com/blog/ 读取properties文件
- MIF 百科(http://baike.baidu.com/view/2877561.htm)
- opencore的文件识别(http://blog.csdn.net/jinlking/archive/2009/04/20/4095415.aspx)
- MapInfo中MIF文件和MID文件的格式
- MapInfo中MIF文件和MID文件的格式
- 电子网站导航 (zz http://blog.163.com/huanghuairen@126/blog/static/19577851200710192333382/)
- Altera RAM/ROM 初始化文件MIF生成详解
- html做的记事本(转至http://blog.donews.com/tabris17/archive/2004/06/01/24230.aspx)
- 信号---from ----http://www.roczhou.com/blog/
- http://blog.hexun.com/lotus_west/default.aspx?page=3
- http://blog.hexun.com/lotus_west/default.aspx?page=3
- SQL Server 2005 COM+ 目录要求”警告
- 使用telnet发送HTTP请求
- 大家好
- 虚方法与抽象方法有什么区别
- 5月6日地图下载。同学们要练习!
- mif文件的格式定义(From Altera)(ZZ http://blog.ednchina.com/hustzq/195488/message.aspx#)
- oracle表空间的设计理念
- 网页设计问题
- Cookie
- 内部对象介绍
- ORACLE表空间管理
- mahout
- ASP.NET页面状态管理——ViewState的使用(转)
- JSP内部对象-out