?? labb.html
字號:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Lab B Exercise</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoBlockText, li.MsoBlockText, div.MsoBlockText
{margin-top:0in;
margin-right:.2in;
margin-bottom:0in;
margin-left:.2in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
font-style:italic;}
p.CHead, li.CHead, div.CHead
{margin-top:6.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
punctuation-wrap:simple;
text-autospace:none;
font-size:12.0pt;
font-family:Arial;
font-weight:bold;}
p.TextBody, li.TextBody, div.TextBody
{margin:0in;
margin-bottom:.0001pt;
punctuation-wrap:simple;
text-autospace:none;
font-size:12.0pt;
font-family:"Times New Roman";}
p.BHead, li.BHead, div.BHead
{margin-top:6.0pt;
margin-right:0in;
margin-bottom:6.0pt;
margin-left:0in;
punctuation-wrap:simple;
text-autospace:none;
font-size:14.0pt;
font-family:Arial;
font-weight:bold;}
p.TextBody0, li.TextBody0, div.TextBody0
{margin:0in;
margin-bottom:.0001pt;
punctuation-wrap:simple;
text-autospace:none;
font-size:12.0pt;
font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
</head>
<body lang=EN-US>
<div class=Section1>
<div style='border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'>
<p class=BHead style='border:none;padding:0in'><span style='font-size:16.0pt'>Lab
B: Adding R-Type Instructions to the Data Path Simulator, PathSim</span></p>
</div>
<p class=MsoBlockText style='margin:0in;margin-bottom:.0001pt'><span
style='font-style:normal'>With the conclusion of this lab, you will extend the
data path simulator so that the additional R-type instructions nor, xor, sllv, srav
and srlv will execute. The assembler is already written to handle these
instructions; your assignment for this lab exercise is to write java code that
adds functionality to the ALU and the ALU control unit.</span></p>
<p class=BHead style='margin-bottom:0in;margin-bottom:.0001pt'><span
style='font-size:12.0pt'>Files Pertaining to the Lab Project:</span></p>
<p class=TextBody0>You will need, in addition to this document and the data
path simulator PathSim, the java and archive (jar) files found in the
folder PathSim\SuggestedLabExercises\LabB\Extensions.</p>
<p class=MsoBlockText style='margin:0in;margin-bottom:.0001pt'><b><span
style='font-family:Arial;font-style:normal'> </span></b></p>
<p class=MsoBlockText style='margin:0in;margin-bottom:.0001pt'><b><span
style='font-family:Arial;font-style:normal'>Steps:</span></b></p>
<ol style='margin-top:0in' start=1 type=1>
<li class=MsoNormal>Use Eclipse (or your favorite java IDE) and create a new
project containing the java stubs found in the folder PathSim\SuggestedLabExercises\LabBExtensions.
You must also include in your project the external jar file DataPath.jar that is
provided with this lab. Also, a jar file that contains the package netscape.javascript must
be included in the project and/or class path for the project. The latter jar file is provided
with the Java runtime environment on your machine. For example, with jre 1.5 on a windows system,
the jar file is named plugin.jar and its complete path is<br>
c:\Program Files\Java\jre1.5.0_30\lib\plugin.jar<br>
</li>
</ol>
<p class=MsoBlockText style='margin-top:0in;margin-right:0in;margin-bottom:
0in;margin-left:.5in;margin-bottom:.0001pt;text-indent:-.25in'><span
style='font-style:normal'>2.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-style:normal'>Add java code to the program stubs
ExtendedALUControl and ExtendedALU, working first on the execute method for the
class ExtendedALUControl and then the execute method for the class ExtendedALU.
You will not make any changes to the program file ExtendedControlUnit.java for
this lab. Instructions on what needs to be accomplished are given as comments
within the program studs. The descriptions of instructions given on the
following page may also be helpful.</span></p>
<p class=MsoBlockText style='margin-top:0in;margin-right:0in;margin-bottom:
0in;margin-left:.5in;margin-bottom:.0001pt;text-indent:-.25in'><span
style='font-style:normal'>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-style:normal'>When you have completed coding and compiling,
EXPORT the three classes ExtendedALU, ExtendedALUControl and ExtendedControlUnit
into a single jar file. The jar file MUST be given the name Extensions.jar. Replace
the jar file Extensions.jar in the folder PathSim\DataPathSimulator with the
one you have created. You can now run the data path simulator and test your
implementations of the new operators by opening PathSim.html with your browser.
You must also construct a test suite for testing your extensions.</span></p>
<i><span style='font-size:12.0pt;font-family:"Times New Roman"'><br clear=all
style='page-break-before:always'>
</span></i>
<p class=MsoNormal>Any one or more of the following instructions are to be
handled by the data path simulator PathSim.</p>
<p class=MsoNormal> </p>
<p class=MsoNormal>nor牋牋牋 rd, rs, rt牋牋牋牋牋牋牋牋牋牋牋
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -