基于NiosII的嵌入式系统设计 Embeded System Based on NiosII 摘要 何为嵌入式系统?根据英国电机工程师协会的定义,嵌入式系统为控制、监视、或辅助设备、机器甚至是工厂操作的装置。它是计算机软件和硬件的综合体。亦可涵盖机械和其他附属装置。整个综合体设计的目的在于实现某种特定的功能。随着可编程逻辑技术和以NiosII为代表软核处理器的不断进步和创新,使SOPC(可编程片上系统)成为可能。文章对嵌入式系统的发展现状及发展趋势和基本理论进行了阐述,并利用altera公司的开发工具进行了嵌入式系统开发。 关键词嵌入式系统 FPGA SOPC NiosII Abstract What is a embeded system? By the definition of the British Electrical Engineer Asociation, a Embeded System is a suit of devices,which is used to control,monitor or assistant equipments,machines ,and even the operations of a whole also,it is plex of the software and the hardware containing some other subordinate is our purpose to implement some specific the unceasing development of the programmable logic technology,FPGA(Field Programmable Gate Array) and the soft cpu such as NiosII make SOPC(system on a programmable chip) e true. This article illustrates the current development situation ,tendency and basic theory,and finally do some work in the exploration of embeded system. Keywords Embebed System FPGA SOPC NiosII 目录 第1章引言 1 嵌入式系统简介 - 1 - 嵌入式系统概述 - 1 - 嵌入式系统发展现状 - 2 - 嵌入式系统发展趋势――SOC - 3 - 可编程逻辑器件简介 - 3 - 可编程逻辑器件的发展历程 - 3 - FPGA/CPLD的特点 - 4 - FPGA结构与原理初步 - 5 - FPGA厂商简介 - 6 - 第2章基于NIOSII的嵌入式系统设计 - 7 - NiosII微处理器简介 - 7 - NiosII嵌入式处理器开发流程 - 8 - 硬件设计 - 8 - 软件设计 - 9 - 控制电路设计框图 - 10 - 设计举例――电机定时控制电路设计 - 10 - 软件开发概述 - 12 - 第3章利用QUARTUS II设计PLL和延时电路 - 14 - QuartusII设计流程 - 14 - 流程开发 - 15 - PLL和延时电路的设计 - 19 - MegaWizard Plug-In Manager - 19 - RTL Viwer - 21 - SignalTap II 逻辑分析仪 - 22 - 最新版本性增功能 - 25 - 第4章 NIOSII微处理器的实现和软件开发 - 26 - 标准NiosII系统的建立 - 26 - PWM模块设计 - 28 - 定时器软件开发 - 31 - 软件程序的烧写 - 37 - 第5章利用 MODELSIM SE对设计仿真 - 38 - Modelsim 简介 - 38 - 设计仿真 - 39 - 进行多库仿真 - 42 - 建立资源库 - 42 - 仿真技巧 - 42 - 制作固定仿真库 - 44 - modelsim 使用中的注意事项 - 4