COMP 2421 Computer Organization. Lab 1

Similar documents
1 Introduction to MARS

Software and Documentation

Programming with QtSpim: A User s Manual

General Instructions. You can use QtSpim simulator to work on these assignments.

Lab #1: A Quick Introduction to the Eclipse IDE

Lecture # 1. SPIM & MIPS Programming

Lab 1 : An Introduction to SPIM, the MIPS architecture simulator

RTMS - Software Setup

CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup

Homework #2 Assembly Programming

Contents. Slide Set 1. About these slides. Outline of Slide Set 1. Typographical conventions: Italics. Typographical conventions. About these slides

SPIM & MIPS Programming

CENG3420 Lab 1-1: MIPS assembly language programing

Getting Started with Eclipse/Java

Getting Started with Visual Studio

Translating VBA into Assembly Language

Tips & Tricks. LinkOne Information Required When Changing Computers LinkOne WinView (Version 5)

Chapter 1 Introduction to Computers and Programming

Toolkit Activity Installation and Registration

Creating a Dashboard Prompt

Tutorial 2. Building a Database and Defining Table Relationships

Dealing with Event Viewer

icms Central Management Software User Manual

NETWRIX PASSWORD EXPIRATION NOTIFIER

Programming with Java

Installing Eclipse CDT and MinGW

6.096 Introduction to C++ January (IAP) 2009

EM L13 Preparing Applications to Virtualized and Streamed Hands-On Lab

CompSci 125 Lecture 02

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

Data Types and the main Function

Lab Determining Data Storage Capacity

IS L02-MIGRATING TO SEP 12.1

Managing the Startup Folder in Windows 8

CHAPTER 1 Introduction to Computers and Java

Going From C to MIPS Assembly. Getting Started

USING CODEBLOCKS. Implementing Computational Models

Hello World on the ATLYS Board. Building the Hardware

Lab - Configure the Firewall in Windows 8

CSCI 121: Anatomy of a Python Script

Slide Set 1 (corrected)

NetBeans IDE Java Quick Start Tutorial

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

Simulate the Design using the XSim Simulator

Microsoft Word - Starting the Mail Merge Wizard

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

5.5.3 Lab: Managing Administrative Settings and Snap-ins in Windows XP

3DSPRINT. Installation Guide. 3DSPRINT Requirements and Installation

Remote Support. User Guide 7.23

CS 241 Computer Programming. Introduction. Teacher Assistant. Hadeel Al-Ateeq

COMP2421 COMPUTER ORGANZATION. Lab 3

Assembly Language Programming

WMI log collection using a non-admin domain user

Installing and Using Dev-C++

instructions aligned is little-endian

Mail Merge. To Use Mail Merge: Selecting Step by Step Mail Merge Wizard. Step 1:

1 Introduction. ThinPrint Client Installation Page 1

CptS 360 (System Programming) Unit 1: Introduction to System Programming

Integrated Information Technology Services (IITS)

Introduction to REXX Programming Language

Introduction to Computation for the Humanities and Social Sciences. CS 3 Chris Tanner

Managing the System Event Log

SmartWord4TFS Installation Guide

Understanding UCS Server Configuration Utility User Interface

USER GUIDE. PowerKB for Parature

PowerPoint 2 (Office 2007)

Sherlock Tutorial Getting Started

Introduction. Creating a New Publication. Publisher 2010 Creating a New Publication. To Create a New Publication from a Template: Page 1

Application Notes for Deploying a VoiceXML Application Using Avaya Interactive Response and Audium Studio - Issue 1.0

In this lab you will explore the Windows Vista Firewall and configure some advanced settings.

INTERACTIVE WHITEBOARDS: SMART Board Overview

Computer Science AP 2017 Summer Assignment Mrs. McFarland

Raptor University. Installing Raptor v Instructor: RAPTOR TECHNOLOGIES, LLC

Microsoft Office Outlook 2007: Intermediate Course 01 Customizing Outlook

Microsoft Powerpoint 2007

SmartOutlook4TFS Installation Guide

IMPLEMENTING SCL PROGRAMS. Using Codeblocks

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

Software Installation Requirements

Evoq 8 Content Managers Training Manual

Following are two methods for transferring your OneNote Notebooks, or Notebook Sections, to your OneDrive Cloud Storage.

OneNote. Using OneNote on the Desktop. Starting screen. The OneNote interface the Ribbon

LAB 5 IMPLEMENTING WINDOWS IN AN ENTERPRISE ENVIRONMENT

Summer Assignment for AP Computer Science. Room 302

Using Templates to Make Labels

Overview. - General Data Types - Categories of Words. - Define Before Use. - The Three S s. - End of Statement - My First Program

Chapter 2. Editing And Compiling

Computers and Computation. The Modern Computer. The Operating System. The Operating System

Fundamentals: Expressions and Assignment

Programming with Python

Lab - System Utilities in Windows

Course Description This one-day instructor-led course provides students with an overview of the features and functions of Microsoft Word 2010.

Mandarin Textbook. How to Enable the Textbook Module Mandarin Library Automation, Inc. All rights reserved. Last Update: 05/26/2014

Laboratory Exercise 1: Machine Language Instructions

Physical Imaging Standard - Restoring to Hyper-V Virtual Machine

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

Managing the System Event Log

CprE Computer Architecture and Assembly Level Programming Spring Lab-2

Introduction to Scientific Computing

GUIDE TO USING OU CAMPUS REGIONS. Office of Public Relations and Marketing

Transcription:

Lab 1 Objectives: The objectives of this lab is to show you some components (mainly pieces of hardware) of a computer (including some I/O devices). In addition, QtSpim, a MIPS simulator would be introduced and which would be used in your programming assignments (assembly language). 1. [Device Manager] under [Windows] platform If you are using the [Windows] machine, it is not difficult to retrieve a list of hardware components from the system. Simply go to [Control Panel] [Hardware and Sound]. Under [Devices and Printers], choose [Device Manager] (see diagram below). Figure 1 - [Device Manager] - [Windows] 2. Check details of hardware by using software application, HWiNFO Since our department uses 64-bit machines, simply use the 64-bit version (either [installer] or [portable] is fine). Execute the application and you would have the following boxes appear on the screen. - 1 -

Figure 2 - Execution of HWiNFO64 Try the application on other machines (e.g. a notebook pc). Check the differences of the components being used. For example, the model of CPUs, number/model of RAM, etc. - 2 -

3. QtSpim Installation Download the application through the web page: http://pages.cs.wisc.edu/~larus/spim.html. You may check related materials through that page. Or, you may go to the Sourceforge Web Site, http://sourceforge.net/projects/spimsimulator/files/ to download the application directly. Note that we use the latest version, QtSpim_9.1.20_Windows.msi and we use that version to test all your programming assignments. In addition, if you want to read something more about the MIPS Assembly Language Programming, use the following link to read the textbook online. http://www.scribd.com/doc/3577342/mipsassemblylanguageprogramming Figure 3 - QtSpim Download Page After download, just follow the instructions to install the program as shown below. Figure 4 - Installation Start Click Next. - 3 -

Figure 5 - Accept Agreement and Go on Check the box to accept the agreement. Click Next. Figure 6 - Location of Installation Simply use the default location. Click Next. - 4 -

Figure 7 - Setup Ready Click Install. Wait unit the installation is done. Figure 8 - Installation Completed Click Finish. - 5 -

To execute the application, go to Start All Programs QtSpim, then, QtSpim is found. Click on it and start the application. Figure 9 - Start -> QtSpim Once the QtSpim starts up, there are two windows appear. One is the application s interface, (main window) and the other one is the Console (see below). Figure 10 - QtSpim User Interface There are three different panels in QtSpim s main window: - 6 -

a. Register Panel - A narrow pane on left displays integer or floating-point registers. To read the set of registers, click the tab at the top. Figure 11 Register Panel b. Memory Panel - A wider pane on right shows the Text segment or the Data segment. For Text segment, it lists the instructions (program statements), which have been loaded into the simulator. Again, click the tab to read the content. Figure 12 - Memory Panel c. The smallest one is on the bottom. It is the Messages Panel. It shows the system s messages. Figure 13 - Messages Panel - 7 -

4. QtSpim First HelloWorld Program Load the program file by selecting [File] [Reinitialize and Load File]. Navigate to the application folder [Program Files (x86)] [QtSpim]. Choose the program file, [HelloWorld.s]. Once the file is loaded, click [Play]. Figure 14 - Load Program File and Run - 8 -

Once the program is executed, the message [Hello World] appears on the [Console] window. Figure 15 - [Hello World] message in Console Use a text editor to open the source code file, HelloWorld.s. Program statements look like the following. Figure 16 - Source Codes of [HelloWorld.s] - 9 -

Read the statements and step through the program. Actually, there are only ten program statements. Other lines are comments. Can you figure out what each statement does? - 10 -