?? labc.html
字號:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<title>Lab C 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";}
h1
{margin:0in;
margin-bottom:.0001pt;
text-align:center;
page-break-after:avoid;
font-size:12.0pt;
font-family:Arial;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoFooter, li.MsoFooter, div.MsoFooter
{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
C: Adding Additional Branch, Shift and I-Type Instructions to the Data Path
Simulator, PathSim</span></p>
</div>
<p class=BHead style='margin:0in;margin-bottom:.0001pt'><span style='font-size:
12.0pt'>Goal:</span></p>
<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 branch bne and the I-type
instructions addi, andi, ori, and xori 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 Control
unit, the ALU and the ALUControl 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 and zip) files found in the
folder PathSim\SuggestedLabExercises\LabC\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\LabC\Extensions.
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 ExtendedControlUnit, ExtendedALUControl and ExtendedALU, working on the
execute method of each class and in that order. Instructions on what needs to
be accomplished are given as comments within the program studs. Descriptions of
the instructions and notes given below will 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'>Whenever you have completed a
segment of code and want to test your work, EXPORT the three classes ExtendedALU,
ExtendedALUControl and ExtendedControlUnit into a 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>
<b><i><span style='font-size:12.0pt;font-family:Arial'><br clear=all
style='page-break-before:always'>
</span></i></b>
<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>addi牋牋
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -