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

📄 4-5.htm

📁 浙江大学计算机学院计算机组成教材《计算机组成与设计》(潘学增)的课堂教学课件。
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta name="Microsoft Theme" content="arcs 001">
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./4-5.files/filelist.xml">
<link rel=Edit-Time-Data href="./4-5.files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>ALU 构造算术逻辑单元</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>Dracula</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>Dracula</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>1</o:TotalTime>
  <o:Created>2002-06-16T00:03:00Z</o:Created>
  <o:LastSaved>2002-06-16T00:04:00Z</o:LastSaved>
  <o:Pages>7</o:Pages>
  <o:Words>1088</o:Words>
  <o:Characters>6205</o:Characters>
  <o:Company>Tomb</o:Company>
  <o:Lines>51</o:Lines>
  <o:Paragraphs>12</o:Paragraphs>
  <o:CharactersWithSpaces>7620</o:CharactersWithSpaces>
  <o:Version>9.2812</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:Compatibility>
   <w:UseFELayout/>
  </w:Compatibility>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:宋体;
	mso-bidi-font-family:"Times New Roman";
	color:black;}
h3
	{color:black;}
a:link, span.MsoHyperlink
	{color:#3399FF;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:#666666;
	text-decoration:underline;
	text-underline:single;}
p
	{font-size:12.0pt;
	font-family:宋体;
	mso-bidi-font-family:"Times New Roman";
	color:black;}
 /* Page Definitions */
@page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1028"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white background="..\chapter1\arctile.jpg" lang=ZH-CN
link="#3399ff" vlink="#666666" style='tab-interval:21.0pt' alink="#FF9900">

<div class=Section1>

<h3 align=center style='text-align:center'><span lang=EN-US style='font-size:
24.0pt'>4.5 构造一位ALU 算术逻辑单元</span></h3>

<p align=right style='text-align:right'><span lang=EN-US><a href="chapter4.htm"></a></span><!--[if gte vml 1]><v:shapetype
 id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
 path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
 <v:stroke joinstyle="miter"/>
 <v:formulas>
  <v:f eqn="if lineDrawn pixelLineWidth 0"/>
  <v:f eqn="sum @0 1 0"/>
  <v:f eqn="sum 0 0 @1"/>
  <v:f eqn="prod @2 1 2"/>
  <v:f eqn="prod @3 21600 pixelWidth"/>
  <v:f eqn="prod @3 21600 pixelHeight"/>
  <v:f eqn="sum @0 0 1"/>
  <v:f eqn="prod @6 1 2"/>
  <v:f eqn="prod @7 21600 pixelWidth"/>
  <v:f eqn="sum @8 21600 0"/>
  <v:f eqn="prod @7 21600 pixelHeight"/>
  <v:f eqn="sum @10 21600 0"/>
 </v:formulas>
 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
 <o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_s1026" type="#_x0000_t75" alt=""
 href="chapter4.htm" style='position:absolute;left:0;text-align:left;
 margin-left:0;margin-top:0;width:45pt;height:33.75pt;z-index:1;
 mso-wrap-distance-left:0;mso-wrap-distance-top:0;mso-wrap-distance-right:0;
 mso-wrap-distance-bottom:0;mso-position-horizontal:left;
 mso-position-horizontal-relative:text;mso-position-vertical-relative:line'
 o:allowoverlap="f" o:button="t">
 <v:imagedata src="images\BACK.GIF"/>
 <w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><a href="chapter4.htm"><img border=0
width=60 height=45 src="images\BACK.GIF" align=left v:shapes="_x0000_s1026"></a><![endif]><a
href="chapter4.htm"></a><span lang=EN-US>&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<a href="4-4.htm"><span style='text-decoration:none;text-underline:none'><img
border=0 width=60 height=45 id="_x0000_i1025" src="images\PREV.GIF"></span></a>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="4-6.htm"><span style='text-decoration:
none;text-underline:none'><img border=0 width=60 height=45 id="_x0000_i1026"
src="images\FORW.GIF"></span></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>

<p><span style='font-size:13.5pt'>本节问题:</span></p>

<p><span lang=EN-US style='font-size:13.5pt'><img border=0 width=26 height=27
id="_x0000_i1027" src="images\SUB.GIF"><a href="#构成运算器基本元件:">构成运算器基本元件</a><br>
<img border=0 width=26 height=27 id="_x0000_i1028" src="images\SUB.GIF"><a
href="#执行AND,OR的一位ALU的设计">执行AND,OR的一位ALU的设计</a><br>
<img border=0 width=26 height=27 id="_x0000_i1029" src="images\SUB.GIF"><a
href="#一位全加器的设计">一位全加器设计</a><br>
<img border=0 width=26 height=27 id="_x0000_i1030" src="images\SUB.GIF"><a
href="#32位串行进位的ALU">32位串行进位ALU</a><br>
<img border=0 width=26 height=27 id="_x0000_i1031" src="images\SUB.GIF"><a
href="#求补的实现">求补的实现</a><br>
<img border=0 width=26 height=27 id="_x0000_i1032" src="images\SUB.GIF"><a
href="#数字大小比较的实现">数字大小比较的实现</a><br>
<img border=0 width=26 height=27 id="_x0000_i1033" src="images\SUB.GIF"><a
href="#两数结果相等判断的实现">结果相等判断的实现</a><br>
<img border=0 width=26 height=27 id="_x0000_i1034" src="images\SUB.GIF"><a
href="#能完成5条指令操作的ALU">能完成5条指令操作的ALU</a><br>
<img border=0 width=26 height=27 id="_x0000_i1035" src="images\SUB.GIF"><a
href="#先行进位Carry lookahea">先行进位 Carry lookahead</a><br>
<img border=0 width=26 height=27 id="_x0000_i1036" src="images\SUB.GIF"><a
href="#本节小结">本节小结</a></span></p>

<p><span style='font-size:13.5pt'>一:<a name="构成运算器基本元件:">构成运算器基本元件:</a></span><span
style='mso-bookmark:构成运算器基本元件:'></span></p>

<p><span lang=EN-US style='font-size:13.5pt'>&nbsp;&nbsp;&nbsp; 运算器The
arithmetic logic unit (ALU)是计算机的运算部件,能进行addition,subtraction和logical operations(运算)。这一节我们从四个基本元件构造ALU,这四个基本元件(与门,或门,反相器,多路开关)如下图:</span></p>

<p align=center style='text-align:center'><span lang=EN-US style='font-size:
13.5pt'>four hardware building blocks</span></p>

<p align=center style='text-align:center'><span lang=EN-US style='font-size:
13.5pt'><img border=0 width=338 height=223 id="_x0000_i1037"
src="images\4-5-pic1.gif"></span></p>

<p><span lang=EN-US style='font-size:13.5pt'>&nbsp;&nbsp;&nbsp;&nbsp;</span><span
lang=EN-US><o:p></o:p></span></p>

<div align=center>

<table border=1 cellspacing=0 cellpadding=0 width="50%" style='width:50.0%;
 mso-cellspacing:0cm;mso-padding-alt:0cm 0cm 0cm 0cm' bordercolordark="#CC9966"
 bordercolorlight="#FFCC66">
 <tr>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>a</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>b</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>d</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>c=a*b</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>c=a+b</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>c=&atilde;</span></p>
  </td>
  <td width="15%" style='width:15.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>c</span></p>
  </td>
 </tr>
 <tr>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>1</span></p>
  </td>
  <td width="15%" style='width:15.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>a</span></p>
  </td>
 </tr>
 <tr>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>1</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>0</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>1</span></p>
  </td>
  <td width="14%" style='width:14.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>1</span></p>
  </td>
  <td width="15%" style='width:15.0%;padding:0cm 0cm 0cm 0cm'>
  <p align=center style='text-align:center'><span lang=EN-US style='font-size:
  13.5pt'>a</span></p>
  </td>
 </tr>
 <tr>

⌨️ 快捷键说明

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