matlab中生成quartus可用的.mif文件

上一篇 / 下一篇  2008-01-06 08:59:06 / 个人分类:FPGA

fid=fopen('../test1.mif','W' ); % test1.mif is the file which you want to use in Quartus II %
fprintf(fid,'WIDTH=8;\n'); % WIDTH is the word band %
fprintf(fid,'DEPTH=128;\n\n'); % DEPTH is the the number of datas %
fprintf(fid,'ADDRESS_RADIX=UNS;\n');
fprintf(fid,'DATA_RADIX=UNS;\n\n');
fprintf(fid,'CONTENT BEGIN\n\n');
x=0:1:127;
y=round(31*sin(pi*x/64))+32;
fprintf(fid,'%d:%d;\n',x,y);
fprintf(fid,'END;'); % the end of the file %   
fclose(fid);
plot(x,y);
grid on

TAG: FPGA Fpga fpga MATLAB matlab Quartus quartus

创意无限 引用 删除 marklxz850322   /   2008-02-23 21:07:58
请问,如何将quartus的数据转化为matlab中的图形
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 1185
  • 日志数: 4
  • 建立时间: 2008-01-06
  • 更新时间: 2008-10-01

RSS订阅

Open Toolbar