组成原理--指令扩展实验

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

华北科技学院计算机系设计性实验实验报告课程名称计算机组成原理B实验学期2011至2012学年第一学期学生所在系部计算机系年级2011专业班级计科ZB111学生姓名学号任课教师席振元实验成绩计算机系制华北科技学院计算机系设计性实验报告第1页《计算机组成原理B》课程设计性实验报告开课实验室:计算机组成原理实验室2011年11月9日实验题目指令扩展实验一、实验目的深入了解教学计算机微程序控制器的组成和设计技术,包括Am2910器件的功能与具体用法,教学计算机的总体组成和部件之间的连接方法,深入理解控制器部件的组成、设计、控制与使用等诸项知识。1、进一步掌握微程序定序器AM2910、运算器AM2901、外围GAL、EPROM芯片之间的联系,达到对整机概念的提升;2、进一步掌握微程序控制器的组成;3、掌握微程序及机器指令的扩展方法。二、设备与环境TEC-XP+教学机、微机、EEPROM芯片、装有WindowsXP、ISPLEVER、ispVMSystem等软件。三、实验内容在现有的基本指令系统上,扩展2条指令。四、实验步骤1、扩展的2、4指令的格式及功能写明2条指令的格式、功能、寻址方式、操作码编码、微程序步数、微程序入口地址。第二条指令格式:ADTWDR功能:DR+2-DR(DR内的值自加2)寻址方式:寄存器寻址操作码编码:10100001(A1)微程序步数:2微程序入口地址:81第四条指令格式:SWRMDR,[SR]功能:DR和[SR]的值互换寻址方式:DR为寄存器寻址、[SR]为寄存器间接寻址操作码编码:11101001(E9)微程序步数:4微程序入口地址:A1华北科技学院计算机系设计性实验报告第2页2、指令所对应的微程序指令入口地址下址CI3-0SCC3-0MVRI2-0I8-6I5-3B口A口SSTSSHSCIDC2DC1ADTWDR8100E0433080110030304330801100SWRMDR,[SR]A100E0430080000000E0441008003000E01730800000303002100000013、ABEL语言源程序编辑以及JED文件生成m256c.abl源程序修改过程(10步)以及生成JED文件的整个操作过程。10步操作过程如下所示:定义指令操作码、定义微址、入口地址定义、下址的定义、定义条件判断、定义MVR3位、修改I0~8、修改A,B口、修改SST,SSH,SCI、修改DC1,DC2。按照上述10个步骤在以下代码中进行添加:DC1=[DC1_2,DC1_1,DC1_0];DC2=[DC2_2,DC2_1,DC2_0];D=[D7,D6,D5,D4,D3,D2,D1,D0];Y=[Y7,Y6,Y5,Y4,Y3,Y2,Y1,Y0];NXTADDR=[NXTADDR7,NXTADDR6,NXTADDR5,NXTADDR4,NXTADDR3,NXTADDR2,NXTADDR1,NXTADDR0];GALSCC=[CI3,CI2,CI1,CI0,SCC3,SCC2,SCC1,SCC0];all=[OUTER,SCI,SSH,I,SST,A,B,DC1,DC2];ADD=(IR==[0,0,0,0,0,0,0,0]);SUB=(IR==[0,0,0,0,0,0,0,1]);AND=(IR==[0,0,0,0,0,0,1,0]);OR=(IR==[0,0,0,0,0,1,1,0]);XOR_=(IR==[0,0,0,0,0,1,0,0]);CMP=(IR==[0,0,0,0,0,0,1,1]);TEST=(IR==[0,0,0,0,0,1,0,1]);MVRR=(IR==[0,0,0,0,0,1,1,1]);INC=(IR==[0,0,0,0,1,0,0,1]);DEC=(IR==[0,0,0,0,1,0,0,0]);SHL=(IR==[0,0,0,0,1,0,1,0]);华北科技学院计算机系设计性实验报告第3页SHR=(IR==[0,0,0,0,1,0,1,1]);JR=(IR==[0,1,0,0,0,0,0,1]);JRC=(IR==[0,1,0,0,0,1,0,0]);JRNC=(IR==[0,1,0,0,0,1,0,1]);JRZ=(IR==[0,1,0,0,0,1,1,0]);JRNZ=(IR==[0,1,0,0,0,1,1,1]);JMPA=(IR==[1,0,0,0,0,0,0,0]);LDRR=(IR==[1,0,0,0,0,0,0,1]);LDPC=(IR==[1,0,0,0,1,0,0,1]);STRR=(IR==[1,0,0,0,0,0,1,1]);IN_=(IR==[1,0,0,0,0,0,1,0]);OUT=(IR==[1,0,0,0,0,1,1,0]);PUSH=(IR==[1,0,0,0,0,1,0,1]);POP=(IR==[1,0,0,0,0,1,1,1]);PSHF=(IR==[1,0,0,0,0,1,0,0]);POPF=(IR==[1,0,0,0,1,1,0,0]);MVRD=(IR==[1,0,0,0,1,0,0,0]);CALA=(IR==[1,1,0,0,1,1,1,0]);RET=(IR==[1,0,0,0,1,1,1,1]);MA00=(Y==[0,0,0,0,0,0,0,0]);MA01=(Y==[0,0,0,0,0,0,0,1]);MA02=(Y==[0,0,0,0,0,0,1,0]);MA03=(Y==[0,0,0,0,0,0,1,1]);MA04=(Y==[0,0,0,0,0,1,0,0]);MA05=(Y==[0,0,0,0,0,1,0,1]);MA06=(Y==[0,0,0,0,0,1,1,0]);MA07=(Y==[0,0,0,0,0,1,1,1]);MA08=(Y==[0,0,0,0,1,0,0,0]);MA09=(Y==[0,0,0,0,1,0,0,1]);MA0A=(Y==[0,0,0,0,1,0,1,0]);MA0B=(Y==[0,0,0,0,1,0,1,1]);MA0C=(Y==[0,0,0,0,1,1,0,0]);MA0D=(Y==[0,0,0,0,1,1,0,1]);MA0E=(Y==[0,0,0,0,1,1,1,0]);MA0F=(Y==[0,0,0,0,1,1,1,1]);MA10=(Y==[0,0,0,1,0,0,0,0]);MA11=(Y==[0,0,0,1,0,0,0,1]);MA12=(Y==[0,0,0,1,0,0,1,0]);MA13=(Y==[0,0,0,1,0,0,1,1]);华北科技学院计算机系设计性实验报告第4页MA14=(Y==[0,0,0,1,0,1,0,0]);MA15=(Y==[0,0,0,1,0,1,0,1]);MA16=(Y==[0,0,0,1,0,1,1,0]);MA17=(Y==[0,0,0,1,0,1,1,1]);MA18=(Y==[0,0,0,1,1,0,0,0]);MA19=(Y==[0,0,0,1,1,0,0,1]);MA1A=(Y==[0,0,0,1,1,0,1,0]);MA1B=(Y==[0,0,0,1,1,0,1,1]);MA1C=(Y==[0,0,0,1,1,1,0,0]);MA1D=(Y==[0,0,0,1,1,1,0,1]);MA1E=(Y==[0,0,0,1,1,1,1,0]);MA1F=(Y==[0,0,0,1,1,1,1,1]);MA20=(Y==[0,0,1,0,0,0,0,0]);MA21=(Y==[0,0,1,0,0,0,0,1]);MA22=(Y==[0,0,1,0,0,0,1,0]);MA23=(Y==[0,0,1,0,0,0,1,1]);MA24=(Y==[0,0,1,0,0,1,0,0]);MA30=(Y==[0,0,1,1,0,0,0,0]);MA31=(Y==[0,0,1,1,0,0,0,1]);MA89=(Y==[1,0,0,0,1,0,0,1]);//***********************************************MA3A=(Y==[0,0,1,1,1,0,1,0]);MA3B=(Y==[0,0,1,1,1,0,1,1]);MA3C=(Y==[0,0,1,1,1,1,0,0]);MA3D=(Y==[0,0,1,1,1,1,0,1]);MA3E=(Y==[0,0,1,1,1,1,1,0]);MA3F=(Y==[0,0,1,1,1,1,1,1]);MA50=(Y==[0,1,0,1,0,0,0,0]);MA51=(Y==[0,1,0,1,0,0,0,1]);MA52=(Y==[0,1,0,1,0,0,1,0]);MA53=(Y==[0,1,0,1,0,0,1,1]);MA54=(Y==[0,1,0,1,0,1,0,0]);MA55=(Y==[0,1,0,1,0,1,0,1]);MA56=(Y==[0,1,0,1,0,1,1,0]);MA57=(Y==[0,1,0,1,0,1,1,1]);MA58=(Y==[0,1,0,1,1,0,0,0]);MA59=(Y==[0,1,0,1,1,0,0,1]);MA5A=(Y==[0,1,0,1,1,0,1,0]);MA5B=(Y==[0,1,0,1,1,0,1,1]);MA5C=(Y==[0,1,0,1,1,1,0,0]);华北科技学院计算机系设计性实验报告第5页MA5D=(Y==[0,1,0,1,1,1,0,1]);MA5E=(Y==[0,1,0,1,1,1,1,0]);MA5F=(Y==[0,1,0,1,1,1,1,1]);MA60=(Y==[0,1,1,0,0,0,0,0]);MA61=(Y==[0,1,1,0,0,0,0,1]);MA62=(Y==[0,1,1,0,0,0,1,0]);MA63=(Y==[0,1,1,0,0,0,1,1]);MA64=(Y==[0,1,1,0,0,1,0,0]);MA65=(Y==[0,1,1,0,0,1,0,1]);MA66=(Y==[0,1,1,0,0,1,1,0]);MA67=(Y==[0,1,1,0,0,1,1,1]);MA68=(Y==[0,1,1,0,1,0,0,0]);MA69=(Y==[0,1,1,0,1,0,0,1]);MA6A=(Y==[0,1,1,0,1,0,1,0]);EQUATIONSCK=CK1;SIGEXT=IR7&!IR15#!IR7&IR15;//************MAPROM58C65*****************************D0=!C_M&(!_MAP&(SUB#OR#CMP#MVRR#DEC#SHR#JR#PSHF#PUSH#POP#POPF#STRR#LDRR#LDPC#MVRD#CALA#RET)#NXTADDR0&!_PL)&!Bit8;D1=!C_M&(!_MAP&(AND#OR#TEST#MVRR#SHL#SHR#IN_#OUT#POP#POPF#LDRR#LDPC#JMPA#CALA#RET)#NXTADDR1&!_PL)&!Bit8;D2=!C_M&(!_MAP&(ADD#SUB#AND#OR#INC#DEC#SHL#SHR#PSHF#PUSH#POP#POPF#MVRD#JMPA#CALA)#NXTADDR2&!_PL)&!Bit8;D3=!C_M&(!_MAP&(XOR_#CMP#TEST#MVRR#INC#DEC#SHR#SHL#STRR#LDRR#LDPC#MVRD#JMPA#CALA)#NXTADDR3&!_PL)&!Bit8;D4=!C_M&(!_MAP&(JRC#JRNC#JRZ#JRNZ#JR#IN_#OUT#PSHF#PUSH#POP#POPF#STRR#LDRR#LDPC#MVRD#JMPA#CALA)#NXTADDR4&!_PL)&!Bit8;D5=!C_M&(!_MAP&(RET)#NXTADDR5&!_PL)&!Bi

1 / 11
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功