ѧҵƣģ
ڵƬIP˵ĵȾƵʼ
ժҪ
FPGAĿǰܻӭĿɱ֮һIPǽһЩֵ·гõȽϸӵĹģ飬ƳɿIJģ飬ûֱӵЩģ顣FPGAĹģԽԽʹIPһչơͳƵԭƵʼƵIJȽ汻źƵʵ½½ʹнϴľԣȾƵʼƲнϸߵIJȣƵֺܱ㶨IJԾȡĽFPGA8051Ƭŵʵ˻FPGA8051 IPӦãһȾƵʼơ
ؼʣFPGA8051IP,ȾƵʼ
Abstract
Field Programmable Gate Array(FPGA)is one of the most welcomed programmable logic devicesIP core is a module which has changeable parametersWith the IP core we can implement some complex functional module in digital circuitsWith the increasing scale in the FPGAUsing IP core is becoming more and more popular
Traditional frequency measurement principle of the frequency accuracy will decline with the decline of the signal frequency.It Has a greater limitations in use. Equal precision frequency meter not only has high measurement accuracy, and the whole frequency region can maintain a constant test accuracyCombining the advantages of FPGA and 805 l MCUthe paper mainly realize the application of 8051 IP core based on FPGA that design a same accuracy frequency.
Key words: FPGA8051 IP coresame accuracy frequency
1
ѧҵƣģ
Ŀ¼
һ .............................................................. 3
1.1 о ................................................ 3 1.2 Ҫ .......................................................... 3 ڶ ݿо˾KX2C5F+ ..................................... 5
2.1 KX2C5F+ϵͳ ................................................... 5 2.2 ҪӦ .......................................................... 5 ϵͳ .......................................................... 7
3.1 8051Ƭ ................................................... 7 3.2 8051ƬIP˽ ............................................ 7 3.3 8051ƬIPʵϵͳ .................................... 9 3.4 ȾƵʼ ................................................. 10
3.4.1ȾȲƵԭ .............................................. 10 3.4.2ȾȲƵʵ .............................................. 11 3.4.3ռձȵԭ ............................................ 13 3.4.4ռձȵʵ ............................................ 13 3.5ƬĹ ..................................................... 14
3.5.1ݴ .................................................... 14 3.5.2 Һʾ ................................................... 15 3.6ƬFPGAӦ .......................................... 16 ......................................................... 17
4.1 ȾƵʼƳ ................................................. 17 4.2 ƬVHDLһصFPGA ..................... 17 ......................................................... 19 ܽ .................................................................... 20 л .................................................................... 21 ο ................................................................ 22 ¼ .................................................................... 23 ¼1ȾƵʼس ............................................. 23
2
ѧҵƣģ
¼2 Ƭس .................................................... 25
һ
1.1 о
ſɱƼķչÿŵ·ԽԽ࣬һͿɱɺܶʹ洢оƬɵĹܡϵͳĹĺͳɱܺͿɿԡFPGAFild Programmable Gate Array)ĿǰܻӭĿɱ֮һIP֪ʶȨ˻֪ʶȨģ˼EDAоʮҪĵλDataquestѯ˾뵼ҵIPΪASICFPGA/CPLDеԤƺõĵ·ģ顣FPGAĹģԽԽԽԽӣʹIPһչơ
ںܶϵͳɵƬ+FPGAʵֵġƬԼ۱ȸߡСȷĶŵ㱻㷺ӦáڲԴƣƬҪƬչԴΪ˴ﵽٶȺͿԷͿɱƵƬǶʽϵͳƬFPGAУ˵·мߣϵͳĿɿԵõǿͬʱFPGAٶȿ죬FPGAеĵƬٶȿɴ100MHZϣϵͳҲܵõֵظơ
ڴͳƵԭƵʼƵIJȽ汻źƵʵ½½汻źŵƵʵı仯仯ʹнϴľԣȾƵʼƲнϸߵIJȣƵֺܱ㶨IJԾȡҪӦõ8051 IPƵȾƵʼơ
1.2 Ҫ
˽ƵʼƵĻϷȾƵʼڴͳƵʼƵԽԣоȾƵʼƵĹԭʵַFPGAṩӲƳе̿ͼVHDLдƵģ飬FPGAеĵƬ˱д롢ʾȳɵȾƵʼƵơϵͳܿͼͼ1-1ʾ
3
ѧҵƣģ
ͼ1-1 ʵϵͳܿͼ
4