采用DDS技术的波形发生器(FPGA实现)
源代码在线查看: sin.mif
--Quartus Memory Initialization File
--sin.mif
WIDTH=8;
DEPTH=256;
ADDRESS_RADIX=HEX;
DATA_RADIX=DEC;
CONTENT BEGIN
0:128;
1:128;
2:129;
3:130;
4:131;
5:131;
6:132;
7:133;
8:134;
9:135;
a:135;
b:136;
c:137;
d:138;
e:138;
f:139;
10:140;
11:141;
12:142;
13:142;
14:143;
15:144;
16:145;
17:145;
18:146;
19:147;
1a:148;
1b:149;
1c:149;
1d:150;
1e:151;
1f:152;
20:152;
21:153;
22:154;
23:155;
24:155;
25:156;
26:157;
27:158;
28:158;
29:159;
2a:160;
2b:161;
2c:162;
2d:162;
2e:163;
2f:164;
30:165;
31:165;
32:166;
33:167;
34:167;
35:168;
36:169;
37:170;
38:170;
39:171;
3a:172;
3b:173;
3c:173;
3d:174;
3e:175;
3f:176;
40:176;
41:177;
42:178;
43:178;
44:179;
45:180;
46:181;
47:181;
48:182;
49:183;
4a:183;
4b:184;
4c:185;
4d:186;
4e:186;
4f:187;
50:188;
51:188;
52:189;
53:190;
54:190;
55:191;
56:192;
57:192;
58:193;
59:194;
5a:194;
5b:195;
5c:196;
5d:196;
5e:197;
5f:198;
60:198;
61:199;
62:200;
63:200;
64:201;
65:202;
66:202;
67:203;
68:203;
69:204;
6a:205;
6b:205;
6c:206;
6d:207;
6e:207;
6f:208;
70:208;
71:209;
72:210;
73:210;
74:211;
75:211;
76:212;
77:213;
78:213;
79:214;
7a:214;
7b:215;
7c:215;
7d:216;
7e:217;
7f:217;
80:218;
81:218;
82:219;
83:219;
84:220;
85:220;
86:221;
87:221;
88:222;
89:222;
8a:223;
8b:224;
8c:224;
8d:225;
8e:225;
8f:226;
90:226;
91:227;
92:227;
93:228;
94:228;
95:228;
96:229;
97:229;
98:230;
99:230;
9a:231;
9b:231;
9c:232;
9d:232;
9e:233;
9f:233;
a0:234;
a1:234;
a2:234;
a3:235;
a4:235;
a5:236;
a6:236;
a7:236;
a8:237;
a9:237;
aa:238;
ab:238;
ac:238;
ad:239;
ae:239;
af:240;
b0:240;
b1:240;
b2:241;
b3:241;
b4:241;
b5:242;
b6:242;
b7:242;
b8:243;
b9:243;
ba:243;
bb:244;
bc:244;
bd:244;
be:245;
bf:245;
c0:245;
c1:246;
c2:246;
c3:246;
c4:246;
c5:247;
c6:247;
c7:247;
c8:248;
c9:248;
ca:248;
cb:248;
cc:249;
cd:249;
ce:249;
cf:249;
d0:250;
d1:250;
d2:250;
d3:250;
d4:250;
d5:251;
d6:251;
d7:251;
d8:251;
d9:251;
da:252;
db:252;
dc:252;
dd:252;
de:252;
df:252;
e0:253;
e1:253;
e2:253;
e3:253;
e4:253;
e5:253;
e6:253;
e7:254;
e8:254;
e9:254;
ea:254;
eb:254;
ec:254;
ed:254;
ee:254;
ef:254;
f0:254;
f1:254;
f2:255;
f3:255;
f4:255;
f5:255;
f6:255;
f7:255;
f8:255;
f9:255;
fa:255;
fb:255;
fc:255;
fd:255;
fe:255;
ff:255;
END;