CS231 Spring 2013
Quiz 1
Name:_
1. 15 pts. I am running a particular program on two different computers X and Y and I want to tell
my colleagues how much better computer X is when compared to computer Y. Computer X runs
the program in 8.7 seconds and comp
CS 231[Computer Organization] - Homework 1
Assigned Friday, January 15, 2009
Due Monday, January 25, 2009
For questions, please contact Kyoungho An ([email protected])
Total number of points: 75
1. Describe the following terms. (2 points each) 10
CS 231[Computer Organization] - Homework 6
Assigned Friday, April 2, 2010
Due Monday, April 12, 2010
For questions, please contact Kyoungho An ([email protected])
Total number of points: 75
1. What are the values of control signals generated by
CS231
Quiz 4
Spring 2013
Name:_answers_
Let A = 3.984375 x 10-1 which is 1.10011 x 2-2
B = 3.4375 x 10-1 which is 1.011 x 2-2
Suppose the format for storing these numbers allows for 10 places to the right of the
binary point. Assume that the registers use
Quiz 2 Supplemental Problems
If you got #1 wrong, answer this problem:
Consider the following MIPS instruction
addi $s1, $s0, -214
if 1011 1001 1100 1110 1001 0100 0010 1010 is in $s0, what would the
result of this instruction be? Write your answer in bin
CS231
Quiz 2
Spring 2013
Name:_
1. Consider the following MIPS instruction
addi $s1, $s0, -17
if 1011 1001 1100 1110 0001 0100 1110 1110 is in $s0, what would the result of this
instruction be? Write your answer in binary and hex.
2. Rewrite the instructi
CS231 Spring 2013
Quiz 1
Name:_
1. 15 pts. I am running a particular program on two different computers X and Y and I want to tell
my colleagues how much better computer X is when compared to computer Y. Computer X runs
the program in 8.7 seconds and comp
Quiz 2 Supplemental Problems
If you got #1 wrong, answer this problem:
Consider the following MIPS instruction
addi $s1, $s0, -214
if 1011 1001 1100 1110 1001 0100 0010 1010 is in $s0, what would the
result of this instruction be? Write your answer in bin
CS231
Spring 2013
Quiz 3
Name:_
Test your knowledge:
Convert the following numbers:
1) 3 pts. 3.187510 to base 2 using 8 bits1 sign bit, 3 exponent bits (use excess-3 notation), 4 bits
for the fraction. Truncate any fraction bits that dont fit in.
3 = 11
CS231
Spring 2013
Quiz 3
Name:_
Test your knowledge:
Convert the following numbers:
1) 3 pts. 3.187510 to base 2 using 8 bits1 sign bit, 3 exponent bits (use excess-3 notation), 4 bits
for the fraction. Truncate any fraction bits that dont fit in.
2) 3 pt
Quiz 8 answer explanations
Suppose we need to store 16K words in a direct mapped cache. Your blocks hold 8
words. How many bits will you need to determine which block a given address (32
bit) will be stored in?
[a]16K words = 24 x 210 words = 214 words/23
CS231
Spring 2013
Quiz 6
Test your knowledge: Consider the following latencies for the different stages of the datapath:
IF = 250ps; ID = 350ps; EX = 150ps; MEM 300ps; WB = 200ps
1) 10 pts What would the clock cycle time be in a datapath with these latenc
Question 1:
Suppose we need to store 32K words in a direct mapped cache. Your blocks
hold 4 words. How many bits will you need to determine which block a given
address (32 bit) will be stored in?
How many bits will you need to determine which word withi
CS231
Spring 2013
Quiz 6
Test your knowledge: Consider the following latencies for the different stages of the datapath:
IF = 250ps; ID = 350ps; EX = 150ps; MEM 300ps; WB = 200ps
1) 10 pts What would the clock cycle time be in a datapath with these latenc
CS231, Spring 2013
Quiz 7
Name:_
For this quiz, use diagrams 4.65, 4.57 4.56 and 4.51
When describing the value in a mux, do not use 1 or 0, use top/middle/bottom, or explain where the data
came from that is ultimately getting selected by the mux. When de
CS231, Spring 2013
Quiz 7
Name:_answers_
For this quiz, use diagrams 4.65, 4.57 4.56 and 4.51
When describing the value in a mux, do not use 1 or 0, use top/middle/bottom, or explain where the data
came from that is ultimately getting selected by the mux.
CS 231 SAMPLE FINAL EXAM
1. (10) What problem/issue is solved/addressed by each of the following:
parity
Hamming code
system call
assembler directive
coprocessor 0
coprocessor 1
wire-AND
tri-state logic
delayed branches
forwarding
Moores Law
s
CS231
Quiz 2
Spring 2013
Name:_answers_
1. Consider the following MIPS instruction
addi $s1, $s0, -17
if 1011 1001 1100 1110 0001 0100 1110 1110 is in $s0, what would the result of this
instruction be? Write your answer in binary and hex.
B9CE14DD
2. Rewr
CS231
Quiz 4
Spring 2013
Name:_
Let A = 3.984375 x 10-1 which is 1.10011 x 2-2
B = 3.4375 x 10-1 which is 1.011 x 2-2
Suppose the format for storing these numbers allows for 10 places to the right of the binary point.
Assume that the registers used for ca
CS231
Spring 2014 Quiz 2
Name:_answers_
1. 5 pts. What instruction format is the following instruction using?
1000 1111 1010 0100 0000 0000 0000 0000
I format, its a lw no partial credit
2. 5 pts. What is the source register?
$sp, the stack pointer instru
CS 231 | Computer Organization | Spring 2014 | Homework 4
1
Assigned: March 14, 2014
Due: March 20, 2014
Total points: 75
NAME:_
Instructions: Download and save this file, enter your name at the top, fill it in and resubmit it as your
completed homework.
Given a listing of processors and their attributes (ie. clock
rate, CPI, number of instructions, time to run a given program,
instruction class CPI, memory hierarchy) calculate other
attributes of the processor and compare processors. (this
information is
CS231
Spring 2014
Quiz 6
Name:_
ns = 10-9 second
GHz = 109 Hz
1. Suppose we have 8 blocks in our cache and each block holds 16 words. We want
to access address 0000 0000 1011 1110 1000 1001 0
CS231
Spring 2014
Quiz 5
Name:_
Test your knowledge: Consider the following latencies for the different stages of the datapath:
IF = 200ps; ID = 300ps; EX = 350ps; MEM 300ps; WB = 200ps
1) 10 pts Recall that clock cycle time in a datapath that is not pipe
CS231
Quiz 4
Spring 2014
Name:_
Let A = 1.0000000000 x 2-2
B = 1.0000000000 x 2-2
C = 1.1011101011 x 210
Suppose the format for storing these numbers allows for 10 places to the right of the binary point.
Assume that the registers used for calculations al
General grading notes: -1 for arithmetic errors
CS231 Spring 2014
Quiz 1
Name:_
1. 5 pts. Ive got a computer with a 5GHz clock. What is the clock cycle time for this computer? (recall 1 ns is
1 x 10-9 seconds)
Clock cycle time is 1/clock rate = 1/5 GHz =
CS231
Spring 2014
Quiz 3
Name:_
Test your knowledge:
Convert the following numbers:
1) 3 pts. 4.7810 to base 2 using 8 bits1 sign bit, 3 exponent bits, 4 bits for the fraction. Truncate any
fraction bits that dont fit in.
4 = 100
.78 x 2 = 1.56
.56 x 2 =
DO NOT OPEN THIS EXAM
UNTIL INSTRUCTED
CS231
Computer Organization
Fall 2003 Exam 2
Time: 50 minutes
Maximum Points: 100
GENERAL INSTRUCTIONS
1. This is a closed book, closed note exam. Use a pencil to complete your work. Follow the
instructions as given
CS 231[Computer Organization] - Homework 7
Assigned Friday, April 16, 2010
Due Monday, April 26, 2010
For questions, please contact Kyoungho An ([email protected])
Total number of points: 75
1. Problems in this exercise refer to the following i
CS 231[Computer Organization] - Homework 5
Assigned Friday, March 19, 2010
Due Monday, March 29, 2010
For questions, please contact Kyoungho An ([email protected])
Total number of points: 75
1. In the previous homework, we used only NOR or NAND