COMP 220: COMPUTER ORGANIZATION
[SPRING 2010]

Exam 2 Makeup

Syllabus (in pdf)

Slides for Chapter 4 in the text.
Slides for Chapter 5 in the text.
Pipeline Slides from Jane Irwin's Architecture course at Penn State.
Data Hazards Slides from Jane Irwin's course.

Slides from "Impacts of Moore's Law: What every CS undergraduate should know about the impacts of advancing technology." Plenary talk by Mary Jane Irwin of Penn State University at CCSCNE-07 Conference at RIT, Rochester, NY, April 21, 2007.

Linux Resources
Getting Started with Linux
Linux HowTo Guide
The Ultimate Guide on Linux For Beginners
Learning Linux
Linux is NOT Windows
Examples/Handouts

Linux cheat-sheet - Linux sheet as given out in class.

SPIM - all about SPIM, right from the source (James Larus, the original author).

SPIM Quick Reference

sort -n vs. sort -g - answer to why the sorts we used in lab are different.

Computer progress (Figure 1.10.7) - chart showing the evolution of computers and computing power (pdf).

Figure 1.15 - Graph of clock rate and power for Intel x86 (pdf).

Figure 1.16 - Growth of processor performance (pdf).

example1.a - simplest little assembly program.

handout2.a - some basic math in assembly.

example3.a - arrays in SPIM (What? Already??).

example4.a - branches/jumps, version 1.

example5.a - branches/jumps, version 2.

example6.a - using branch as a loop.

example7.a - branching with inequality.

example8.a - using left and right shifts.

example9.a - arithmetic with floating point values.

example10.a - program with single procedure (function).

example11.cc - sample C++ program showing common use of two functions.
example11.a - SPIM version of above C++ program. Pay close attention to how all the local frame information is stored.

chars.a - solution to Lab 5 problem 3.

spim3.cpp - C++ solution to project 3.
spim3.a - corresponding spim solution to project 3.

The Knob and Switch (KandS) Computer

The Knob and Switch Computer is a Web-based simulator that will introduce you to the inner workings of a CPU and memory. It is an interactive simulation that allows you to change the computer's settings and view what effect these have.

This simulation comes to us courtesy of Grant Braught of Dickinson College.

    The K&S Datapath Simulation
    This simulator introduces the K&S datapath. The key features are the knobs and switches that can be set to control the operands, operations and storage of the result.

    The K&S Datapath Simulation with Main Memory
    This simulator adds a main memory unit to the datapath to increase the storage capacity of the machine. The key features are that memory accesses require more time than register accesses, and that memory and ALU operations happen in parallel even though one of them will be ignored.

    The K&S with Microprogramming
    This simulator makes the K&S programmable by adding a microprogram store. The concept of microprogramming is intuitive in that the bits of each microprogram simply encocde the positions of the knobs and switches.

    The Complete K&S Model 1 Computer
    This simulator is a complete stored program computer. It uses a control unit that translates machine language commands into the microinstructions that carry out the operation. Instructions entered in main memory locations in assembly language are automatically assembled into machine language. The assembly / machine language instructions are documented on the: Assembly/Machine Language Programming Card.
Last updated