没有合适的资源?快使用搜索试试~ 我知道了~
用MATLAB生成mif&hex(QUARTUS II)文件简介
5星 · 超过95%的资源 需积分: 50 49 下载量 29 浏览量
2009-08-11
10:50:37
上传
评论 2
收藏 64KB PDF 举报
温馨提示
试读
2页
用MATLAB生成mif&hex(QUARTUS II)文件简介.pdf
资源推荐
资源详情
资源评论
用 MATLAB 生成*.mif、*.hex(QUARTUS II)文件简介
macro_qian@yahoo.com.cn
做 FPGA 设计时经常要调用芯片内存。特别对于 ROM,内存的初始化就显得比较重要。
当然你完全可以手工在 QUARTUS II 打开 mif 文件的表格里或是在 EXCEL 中逐个输入,几
十项(字)或是近百项(字)你还可以接受,如果上千项或是更多呢?估计能累的人吐血!
一般内存的初始化数据都是有规律的,符合一定的函数,我们完全可以用 MATLAB 来
完成(如果没规律只能逐项手工输入了)。
首先,我们应该知道*.mif 文件的格式。它是文本格式。随便打开一个 mif 文件,你会
发现它具有如下的格式:
-- Copyright (C) 1991-2007 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions
-- and other software and tools, and its AMPP partner logic
-- functions, and any output files from any of the foregoing
-- (including device programming or simulation files), and any
-- associated documentation or information are expressly subject
-- to the terms and conditions of the Altera Program License
-- Subscription Agreement, Altera MegaCore Function License
-- Agreement, or other applicable license agreement, including,
-- without limitation, that your use is for the sole purpose of
-- programming logic devices manufactured by Altera and sold by
-- Altera or its authorized distributors. Please refer to the
-- applicable agreement for further details.
-- Quartus II generated Memory Initialization File (.mif)
WIDTH=8;
DEPTH=256;
ADDRESS_RADIX=UNS;
DATA_RADIX=UNS;
CONTENT BEGIN
0:127;
1:126;
2:126;
……
……
253:126;
254:126;
255:127;
END;
资源评论
- wencaipku2012-07-20生成的波形不错。
- theolin2012-06-19一个简单的说明,貌似是生成余弦波形的。
- maclilyxuan2012-03-26不错,能用,可惜生成的是signed数据...
haidong1999
- 粉丝: 5
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功