安徽理工大学 课程设计说明书
题目: 利用数组的加法实现累加
院 系: 计算机科学与技术系
专业班级: 学 号: 学生姓名:
指导教师: 2016年 6 月 17 日
安徽理工大学课程设计(论文)任务书
计算机科学与工程 学院 物联网工程系
学 号 设计题目 设 计 技 术 参 数 2014302854 学生姓名 王召露 基本模型机 专业(班级) 物联网14-1班 1.本系统采用DJ-CPTH超强型计算机组成原理教学实验系统搭建电路图,在实验箱上实现指令系统。 2.利用软件工程中的可行性研究以及分析方法,进行系统分析。 设 计 要 求 1在基本模型机的基础上构建一组能实现输入、输出、加、减、逻辑与、逻辑或、逻辑非、转移指令等8个功能的指令,这些指令的助记符不得与指导书上相同。 2.指令包括立即数寻址、寄存器直接寻址、存储器直接寻址三种寻址方式。 3.利用新构建的指令系统编程,分别实现求数组元素之和功能。 1.课程设计说明书2000字以上; 2.画出流程图,编写微指令代码和程序。 (1)设计的目的及设计原理。 (2)根据设计要求给出模型机的逻辑框图。 (3)设计指令系统,并分析指令格式。 (4)设计微程序及其实现的方法(包括微指令格式的设计,后续微地址的产生方法以及微程序入口地址的形成)。 (5)模型机当中时序的设计安排。(6)设计指令执行流程。 1.首先认真研究老师所给的题目,了解题目要求做什么。 2.查阅资料,解决难题。 3.编写源程序并调试之。 4.写课程设计说明书 工 作 量 工 作 计 划 参 考 资 料 [1] 张昆藏.计算机系统结构.北京:科学出版社,1994 [2] 著平玲娣,潘雪增《计算机组成与设计》浙江大学出版社,出版日期:2004-1-1 [3] 白中英.计算机组成原理(第五版).北京:科学出版社,1998 [4] DJ-CPTH超强型计算机组成原理与系统结构实验指导书 教研室主任签字 年 月 日 指导教师签字
安徽理工大学课程设计(论文)成绩评定表
指导教师评语: 成绩: 指导教师: 年 月 日
摘要
在现如今飞速发展的第三次信息化革命中,计算机被应用到各行各业,各个领域中。随着计算机的深入发展,人们逐渐步入自动化智能化的生活阶段。“计算机组成原理”是计算机科学与技术系的一门核心专业基础课程,在计算机专业中起到很重要的作用。本次课程设计通过对一个简单模型机的设计与实现,是我们对计算机的基本组成、部件的设计、部件间的连接有更深的理解,利用CPU与简单模型机来实现计算机组成原理课程及实验中所学到的实验原理和编程思想,编写指令的应用程序,用微程序控制器实现一系列的指令功能最终达到将理论与实践相结合。本次设计完成了各指令的格式以及编码的设计,实现了各机器指令微代码,形成具有实现同或功能的应用程序。 本次计算机组成原理课程设计是基本模型机的设计与实现,利用CPU与简单模型机来实现计算机组成原理课程及实验中所学的实验原理和编程思想,硬件设备自拟,编写指令的应用程序,用微程序控制器实现了一系列的指令功能,最终达到将理论与实践相联系,本次设计完成了各指令的格式以及编码的设计,实现了加法指令,形成具有一定功能的完整的应用程序。
部件实验过程中,各部件单元的控制信号是人为手动模拟输入的,本课程设计将能在微程序控制下自动产生各部件单元的控制信号,实现特定指令的功能,通过设计流程图,编写机器指令,微指令 和控制信号程序。首先向存储器(RAM)中装入数据和程序,然后检查写入是否正确,启动程序执行。另外,还需设计以下几个控制台操作微程序:WIN(输入),WMOV(传送),WAND(逻辑与),WOR(逻辑或),WNOT(逻辑非),WOUT(输出),WSUB(减),WJMPC(有进位跳转),WJMP(无条件跳转)。以上各微指令设计完毕后,连接线路在DJ-CPTH超强型计算机组成原理教学实验箱运行程序,并将实验结果显示输出。
关键词:指令系统,寻址方式,算数逻辑运算
Abstract
In today's rapid development of the third information revolution, the computer is applied to all walks of life, in all fields. With the development of computer, people gradually step into the life stage of automation and intelligence. Computer composition principle is a core course of computer science and technology, which plays an important role in computer science. Through the curriculum design of a simple model design and implementation, we on computer basic composition, component design, component connection have a deeper understanding and use of CPU and simple model to realize the computer composition principle course and experiment have learned experimental principle and programming ideas and applications of writing instructions, micro program controller to achieve a series of instructions which will eventually to the combination of theory and practice. The design completed the format of each instruction and the design of the code, the realization of the various machine instructions micro code, with the realization of the function of the realization of the application.
The computer composition principle of curriculum design is the basic model of machine design and implementation, using the CPU and simple model to realize the computer composition principle course and experiment in the experimental principle and programming ideas, self-made hardware, applications written instructions, micro program controller realizes the functions of a series of instructions, and ultimately achieve linking theory and practice, the design completed the command of the format and code design, realization of the add instruction, the formation of complete applications with certain function. Components in the course of the experiment, each component element of the control signal is input of manual simulation, the curriculum design will be able to automatically generate control signal of each unit under the micro program control, to achieve the function of specific instructions, through the design flow chart, write machine instructions, micro refers to order and control signal. First, load data and programs into the memory (RAM), and then check whether the write is correct, start the program execution. In addition, the need to design following console micro operation procedures: win (input), WMOV (transport), wand (logical and), wor (logical or), WNOT (non logical). WOUT (output). WSUB (minus), WJMPC carry jump, WJMP (unconditional jump). The above micro instruction design is completed, the connection line in the DJ-CPTH super computer composition principle teaching experiment box operation procedure, and the experimental results show that the output.
Keywords: Instruction system, addressing mode, arithmetic logic operation