版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、CHAPTER 4 The Components of the System Unit,Processor,Fundamental Concepts,Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations until a branch or a jump instruction is encountered. Processor keeps track of the addr
2、ess of the memory location containing the next instruction to be fetched using Program Counter (PC). Instruction Register (IR),Executing an Instruction,Fetch the contents of the memory location pointed to by the PC. The contents of this location are loaded into the IR (fetch phase). IR PC Assuming t
3、hat the memory is byte addressable, increment the contents of the PC by 4 (fetch phase). PC PC + 4 Carry out the actions specified by the instruction in the IR (execution phase).,Internal organization of the processor,ALU Registers for temporary storage Various digital circuits for executing differe
4、nt micro operations.(gates, MUX,decoders,counters). Internal path for movement of data between ALU and registers. Driver circuits for transmitting signals to external units. Receiver circuits for incoming signals from external units.,PC: Keeps track of execution of a program Contains the memory addr
5、ess of the next instruction to be fetched and executed. MAR: Holds the address of the location to be accessed. I/P of MAR is connected to Internal bus and an O/p to external bus. MDR: Contains data to be written into or read out of the addressed location. IT has 2 inputs and 2 Outputs. Data can be l
6、oaded into MDR either from memory bus or from internal processor bus. The data and address lines are connected to the internal bus via MDR and MAR,ALU: Used to perform arithmetic and logical operation. Data Path: The registers, ALU and interconnecting bus are collectively referred to as the data pat
7、h.,Registers: The processor registers R0 to Rn-1 vary considerably from one processor to another. Registers are provided for general purpose used by programmer. Special purpose registers-index & stack registers. Registers Y,Z &TEMP are temporary registers used by processor during the execution of so
8、me instruction. Multiplexer: Select either the output of the register Y or a constant value 4 to be provided as input A of the ALU. Constant 4 is used by the processor to increment the contents of PC.,Data transfer between two registers:,EX: Transfer the contents of R1 to R4. Enable output of regist
9、er R1 by setting R1out=1. This places the contents of R1 on the processor bus. Enable input of register R4 by setting R4in=1. This loads the data from the processor bus into register R4.,The input and output gates for register Ri are controlled by signals isRin and Riout . Rin Is set to1 data availa
10、ble on common bus are loaded into Ri. Riout Is set to1 the contents of register are placed on the bus. Riout Is set to 0 the bus can be used for transferring data from other registers .,Data transfer between two registers:,EX: Transfer the contents of R1 to R4. Enable output of register R1 by settin
11、g R1out=1. This places the contents of R1 on the processor bus. Enable input of register R4 by setting R4in=1. This loads the data from the processor bus into register R4.,Performing an Arithmetic or Logic Operation,The ALU is a combinational circuit that has no internal storage. ALU gets the two op
12、erands from MUX and bus. The result is temporarily stored in register Z. What is the sequence of operations to add the contents of register R1 to those of R2 and store the result in R3? R1out, Yin R2out, SelectY, Add, Zin Zout, R3in,Step 1: Output of the register R1 and input of the register Y are e
13、nabled, causing the contents of R1 to be transferred to Y. Step 2: The multiplexers select signal is set to select Y causing the multiplexer to gate the contents of register Y to input A of the ALU. Step 3: The contents of Z are transferred to the destination register R3.,Fetching a Word from Memory
14、,The response time of each memory access varies (cache miss, memory-mapped I/O,). To accommodate this, the processor waits until it receives an indication that the requested operation has been completed (Memory-Function-Completed, MFC). Move (R1), R2 MAR R1 Start a Read operation on the memory bus Wait for the MFC response from the memory Load MDR from the memory bus R2 MDR,storing a word in memory,Address is loaded into MAR Data to be written loaded into MDR. Write command is issued. Example:Move R2,(R1) R1out,M
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年检验述职报告(2篇)
- 人力资源部门工作总结及工作计划
- 《雯华若锦》教学设计-2026-2027学年沪教版(新教材)初中美术七年级上册
- WPS表格在财务中的应用课件 项目七 WPS在本量利分析的应用
- 餐饮公司人力资源经理述职报告
- 2026年秋招:福建医药集团试题及答案
- 2026年贵州省人教版小学六年级数学下册第7单元课后练习题
- T/CAAMTB 97.6-2022电动中重卡共享换电车辆及换电站建设技术规范第6部分:车辆识别系统要求
- T/CAAMTB 223.5-2024数字车钥匙系统 第5部分:穿戴设备系统
- 广东公司移动互联网业务规模效益双突破策略
- 教学课件-新编MBA英语综合教程
- 经皮穿刺脊柱后凸成形术后护理查房
- 老年人白内障课件
- 酒店总经理转正述职报告
- 2026中国移动校园招聘备考考试题库附答案解析
- 三一研发项目管理办法
- 运营商反诈知识培训课件
- 北大印章管理办法
- 前列腺癌护理个案查房
- 患者自行拔出尿管护理不良事件
- 高三化学一轮复习-配合物 课件
评论
0/150
提交评论