




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
华北科技学院计算机系设计性实验实 验 报 告 课程名称 计算机组成原理B 实验学期 2011 至 2012 学年 第 一 学期学生所在系部 计算机系 年级 2011 专业班级 计科ZB111 学生姓名 学号 任课教师 席振元 实验成绩 计算机系制 计算机组成原理B课程设计性实验报告开课实验室:计算机组成原理实验室 2011 年11 月 9 日实验题目指令扩展实验一、实验目的深入了解教学计算机微程序控制器的组成和设计技术,包括Am2910器件的功能与具体用法,教学计算机的总体组成和部件之间的连接方法,深入理解控制器部件的组成、设计、控制与使用等诸项知识。1、进一步掌握微程序定序器AM2910、运算器AM2901、外围GAL、EPROM芯片之间的联系,达到对整机概念的提升;2、进一步掌握微程序控制器的组成;3、掌握微程序及机器指令的扩展方法。二、设备与环境TEC-XP+教学机、微机、EEPROM芯片、装有Windows XP、ISPLEVER、ispVM System等软件。三、实验内容在现有的基本指令系统上,扩展2条指令。四、实验步骤1、 扩展的2、4指令的格式及功能写明2条指令的格式、功能、寻址方式、操作码编码、微程序步数、微程序入口地址。第二条指令格式: ADTW DR功能:DR+2-DR(DR内的值自加2)寻址方式:寄存器寻址操作码编码:10100001(A1)微程序步数:2微程序入口地址:81第四条指令格式:SWRM DR,SR功能:DR和SR的值互换寻址方式:DR为寄存器寻址、SR为寄存器间接寻址操作码编码:11101001(E9)微程序步数:4微程序入口地址:A12、 指令所对应的微程序指令入口地址下址CI3-0SCC3-0MVRI2-0I8-6I5-3B口A口SSTSSHSCIDC2DC1ADTW DR8100E0433080110030304330801100SWRM DR,SRA100E0430080000000E0441008003000E01730800000303002100000013、ABEL语言源程序编辑以及JED文件生成m256c.abl源程序修改过程(10步)以及生成JED文件的整个操作过程。10步操作过程如下所示:定义指令操作码、定义微址、入口地址定义、下址的定义、定义条件判断、定义MVR3位、修改I08、修改A,B口、修改SST,SSH,SCI、修改DC1,DC2。按照上述10个步骤在以下代码中进行添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AP&(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)&!Bit8;D6= !C_M&(!_MAP&(0)#NXTADDR6&!_PL)&!Bit8;D7= !C_M&(!_MAP&(0)#NXTADDR7&!_PL)&!Bit8;/*CMH AND NEXT ADDRESS*NXTADDR7:= 0;NXTADDR6:= 0;NXTADDR5:= !C_M&(MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA10#MA11#MA13#MA14#MA16#MA18#MA1A #MA1C#MA1E#MA22#MA24#MA30#MA3F#MA50#MA51#MA52#MA53#MA54#MA55#MA56#MA57#MA58#MA59#MA5A#MA63#MA66#MA68#MA69#MA6A)&!Bit8;NXTADDR4:= !C_M&(MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA10#MA11#MA12#MA13#MA14#MA15#MA16#MA17#MA1#MA1A#MA1C#MA1D#MA22#MA24#MA30#MA3F#MA50#MA51#MA52#MA53#MA54#MA55#MA56#MA57#MA58#MA59#MA5A#MA5C#MA5E#MA60#MA63#MA66#MA69#MA6A)&!Bit8;NXTADDR3:= !C_M&(MA15#MA17#MA1D#MA30#MA5C#MA5E#MA60)&!Bit8;NXTADDR2:= !C_M&(MA12#MA17#MA1D#MA1E#MA5C#MA5E)&!Bit8;NXTADDR1:= !C_M&(MA15#MA30#MA31#MA60#MA68)&!Bit8;NXTADDR0:= !C_M&(MA3F#MA68)&!Bit8;NXTADDR.CLK= CK;CI3:= !C_M&(MA00#MA01#MA02#MA19#MA1B#MA89#MA1F#MA20#MA21#MA23#MA89)&NRST&!Bit8;CI2:= !C_M&(MA00#MA01#MA02#MA19#MA1B#MA89#MA1F#MA20#MA21#MA23)&NRST&!Bit8;CI1:= !C_M&1&NRST&!Bit8;CI0 := !C_M&(MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA10#MA11#MA12#MA13#MA14#MA15#MA16#MA17#MA18#MA1A#MA1C#MA1D#MA1E#MA22#MA24#MA30#MA31)&NRST&!Bit8;SCC3:= !C_M&0&NRST&!Bit8;SCC2:= !C_M&(MA10#MA12#MA15#MA17#MA69)&NRST&!Bit8;SCC1:= !C_M&(MA12#MA15#MA17#MA30)&NRST&!Bit8;SCC0:= !C_M&(MA15#MA17)&NRST&!Bit8; GALSCC.CLK= CK;/* 16 bit !C_M*!_MIO00:=!(MA00#MA01#MA03#MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA10#MA11#MA12#MA15#MA17#MA19#MA1B#MA89#MA1D#MA1E #MA21#MA23#MA30#MA31); REQ00 := (MA13#MA14);_WE00 :=(MA02#MA14#MA18#MA1C#MA20#MA24);I200 :=(MA0B#MA11#MA12#MA14#MA1A#MA1B#MA89#MA1C#MA20#MA24#MA30);I100 := (MA01#MA0C#MA0D#MA0E#MA0F#MA12#MA13#MA14#MA15#MA17#MA19#MA1C#MA1D #MA1E#MA1F#MA20#MA21#MA22#MA23#MA24#MA30#MA31);!I000 :=!(MA00#MA01#MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0C#MA0D#MA0E#MA0F#MA11#MA12#MA13#MA14#MA15#MA17#MA19#MA1C#MA1D#MA1E#MA1F#MA20#MA21#MA23#MA24#MA30#MA31);I800 := (MA0E#MA0F);I700 :=(MA00#MA01#MA04#MA05#MA06#MA07#MA08#MA0B#MA0C#MA0D#MA0E#MA11#MA14#MA15#MA17#MA1C#MA1D#MA1E#MA1F#MA21#MA22#MA23#MA24#MA31);!I600 :=!(MA00#MA02#MA03#MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA10#MA11#MA12#MA13#MA14#MA15#MA16#MA18#MA19#MA1A#MA1B#MA89#MA1C#MA21#MA24); I500 :=(MA06#MA08#MA0A);I400 :=(MA07#MA08);I300 :=(MA00#MA05#MA07#MA09#MA0D#MA15#MA21);B30 = (MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA0C#MA0D#MA0E#MA0F#MA19#MA1C);B300 :=B30&IR7;B20 = (MA00#MA01#MA11#MA15#MA17#MA1D#MA1E#MA1F#MA21#MA22#MA23#MA24#MA31);B200 :=(!B30&B20 # B30&IR6);B10 = 0; B100 :=(!B30&B10 # B30&IR5); B00 = (MA00#MA01#MA11#MA1D#MA1E#MA1F#MA22#MA24#MA31);B000 :=(!B30&B00 # B30&IR4);A30 = (MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0B#MA1A#MA1B#MA89);A300 :=(A30&IR3);A20 = (MA00#MA01#MA11#MA17#MA1D#MA1E#MA1F#MA22#MA23#MA31);A200 :=(!A30&A20 # A30&IR2);A10 = 0;A100 :=(!A30&A10 # A30&IR1); A00 = (MA00#MA01#MA11#MA1D#MA1E#MA1F#MA22#MA31);A000 :=(!A30&A00 # A30&IR0);SST200:=(MA0E#MA0F);SST100:=(MA0E#MA18);SST000:=(MA04#MA05#MA06#MA07#MA08#MA09#MA0A#MA0C#MA0D#MA0F);SSH00 :=(0); SCI100:=(0); SCI000:=(MA00#MA01#MA05#MA09#MA0C#MA
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五餐馆承包合同范例
- 药品货物运输合同二零二五年
- 二零二五版简单企业向个人借款合同
- 驾驶员免责协议书二零二五年
- 房地产公司投资入股协议
- 消化系统药物原料药扩产行业跨境出海战略研究报告
- 电子书和白皮书营销行业深度调研及发展战略咨询报告
- 塑料废弃物循环利用技术行业跨境出海战略研究报告
- 高反射率珠光颜料企业制定与实施新质生产力战略研究报告
- 污染土壤修复企业制定与实施新质生产力战略研究报告
- 土地整治监理合同
- DLT 5285-2018 输变电工程架空导线(800mm以下)及地线液压压接工艺规程
- 国内外大型体育场馆运营管理模式研究
- 叙事护理参考课件
- JBT 11699-2013 高处作业吊篮安装、拆卸、使用技术规程
- 2023年安徽国控资本有限公司及所属企业社会招聘考试真题及答案
- 专题08 八年级下册易混易错总结-备战2024年中考道德与法治一轮复习知识清单(全国通用)
- 左心衰竭合并肺水肿的护理查房
- 高中数学开放题赏析
- 非工伤人道主义赔偿协议(标准版)
- 中华民族的复兴
评论
0/150
提交评论