1、 I 8051 单片机的 FPGA 实现 摘 要 单片机以其性价比高、 体积小、 功能灵活等独特观点被广泛应用, 但受其内部资源限制, 需要扩展片外相关资源, 为了达到处理速度和控制灵活性方面的需求, 可以采用可编程逻辑 器件设计单片机。 随着可编程逻辑器件设计技术的发展, 每个逻辑器件中门电路的数越多, 一个逻辑器件 就可以完成本来要由很多分立逻辑器件和存储器组成的功能。 这样做减少了系统的功耗和成 本,提高了性能和可靠性。FPGA 就是目前最受欢迎的可编程逻辑器件之一。IP 核是将一些 在数字电路中常用但比较复杂的功能块, 设计成可修改参数的模块, 让其他用户可调用这些 模块,这样就大大减
2、轻了工程师的负担,避免重复劳动。 随着 FPGA 的规模越来越大,设计越来越复杂,使用 IP 核是一个发展趋势。 本课题结合 FPGA 与 8051 单片机的优点,主要针对以下三个方面研究 (1)FPGA 开发平台的硬件实现 选用 Altera 公司的 EP3C10E144C8 作为核心器件,采用 Int 公司的 EEPROM 芯片 2816A 和 SRAM 芯片 6116 作为片内程序存储器,搭建 FPGA 硬件开发平台。 (2)用 VHDL 语言实现 8051IP 核 分析研究 8051 系列单片机内部各模块结构以及各部分的连接关系,实现了基于 FPGA 的 8051IP 核。主要包括如下
3、几个模块:CPU 模块、片内数据存储器模块、定时计数器模 块、串行端口模块等。 (3)基于 FPGA 的 8051IP 核应用 用所设计的 8051IP 核,实现了流水灯闪烁的应用。 【关键词】 :FPGA 单片机 MC8051 IP 核 I FPGA implementation of the 8051 Abstract Single-chip Microcomputer (MCU) is perspective widely used for its cost-effective, small size, unique flexible features and so on. But li
4、mited by its internal resources, Single-chip Microcomputer (MCU) needs to expand the resources in the chip. In order to achieve the demand of processing speed and control flexibility, you can use the programmable logic device design single-chip Microcomputer (MCU). With the development of the progra
5、mmable logic device design technology, the number of the gate in every logical device increases dramatically. The logic device can realize the functions which can also be fulfilled by many discrete devices and memory chipsThe usage of PLD can reduce the power dissipation and cost of the systemIt can
6、 also improve the quality and reliabilityField 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 circuitsThe workload of engineers can be reduced by using these modulesWe can avoid repeated working also More great the scale of FPGA is, more complex the design is needed So IP core is becoming more and more p