Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

7 Questions on Instruction set Architecture - Exam 1 | COSC 201, Exams of Computer Architecture and Organization

Material Type: Exam; Class: Computer Organization; Subject: Computer Science; University: Colgate University; Term: Fall 2004;

Typology: Exams

Pre 2010

Uploaded on 08/17/2009

koofers-user-fhy
koofers-user-fhy 🇺🇸

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COSC 201 Exam 1 Fall 2004 Name:
1) Define or describe the following.
a) five classical components of a computer
b) instruction set architecture
c) pseudoinstruction
d) edge triggered
pf3
pf4
pf5

Partial preview of the text

Download 7 Questions on Instruction set Architecture - Exam 1 | COSC 201 and more Exams Computer Architecture and Organization in PDF only on Docsity!

COSC 201 Exam 1 Fall 2004 Name:

  1. Define or describe the following. a) five classical components of a computer b) instruction set architecture c) pseudoinstruction d) edge triggered
  1. a) Draw a diagram of the instruction format for MIPS R-type instructions, indicating each field, its purpose, and the number of bits in that field. b) Draw a diagram of the instruction format for MIPS I-type instructions, indicating each field, its purpose, and the number of bits in that field.
  1. Write MIPS assembly language for the following C code. Pseudoinstructions are allowed. Use the registers s0, s1, and s2 for the variables sum, i, and n respectively. int sum = 0; for(int i = 1; i <= n; i++) { sum += i; }
  1. Write MIPS assembly language for the following C code. Pseudoinstructions are allowed. int max(int a, int b) { if (a > b) return a; else return b; }
  1. Consider the function X described by the truth table to the right → a) Write a Boolean equation for the function in sum-of-products form. b) Use properties of Boolean algebra to simplify the equation from part (a). c) Draw the logic gate circuit for the simplified equation from part (b).

A B C X