毕业论文_基于matlab的逻辑电路设计与仿真设计

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于MATLAB的逻辑电路设计与仿真

工商大学计算机科学与信息工程学院电子信息工程 2008级2班果佳

指导教师:蔡忠见

摘要

MATLAB具有强大的图形处理功能、符号运算功能和数值计算功能。MATLAB 工具几乎涵盖了整个科学技术运算领域。其中系统的仿真(Simulink)工具箱是从底层开发的一个完整的仿真环境和图形界面。在这个环境中,用户可以完成面向框图系统仿真的全部过程,并且更加直观和准确地达到仿真的目标。此次,以数字电路中的逻辑电路为线索来学习Simulink,了解了许多数字电路中常用模块的使用方法.电路中除具有逻辑运算功能的组合电路外,还必须有能够记忆电路状态的存储单元或延迟单元,这些存储或延迟单元主要由本次设计所用到的触发器来实现。D触发器、RS触发器、JK触发器等这些时序逻辑电路中常用的器件在Simulink中都有相应的仿真模块,除此之外,用户还可以自行设计封装模块来一步一步完成更大的电路系统,实现更强大的逻辑功能。

利用MATLAB 软件,通过设计图形用户界面(GUI),说明Matlab功能强大、简单实用、调节容易、可视性好,可大大提高计算效率,缩短编程时间,是一种简便实用的计算工具,可成功地应用于信号处理中,在教学和研究等领域具有广泛的应用前景和一定的推广价值。

关键词:MATLAB、Simulink、逻辑电路、GUI

Abstract

MATLAB has a powerful graphics processing capabilities, symbolic computing and numerical computing functions.MATLAB tools are covering almost the entire scientific and technical computing. One system simulation toolbox is from the bottom of the development of a complete simulation environment and the graphical interface. In this environment, the user can complete system simulation block diagram for the entire process and achieve a more intuitive and accurate simulation of goal. This time, with digital circuits in the logic circuits for clues to learn Simulink, learned a lot in common digital circuit module is used. Sequential circuits, in addition to features with a logical combination of the circuit, but also must be able to remember the state of the circuit memory cell or delay unit, the storage or delay units primarily used in the design of this flip-flop to achieve. D flip-flops, RS flip-flop, JK flip-flop sequential logic circuits such as those commonly used in devices in Simulink, the simulation has a corresponding module, in addition, Users can also design their own package module step by step to complete a larger circuit system to achieve more powerful logic function.

Through the design of graphical user interface (GUI) by Using Matlab,we can learn that Matlab is powerful, simple, practical, easy adjustment, visibility, and can greatly improve the computational efficiency and shorten the programming time is a simple and practical tool,can be successfully applied to signal processing, in the teaching and research in areas such as the application of a wide range of prospects and the promotion of a certain value.

Keywords: MATLAB, Simulink, logic circuits,GUI

目录

摘要 (1)

Abstract (2)

第一章绪论.............................................................. - 3 - 第二章设计目的、容和思想................................................ - 5 -

2.1设计的目的和容................................................... - 5 -

2.1.1设计目的................................................... - 5 -

2.1.2 设计的容................................................... - 5 -

2.2设计思想......................................................... - 6 - 第三章 MATLAB简介....................................................... - 6 -

3.1 MATLAB程序设计................................................. - 7 -

3.2 Simulink仿真................................................... - 8 -

3.2.1 Simulink 启动.............................................. - 9 -

3.2.2 Simulink 模块库及模块操作.................................. - 9 -

3.2.3 仿真参数设置.............................................. - 10 -

3.3图形用户界面(GUI)............................................. - 11 - 第四章逻辑电路及其设计................................................. - 11 -

4.1 组合逻辑电路................................................... - 12 -

4.1.1 8线3线编码器........................................... - 12 -

4.1.2 3线8线译码器........................................... - 13 -

4.1.3 7段数码管............................................... - 14 -

4.1.4 4选1数据选择器......................................... - 15 -

4.2 时序逻辑电路................................................... - 16 -

4.2.1 并行寄存器............................................... - 16 -

4.2.2 移位寄存器............................................... - 17 -

4.2.3 双向移位寄存器的设计..................................... - 18 -

4.2.4 扭环计数器............................................... - 21 - 第五章基于MATLAB的组合逻辑电路仿真.................................... - 22 -

5.1 8线3线编码器的设计及仿真................................... - 22 -

5.1.1 M文件程序设计............................................ - 22 -

5.1.2 Simulink仿真............................................. - 23 -

5.2 3线8线译码器的设计及仿真................................... - 24 -

5.2.1 M文件程序设计............................................ - 24 -

5.2.2 Simulink仿真............................................. - 25 -

5.3 7段数码管................................................... - 26 -

5.3.1 M文件程序设计............................................ - 26 -

5.3.2 Simulink仿真 (30)

5.4 数据选择器的设计及仿真 (31)

5.4.1 M文件程序设计 (31)

5.4.2 Simulink仿真 (31)

第六章基于MATLAB的时序逻辑电路仿真 (32)

6.1 并行寄存器的电路设计与仿真 (32)

相关文档
最新文档