/r/n
N=linspace(0,2*pi,101);
M=127.5*(sin(N)+1);
number=[0:100];
for i=1:101
comer(i)=':';
end
for i=1:101
semi(i)=';';
end
data=[number; comer; M; semi];
f1=fopen('d:/sin.txt','w');
fprintf(f1,'%d%c%d%c/r/n',data);
fclose(f1)
-- 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 ******
-- Subscription Agreement, Altera MegaCore Function ******
-- Agreement, or other applicable ****** 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)