2011 Computer Architecture Project #1 MIPS Programming: Merge Sort Ki Sup Hong Room 236, Engineering Building.

Slides:



Advertisements
Similar presentations
Guide to Uploading Videos For staff needing to upload and save videos of students per Agency policy: AR7245b.
Advertisements

CPU Review and Programming Models CT101 – Computing Systems.
The 8051 Microcontroller and Embedded Systems
CS3350B Computer Architecture Winter 2015 Lecture 4
IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
1 COMS 361 Computer Organization Title: Instructions Date: 9/28/2004 Lecture Number: 10.
1 A few words about the quiz Closed book, but you may bring in a page of handwritten notes. –You need to know what the “core” MIPS instructions do. –I.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CS 300 – Lecture 19 Intro to Computer Architecture / Assembly Language C Coding & The Simulator Caches.
Processor Design 5Z032 Henk Corporaal Eindhoven University of Technology 2011.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
Lab #1 PCSpim SPIM is a software simulator that loads and executes assembly language programs for the MIPS RISC computers. Download and install PCSpim.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
ONLINE DATA STORAGE & DOCUMENTS Lesson 3. Lesson 3 – Online documents In this lesson we will be covering:  Online documents  Compression and expansion.
PCSpim How to Program ?. Some Resource There are some useful online document! You can find the links on our TAs’ website. tw/~xdd/Arc06/
Computer Architecture B-tree construction & Traversal YongSoo Bae Room 236, Engineering Building [Project 1]
Introduction to CS-215 Computer Organization & Assembly Language: Module 0.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
First Programming Assignment For MIPS R3000 Processor Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki.
CS/ECE 3330 Computer Architecture Kim Hazelwood Fall 2009.
(1) A Beginner’s Quick Start to SIMICS. (2) Disclaimer This is a quick start document to help users get set up quickly Does not replace the user guide.
2013 Computer Architecture Project MIPS Programming : Merge Sort ChangHyun Yun Room 236, Engineering Building.
MIPS coding. slt, slti slt $t3, $t1, $t2 – set $t3 to be 1 if $t1 < $t2 ; else clear $t3 to be 0. – “Set Less Than.” slti $t3, $t1, 100 – set $t3 to be.
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
Computer Organization and Architecture Tutorial 1 Kenneth Lee.
Module : Algorithmic state machines. Machine language Machine language is built up from discrete statements or instructions. On the processing architecture,
MIPS Project -- Simics Yang Diyi Outline Introduction to Simics Simics Installation – Linux – Windows Guide to Labs – General idea Score Policy.
Lecture # 1 SPIM & MIPS Programming. SPIM SPIM is a MIPS32 simulator that reads and executes assembly language program written for SPIM. Platform -Unix,
WHAT IS A COMPUTER? LESSON 1-1. OBJECTIVES The student will be able to: Explain and give examples of the concepts on computers and computing.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
SOML Large Optics Daily Reporting Guide to using the new ETSEDMS server for Large Optics Daily Reporting.
Mail merge Sort records in field Select certain records Putting many on the same page Adding a comment – If … Then … Else.
Santa’s s By Jack Carr. Sending an attachment to Santa Explain how you attached the . New message, insert, attachment Explain why you.
Computer Organization & Programming Chapter 6 Single Datapath CPU Architecture.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
MIPS coding. slt, slti slt $t3, $t1, $t2 – set $t3 to be 1 if $t1 < $t2 ; else clear $t3 to be 0. – “Set Less Than.” slti $t3, $t1, 100 – set $t3 to be.
IT1001 – Personal Computer Hardware & System Operations Week 6 - Introduction to software installation.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Assembly Language CS 333 Sam Houston State University Dr. Tim McGuire.
Getting Started with Google Classroom
Searching Topics Sequential Search Binary Search.
Data Structures and Algorithms (AT70.02) Comp. Sc. and Inf. Mgmt. Asian Institute of Technology Instructor: Prof. Sumanta Guha Slide Sources: CLRS “Intro.
3-Apr-2006cse spim © 2006 DW Johnson and University of Washington1 SPIM simulator CSE 410, Spring 2006 Computer Systems
MIPS simulators There are 3 widely used MIPS simulators PC-SPIM, MARS, QTSPIM. PC-SPIM (the one we should use) the oldest one with poor graphics Very simple.
1 Journaling: Guide for Academic and Professional staff 2013.
Find us at Have you ever wanted to start your own website or blog?
ECS – Storyboarding and Introduction to Web Design
MIPS simulators There are 3 widely used MIPS simulators PC-SPIM, MARS, QTSPIM. PC-SPIM (the one we should use) the oldest one with poor graphics Very simple.
Assembler, Compiler, MIPS simulator
CS 286 Computer Organization and Architecture
USER GUIDE FOR STUDENTS
ACOE301: Computer Architecture II Labs
The 8051 Microcontroller and Embedded Systems
Click on the assignment you wish to complete
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Starter Read the Feedback Click on Add new Feedback Open Realsmart
Installing and Using MARIE
MIPS coding.
Teaching Computing to GCSE
Figure 8.1 Architecture of a Simple Computer System.
MIPS coding.
Figure 8.1 Architecture of a Simple Computer System.
Installing and Using MARIE
Many slides borrowed lovingly from Skiena
Computer Programming.
Installing and Using MARIE
CS 286 Computer Organization and Architecture
MIPS coding.
Կարգավորում Insertion Sort, Merge Sort
CMPT 225 Lecture 10 – Merge Sort.
Quick Sort & Merge Sort Technique
Presentation transcript:

2011 Computer Architecture Project #1 MIPS Programming: Merge Sort Ki Sup Hong Room 236, Engineering Building

Due Date : (Wed) Main Purpose of this Project Understand MIPS ISA and Recursive Function Algorithm Develop a MIPS machine program SPIM A self-contained simulator that runs MIPS32 programs Reads and executes assembly language programs You can use PCSpim or QtSpim Download an Installation Guide from the following website: MIPS Programming: Merge Sort 2

What to submit? A code file [student number.s] : 60% Ex) s Include detailed comments inside your code A Word/HWP document that describes your algorithm : 40% File name is same as code file, ex) doc You can use any word processor You must explain your code and algorithm in detail Your document will be used to determine partial credit if the code fails to run Compress your code and document into ZIP file, ex) zip Submit your ZIP file through ( MIPS Programming: Merge Sort 3

Grade Management Program Implement grade management system Each entry has name field, student number field, and grade field Your program has to support following functions: Insert : add a record Delete : remove a record Sort : sort records by any field (name, student number, and grade) The program should be able to sort in any field you want Show : show current records You can use only merge sort algorithm You have to use recursive function Do not use iteration method even if it can improve both speed and space requirements MIPS Programming: Merge Sort 4

Merge Sort Algorithm Divide and conquer algorithm Average and worst case performance : Θ(nlogn) T(n) = 2T(n/2) + Θ(n) MIPS Programming: Merge Sort 5

If you don’t understand about this project, You can use ( ) Use the board in our laboratory homepage ( ) Don’t use register number 15($t7), and 16($s0) How to use PCSpim (or QtSpim)? Simple instructions on how to use PCSpim Write your code in notepad Save as assembly file (file extension:.s,.asm, etc) Open your file in PCSpim, and execute Study yourself using Google, Joinc Wiki, naver, and so on spim-chapter9 MIPS Programming: Merge Sort 6