⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 4.htm

📁 浙江大学计算机学院计算机组成教材《计算机组成与设计》(潘学增)的课堂教学课件。
💻 HTM
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>建立数据通路 </title><meta name="Microsoft Theme" content="arcs 011"><meta name="Microsoft Border" content="none"></head><body background="../images/arctile.jpg" bgcolor="#FFFFFF" text="#000000" link="#3399FF" vlink="#666666" alink="#FF9900"><p align="center"><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;            &nbsp;&nbsp;&nbsp;&nbsp;<font size="6">&nbsp;5.4<strong>&nbsp;&nbsp;&nbsp;</strong>           <strong>建立数据通路          &nbsp;</strong></font></font></p>                  <p align="right"><font color="#000000"><a href="index.htm"><img border="0" src="Image/BACK.GIF" align="left" width="60" height="45"></a><a href="3.htm"><img border="0" src="Image/PREV.GIF" width="60" height="45"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      <a href="5.htm"><img border="0" src="Image/FORW.GIF" width="60" height="45"></a></font></p>              <p><font color="#000000"> </font></p>   <p><font color="#000000"><img border="0" src="Image/4-0.gif" width="768" height="550"></font></p>   <p><b><font color="#000000">1)基本部件--执行指令必须的部件</font></b></p> <p><b><font color="#000000">A . 1. 指令存储器:</font></b></p>          <p><b><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></b><font color="#000000"><img border="0" src="Image/4-1.gif" width="187" height="180"></font></p>      <p><b><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. pc</font></b></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     </b><img border="0" src="Image/4-2.gif" width="187" height="180"></font></p>     <p><font color="#000000">&nbsp;&nbsp; <b> 3.&nbsp; pc+4=&gt;pc</b></font></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </b><img border="0" src="Image/4-3.gif" width="187" height="180"></font></p>        <p><b><font color="#000000">&nbsp; 三者的连接如下:</font></b></p>          <p> </p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   <img border="0" src="Image/4-4.gif" width="390" height="308"></b></font></p>     <p><b><font color="#000000">B. 寄存器组 (&nbsp;Registers Files)</font></b></p>          <p><font color="#000000"><img border="0" src="Image/4-5.gif" width="385" height="258"></font></p>        <p><b><font color="#000000">1) 由三部分组成</font></b></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp; <b>a)</b>&nbsp;&nbsp; <b> 读出逻辑电路</b></font></p>          <p><b><font color="#000000">&nbsp;&nbsp;&nbsp; b)&nbsp;&nbsp;&nbsp; 写入逻辑</font></b></p>          <p><font color="#000000">&nbsp;&nbsp; <b> c)&nbsp;&nbsp;&nbsp; 寄存器组的主体</b></font></p>          <p><b><font color="#000000">2)设计功能的实现:与指令的操作有关(算术逻辑指令类R型)</font></b></p>        <p><font color="#000000">&nbsp;&nbsp;&nbsp;<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   <img border="0" src="Image/4-7.gif" width="681" height="287"></b></font></p>     <p><b><font color="#000000">控制信号</font></b></p>     <p><font color="#000000">&nbsp;&nbsp; <b> a)&nbsp;&nbsp;&nbsp; 读控制信号:读寄存器1的组号,2的组号,控制32位多路选择开关</b></font></p>          <p><font color="#000000">&nbsp;&nbsp; <b> b)&nbsp;&nbsp;&nbsp; 系统控制信号:主寄存器号,主命令号,写入数据</b></font></p>          <p><b><font color="#000000">注:寄存器号需几位?</font></b></p>        <p><font color="#000000">&nbsp;&nbsp; <b> $0--$31共32个寄存器,2E5=32</b></font></p>          <p><font color="#000000">&nbsp;&nbsp; <b> rs,rt,rd 均为5位宽,移位量shame为5位。满足需要</b></font></p><p><b><font color="#000000">C. 传送存储器指令所需的基本部件</font></b></p><p><font color="#000000">&nbsp;&nbsp; <b> 1)&nbsp;&nbsp;&nbsp; 数据存储器单元(Data&nbsp;           memory&nbsp; unit)</b></font></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    <img border="0" src="Image/4-8.gif" width="220" height="245"></font></p>         <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp; 数据信息:</b></font></p>          <p><b><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a)读写地址信息&nbsp;&nbsp;           b)主数据(inputs)&nbsp;&nbsp;&nbsp; c) 读出数据</font></b></p>          <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp; 命令信息:</b></font></p>          <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a)写命令信号Write&nbsp;&nbsp;           b)读命令信号Read&nbsp; </b></font></p>          <p><b><font color="#000000">&nbsp;&nbsp;&nbsp; 2)&nbsp;&nbsp;&nbsp; 符号扩展部件 (Sign           extend)</font></b></p>          <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    </b><img border="0" src="Image/4-9.gif" width="220" height="245"></font></p>         <p><font color="#000000">&nbsp;&nbsp; <b> 3)&nbsp;&nbsp; 地址运算部件</b></font></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;</font></p>        <p><b><font color="#000000">D:</font></b><font color="#000000"><b>转移类指令所需的基本功能部件<br>       &nbsp;&nbsp;&nbsp;</b></font></p>       <p><b><font color="#000000">&nbsp;&nbsp;&nbsp; beq&nbsp; $1,$2,offset&nbsp; #$1=$2,pc=pc+4+offset</font></b></p>          <p><font color="#000000">&nbsp;&nbsp; <b> Jump&nbsp;           1000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           #pc=1000*100=100000(26位字节地址)</b></font></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>pc4=pc+4&nbsp;           ,&nbsp; pc4=00000012</b></font></p>          <p><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           +)&nbsp; <b>pc=&nbsp; 100000<br>          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           ---------------- <br>          &nbsp;&nbsp; </b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           <b>100012</b></font></p>          <p><b><font color="#000000">送加法器时 offset*4通过左移两位来实现</font></b></p><p><font color="#000000">&nbsp;&nbsp; <b> &nbsp;&nbsp;1) ALU&nbsp;&nbsp; 比较$1 ,$2 是否相等</b></font></p><p><font color="#000000">&nbsp;&nbsp; <b>&nbsp; 2) 计算转移的地址:&nbsp;16位扩展-&nbsp;>左移2位->pc+4+offset</b></font></p>          <p><b><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp; 3) 确定是否转移</font></b></p>          <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           zero=1:Branch target =&gt;pc =&gt;指令存储器取下一条指令</b></font></p>          <p><font color="#000000">&nbsp;&nbsp; <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;           zero=0:pc不变,&nbsp;&nbsp;pc+4送pc =&gt;指令存储器取下一条指令</b></font></p>          <p><b><font color="#000000">上述的各个部件组合如下:</font></b></p>       <p><font color="#000000"><img border="0" src="Image/4-10.gif" width="768" height="550"></font></p>       <p> </p>              <!--mstheme--></font>              </body>       </html>       

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -