📄 7.htm
字号:
<td width="11%">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Read ALU</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Write rt</font></b></td>
<td width="11%">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="12%">
<p align="center"><b><font color="#000000" size="4">Fetch</font></b></td>
</tr>
<tr>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">SW2</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Add</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">rs</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Extend</font></b></td>
<td width="11%">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Write ALU</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Read rt</font></b></td>
<td width="11%">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="12%">
<p align="center"><b><font color="#000000" size="4">Fetch</font></b></td>
</tr>
</table>
<p><b><font color="#000000" size="4">指令1:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Field</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Effect</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">ALU control,SRC1,SRC2</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Compute the memory address ; Register(rs)+sign-extend(IR[15-0])</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Use the second dispatch table to jump to
either LW2 or SW2</font></b></td>
</tr>
</table>
<p><b><font color="#000000" size="4">指令2:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Field</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Effect</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">ALU control,SRC1,SRC2</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">The output of the ALU is still the memory
address</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Memory</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Read memory using the ALU output as address</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Go to the next microinstruction</font></b></td>
</tr>
</table>
<p><b><font color="#000000" size="4">指令3:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Field</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Effect</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">ALU control,SRC1,SRC2</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">The output of the ALU is still the memory
address</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Memory</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Read memory using the ALU output as address
and the register designated by rt as the value to write</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Go to the microinstruction labeled Fetch</font></b></td>
</tr>
</table>
<p><b><font color="#000000"><font size="4">我们可以合并第二和三条指令为</font></font></b><font color="#000000">:</font></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="11%" align="center"><b><font color="#000000" size="4">Label</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">ALU control</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">SRC1</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">SRC2</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">ALU destination</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Memory</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Memory register</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">PCWrite control</font> </b></td>
<td width="12%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
</tr>
<tr>
<td width="11%" align="center"><b><font color="#000000" size="4">LW2</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Add</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">rs</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Extend</font> </b></td>
<td width="11%" align="center"><font color="#000000" size="4"> </font></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Read ALU</font></b></td>
<td width="11%" align="center"><b><font color="#000000" size="4">Write rt</font></b></td>
<td width="11%" align="center"><font color="#000000" size="4"> </font></td>
<td width="12%" align="center"><b><font color="#000000" size="4">Fetch</font></b></td>
</tr>
</table>
<p><font color="#000000" size="4"> </font></p>
<p><b><font color="#000000" size="4">指令4的解释如下:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Field</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Effect</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">ALU control,SRC1,SRC2</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">The output of the ALU is still the memory
address</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Memory</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Write memory using the ALU output as address
and the register designated by rt as the value to write</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Go to the microinstruction labeled Fetch</font></b></td>
</tr>
</table>
<p><b><font color="#000000" size="4">我们再来看看R型指令:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Label</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">ALU control</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">SRC1</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">SRC2</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">ALU destination</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Memory</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Memory register</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">PCWrite control</font></b></td>
<td width="12%">
<p align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
</tr>
<tr>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Rformat1</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Func code</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">rs</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">rt</font></b></td>
<td width="11%" align="center">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="11%" align="center">
<p align="center"> </td>
<td width="11%" align="center">
<p align="center"> </td>
<td width="11%" align="center">
<p align="center"> </td>
<td width="12%" align="center">
<p align="center"><b><font color="#000000" size="4">Seq</font></b></td>
</tr>
<tr>
<td width="11%">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">Func code</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">rs</font></b></td>
<td width="11%">
<p align="center"><b><font color="#000000" size="4">rt</font></b></td>
<td width="11%" align="center">
<p align="center"><b><font color="#000000" size="4">rd</font></b></td>
<td width="11%" align="center">
<p align="center"><font color="#000000" size="4"> </font></td>
<td width="11%" align="center">
<p align="center"> </td>
<td width="11%" align="center">
<p align="center"> </td>
<td width="12%" align="center">
<p align="center"><b><font color="#000000" size="4">Fetch</font></b></td>
</tr>
</table>
<p><font color="#000000" size="4"> </font></p>
<p><b><font color="#000000" size="4">对于这两条的指令解释如下:</font></b></p>
<p><b><font color="#000000" size="4">指令1:</font></b></p>
<table border="1" width="100%" bordercolordark="#CC9966" bordercolorlight="#FFCC66">
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Field</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Effect</font></b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">ALU control,SRC1,SRC2</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">The ALU operates on the register contents of
the rs and rt registers ,using the func field to specify the ALU operation</font> </b></td>
</tr>
<tr>
<td width="50%" align="center"><b><font color="#000000" size="4">Sequencing</font></b></td>
<td width="50%" align="center"><b><font color="#000000" size="4">Go to the next microinstruction</font></b></td>
</tr>
</table>
<p><font color="#000000" size="4"> </font></p>
<p><b><font color="#000000" size="4">指令2:</font></b></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -