<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:wfw="http://wellformedweb.org/CommentAPI/"
     >
  <channel>
    <title>Comp 411 Fall 2011</title>
    <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog</link>
    <description>Computer Organization</description>
    <pubDate>Thu, 08 Dec 2011 02:33:30 GMT</pubDate>
    <generator>Blogofile</generator>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Operating Systems and Input/Output</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/12/07/operating-systems-and-input/output</link>
      <pubDate>Wed, 07 Dec 2011 08:32:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/12/07/operating-systems-and-input/output</guid>
      <description>Operating Systems and Input/Output</description>
      <content:encoded><![CDATA[
<p>Today we'll take a quick look at how a simple operating system uses the hardware to create the illusion of doing multiple things simultaneously. <a href="/~gb/Comp411Fall2011/media/L20-OSandIO.pdf">Slides</a> for today.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Virtual Memory</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/12/05/virtual-memory</link>
      <pubDate>Mon, 05 Dec 2011 09:27:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/12/05/virtual-memory</guid>
      <description>Virtual Memory</description>
      <content:encoded><![CDATA[
<p>Today we'll talk about the benefits and implementation of virtual memory. Readings for today are 5.4 and 5.5. <a href="/~gb/Comp411Fall2011/media/L19-VirtualMemory.pdf">Slides</a> for today.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Final Projects Due Friday in Lab</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/final-projects-due-friday-in-lab</link>
      <pubDate>Mon, 28 Nov 2011 09:50:00 EST</pubDate>
      <category><![CDATA[Labs]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/final-projects-due-friday-in-lab</guid>
      <description>Final Projects Due Friday in Lab</description>
      <content:encoded><![CDATA[
<p>Remember your final project is due Friday in lab. You'll have the opportunity to demonstrate your work to the class but you are <b>required</b> to submit a one-page report and your code via Blackboard.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Exam Wednesday</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/exam-wednesday</link>
      <pubDate>Mon, 28 Nov 2011 09:21:00 EST</pubDate>
      <category><![CDATA[Info]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/exam-wednesday</guid>
      <description>Exam Wednesday</description>
      <content:encoded><![CDATA[
<p>Our last exam will be Wednesday 30 November. It will cover everything up to and including the first part of lecture 17 with emphasis on lectures 11 through 17.</p>
<p>Hints:
<ul>
  <li>You know you'll get some questions about stuff in the problem sets. Though never at the painful level of detail in those.</li>
  <li>I'll likely include a question from Problem Set 6 but it won't involve tracing wires on the diagram. More like, "What does this signal do?"</li>
  <li>Memory questions will be high level, never about circuit diagrams. But you should be ready to talk about the differences between (say) DRAM and SRAM.</li>
  <li>Finite State Machines are great fodder for questions, particularly when representing the state transition table as a ROM.</li>
  <li>Pipelining questions will be about how much you can expect to gain, and identifying the hazards.</li>
  <li>We won't deal with Cache and VM questions until the quiz at the end of class on the final day.</li>
</ul></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cache Structure</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/cache-structure</link>
      <pubDate>Mon, 28 Nov 2011 09:18:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/28/cache-structure</guid>
      <description>Cache Structure</description>
      <content:encoded><![CDATA[
<p>Today we'll talk about how to organize our cache for maximum effectiveness. <a href="/~gb/Comp411Fall2011/media/L18-CacheStructure.pdf">Slides</a> for today. Readings include 5.3 and 5.5.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Pipeline Issues and Memory</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/21/pipeline-issues-and-memory</link>
      <pubDate>Mon, 21 Nov 2011 09:23:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/21/pipeline-issues-and-memory</guid>
      <description>Pipeline Issues and Memory</description>
      <content:encoded><![CDATA[
<p>We'll try to squeeze in two topics: issues that make pipelining less ideal that it might seem and memory hierarchy. <a href="/~gb/Comp411Fall2011/media/L17-PipelineIssuesMemory.pdf">Slides</a> for today. Readings for today are in 4.6 to 4.8 and chapter 5.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Problem Set 6</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/16/problem-set-6</link>
      <pubDate>Wed, 16 Nov 2011 09:44:00 EST</pubDate>
      <category><![CDATA[Problem Sets]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/16/problem-set-6</guid>
      <description>Problem Set 6</description>
      <content:encoded><![CDATA[
<p><b>Due 29 November</b> before midnight.</p>
<h2>Problem 1. Out of Control.</h2>
<img width=576 height=467 src="/~gb/Comp411Fall2011/media/PS6.gif" />

<p>Fill in the missing entries of the Control Logic ROM, based
on the data path shown above. Everything you need is in lecture 15.</p>

<style>
tr { border-top: solid 1pt; border-bottom: solid 1pt; }
td { border-left: solid 1pt; border-right: solid 1pt; padding: 4px; text-align: center; 
vertical-align: top; }
</style>

<table style='width:100%;border-collapse:collapse;'>
  <tr style="border-bottom: none;">
    <td>Opcode</td>
    <td>PCSEL</td>
    <td>WASEL</td>
    <td>SEXT</td>
    <td>BSEL</td>
    <td>WDSEL</td>
    <td colspan=4>ALUFN</td>
    <td>Wr</td>
    <td>WERF</td>
    <td>ASEL</td>
  </tr>
  <tr style="border-top: none">
    <td></td><td></td><td></td><td></td><td></td><td></td>
    <td>Sub</td><td>Bool</td><td>Shft</td><td>Math</td>
    <td></td><td></td><td></td>
  </tr>
  <tr>
    <td>sub</td>
    <td>0</td>
    <td>0</td>
    <td>X</td>
    <td>0</td>
    <td>1</td>
    <td>1</td>
    <td>XX</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>0</td>
  </tr>
  <tr >
    <td>xor</td>
    <td>0</td>
    <td>0</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0</td>
    <td></td>
    <td></td>
  </tr>
  <tr >
    <td>la</td>
    <td>0</td>
    <td>0</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr >
    <td>sll</td>
    <td>0</td>
    <td>0</td>
    <td>X</td>
    <td>0</td>
    <td>1</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0</td>
    <td>1</td>
    <td></td>
  </tr>
  <tr >
    <td>andi</td>
    <td>0</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0</td>
    <td></td>
    <td></td>
  </tr>
  <tr >
    <td>lw</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>2</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0</td>
    <td></td>
    <td></td>
  </tr>
  <tr >
    <td>sw</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>1</td>
    <td></td>
    <td></td>
 </tr>
 <tr >
    <td>j</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>X</td>
    <td>XX</td>
    <td>XX</td>
    <td>X</td>
    <td>0</td>
    <td></td>
    <td></td>
 </tr>
  <tr >
    <td>jal</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>X</td>
    <td>XX</td>
    <td>X</td>
    <td>X</td>
    <td>0</td>
    <td></td>
    <td></td>
  </tr>
  <tr >
    <td>lui</td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>0</td>
    <td></td>
    <td></td>
  </tr>

</table>
]]></content:encoded>
    </item>
    <item>
      <title>Pipelining</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/16/pipelining</link>
      <pubDate>Wed, 16 Nov 2011 09:18:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/16/pipelining</guid>
      <description>Pipelining</description>
      <content:encoded><![CDATA[
<p>Today we'll discuss ways to make our computer go faster using parallelism. <a href="/~gb/Comp411Fall2011/media/L16-Pipelining.pdf">Slides</a> for today. Readings for today are 4.5 through 4.8.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Problem Set 5</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/09/problem-set-5</link>
      <pubDate>Wed, 09 Nov 2011 13:23:00 EST</pubDate>
      <category><![CDATA[Problem Sets]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/09/problem-set-5</guid>
      <description>Problem Set 5</description>
      <content:encoded><![CDATA[
<p><b>Due: Wednesday 16 November</b> before class.</p>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>Problem 1.</B></P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">We
wish to compare the performance of two different computers: M1 and
M2. The following measurements have been made on these computers.</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<TABLE WIDTH=100% CELLPADDING=4 CELLSPACING=0>
	<COL WIDTH=85*>
	<COL WIDTH=85*>
	<COL WIDTH=85*>
	<THEAD>
		<TR VALIGN=TOP>
			<TH WIDTH=33% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">Program</P>
			</TH>
			<TH WIDTH=33% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">Time on M1</P>
			</TH>
			<TH WIDTH=33% STYLE="border: 1px solid #000000; padding: 0.04in">
				<P CLASS="western">Time on M2</P>
			</TH>
		</TR>
	</THEAD>
	<TBODY>
		<TR VALIGN=TOP>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in" SDVAL="1" SDNUM="1033;">
				<P CLASS="western" ALIGN=CENTER>1</P>
			</TD>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>2.0 seconds</P>
			</TD>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
				<P CLASS="western" ALIGN=CENTER>1.5 seconds</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in" SDVAL="2" SDNUM="1033;">
				<P CLASS="western" ALIGN=CENTER>2</P>
			</TD>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>5.0 seconds</P>
			</TD>
			<TD WIDTH=33% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
				<P CLASS="western" ALIGN=CENTER>10.0 seconds</P>
			</TD>
		</TR>
	</TBODY>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">Which
computer is faster for each program, and how many times as fast is
it?</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in; page-break-before: always">
<B>Problem 2.</B></P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">Suppose
that M1 in problem 1 costs $500 and M2 costs $800. If you needed to
run program 1 a large number of times, which computer would you buy
in large quantities? Why?</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>Problem 3. </B>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">Suppose
you wish to run a program P with 7.5 billion instructions on a 5GHz
machine with a CPI of 0.8. What is the expected CPU time? When you
run P, it takes 3 seconds of wall clock time to complete. What is the
percentage of CPU time P received?</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>Problem 4.</B></P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">Consider
two different implementations, I1 and I2, of the same instruction
set. There are three classes of instructions (A, B, and C) in the
instruction set. I1 has a clock rate of 6GHz, and I2 has a clock rate
of 3GHz. The average number of cycles for each instruction class on
I1 and I2 is given in the following table:</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<TABLE WIDTH=100% CELLPADDING=4 CELLSPACING=0>
	<COL WIDTH=43*>
	<COL WIDTH=43*>
	<COL WIDTH=43*>
	<COL WIDTH=43*>
	<COL WIDTH=43*>
	<COL WIDTH=43*>
	<THEAD>
		<TR VALIGN=TOP>
			<TH WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">Class</P>
			</TH>
			<TH WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">CPI on I1</P>
			</TH>
			<TH WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">CPI on I2</P>
			</TH>
			<TH WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">C1 Usage</P>
			</TH>
			<TH WIDTH=17% STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western">C2 Usage</P>
			</TH>
			<TH WIDTH=17% STYLE="border: 1px solid #000000; padding: 0.04in">
				<P CLASS="western">C3 Usage</P>
			</TH>
		</TR>
	</THEAD>
	<TBODY>
		<TR VALIGN=TOP>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>A</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in" SDVAL="2" SDNUM="1033;">
				<P CLASS="western" ALIGN=CENTER>2</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in" SDVAL="1" SDNUM="1033;">
				<P CLASS="western" ALIGN=CENTER>1</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>40%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>40%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
				<P CLASS="western" ALIGN=CENTER>50%</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>B</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>3</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>2</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>40%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>20%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
				<P CLASS="western" ALIGN=CENTER>25%</P>
			</TD>
		</TR>
		<TR VALIGN=TOP>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>C</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>5</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>2</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>20%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
				<P CLASS="western" ALIGN=CENTER>40%</P>
			</TD>
			<TD WIDTH=17% STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
				<P CLASS="western" ALIGN=CENTER>25%</P>
			</TD>
		</TR>
	</TBODY>
</TABLE>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">The
table also contains a summary of average proportion of instruction
classes generated by three different compilers. C1 is a compiler
produced by the makers of I1, C2 is produced by the makers of I2, and
the other compiler is a third-party product. Assume that each
compiler uses the same number of instructions for a given program but
that the instruction mix is as described in the table. Using C1 on
both I1 and I2, how much faster can the makers of I1 claim I1 is
compared to I2? Using C2, how much faster can the makers of I2 claim
that I2 is compared to I1? If you purchase I1, which compiler would
you use? If you purchased I2, which compiler would you use? Which
computer and compiler would you purchase if all other criteria are
identical including cost?</P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0in"><B>Problem 5.</B></P>
<P CLASS="western" STYLE="margin-bottom: 0in; font-weight: normal">Consider
program P, which runs on a 1GHz machine M in 10 seconds. An
optimization is made to P, replacing all instances of multiplying a
value by 4 (mult X, X, 4) with two instructions that set x to x+x
twice (add x,x,x; add x,x,x). Call this new optimized program P'. The
CPI of a multiply instruction is 4, and the CPI of an add is 1. After
recompiling, the program now runs in 9 seconds on machine M. How many
multiplies were replaced by the new compiler?</P>
]]></content:encoded>
    </item>
    <item>
      <title>Build a Computer</title>
      <link>http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/09/build-a-computer</link>
      <pubDate>Wed, 09 Nov 2011 13:19:00 EST</pubDate>
      <category><![CDATA[Lectures]]></category>
      <guid isPermaLink="true">http://www.cs.unc.edu/~gb/Comp411Fall2011/blog/2011/11/09/build-a-computer</guid>
      <description>Build a Computer</description>
      <content:encoded><![CDATA[
<p>In this lecture we will attempt to assemble a fairly complete implementation of the MIPS ISA in a single lecture. <a href="/~gb/Comp411Fall2011/media/L15-BuildComputer.pdf">Slides</a> for this lecture. Readings for this lecture are in section 4.1 to 4.4.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>