70
CSCI 341 HW4
2.22 Exercises
2.20 [5] <2.6> Find the shortest sequence of MIPS instructions that extracts bits
16 down
to 11 from
- Total
points:
15. register $t0 and uses the value of this field to replace bits 31
down to 26 in register $t1 without cha
168
Chapter 2
Instructions: Language of the Computer
165
2.22 Exercises
CSCI 341 HW3
2.16 [5] <2.5> Provide the type, assembly language instruction, and binary
representation
of instruction
followingCMIPS
fields: what is the corresponding
2.3
[5] <2.2, de
Introduction
Datapath Design 1
We will examine a simplified MIPS implementation first, and then produce a more
realistic pipelined version.
A simple, representative subset of machine instructions, shows most aspects:
- Memory reference: lw, sw
- Arithmeti
If you are using MARS, make sure you have Initialize Program Counter to global main if
defined checked in the settings menu
Get ready for a refresher on binary conversion, because thats exactly what youll be making
in this MIPS program. Dont worry, its
CSCI 341 Final Review with Solutions
Spring 2017
Problem 1. Given a floating point representation (IEEE standard) with a k-bit exponent
and an n-bit fraction, write formulas in k, n for the following:
a. Excluding 0, the smallest positive value that can
uestion 1: MIPS programming
The goal of this problem is to write a MIPS function flipimage which flips an image
flipimage
flips an
horizontally.
he goal of this problem
is to writeFor
a MIPS
function
horizontally.
example,
a simple
imagewhich
is shown
on
CSCI 341 Homework Assignment #1
Total points: 15 points.
Problem 1. Express the following number in IEEE single precision floating point
notation. Note that the exponent -110 is in base 10. (5 points)
-0.0000 0000 0000 0000 0000 0111 11112 x 2-11
CSCI 341 Computer Organization
Programming Part of Midterm Exam
Notes:
Total points: 40.
Please put all your files into a zipped file named as midterm_ followed by your
user name.
You must work on this on your own. You can check the textbook for refere
Homework Assignment (Instruction formats)
- Total points: 15.
1. (2 point). Write the MIPS assembly code that creates the 32-bit binary constant listed below and stores that value to register $t1.
Do not use any pseudo instructions.
0010 0000 0000 0001 0
CSCI 341 Homework Assignment #0
Read Chapters 1.1 1.5 and answer the following questions. Post your answer to
only one question (i.e., 1 definition in problem 1 or textbook problem 1.1, 1.2, 1.3, or
1.4) in Piazza. Remember you always need to answer
Homework Assignment (Instruction formats)
- Total points: 15.
1. (2 point). Write the MIPS assembly code that creates the 32bit binary constant listed below and stores that value to register
$t1. Do not use any pseudo instructions.
0010 0000 0000 0001 010
CSCI 341 Homework Assignment #1
Total points: 15 points.
Problem 1. What is the decimal value of the following IEEE single precision floating
point number? (2 points)
0
1111 1110
1000 0000 0000 0000 0000 000
Problem 2. Show the IEEE 754 binary represen
Topics for Chapter 1
Part 1: Course Overview and Logistics
Part 2: Number Representation
Fixed point representation (Chapter 2.4)
Floating point representation
Part 3: CPU Performance
1
Review: Unsigned Binary Integers
Given an n-bit number: Xn-1Xn-2X1X0
For problems below, use the information about access time for every type of memory in the following table.
Cache
DRAM
Flash Memory
Magnetic Disk
a.
5 ns
50 ns
5 s
5 ms
b.
7 ns
70 ns
15 s
20 ms
1.2.4 [5] <1.3> Find
how3long
to read a file
a DRAM if #
it2
CSCI 341 Homework Assignment #1
Total points: 15 points.
Problem 1. Express the following number in IEEE single precision floating point
notation. Note that the exponent -110 is in base 10. (5 points)
-0.0000 0000 0000 0000 0000 0111
1.2.5
a.
2 microseconds from cache 2 ms from Flash memory.
b.
2 microseconds from cache 4.28 ms from Flash memory.
1.2.5
CSCI 341 Homework Assignment #2
Solutions
a. 2 microseconds from cache 2 s from magnetic disk.
2 microseconds
from cache
Total
15
Name: _
Quiz #1
Problem 1. Floating point representation (10 points). In this question, you will be using an
8-bit floating-point format with the following structure. The exponent is encoded in bias 3. For
problems a and b, there is an implicit 1 to the l
CSCI 341 Homework Assignment #0
Enroll yourself in this course on Piazza (http:/piazza.com)
Read Chapters 1.1 1.5 and answer the following questions.
Total points: 15.
Problem 1. Give a brief definition for the following terms.
1. Personal computer
2. Se
CSCI 341 Computer Organization
Chapter 2: MIPS Instruction Set Architecture
I speak Spanish to God, Italian to
women, French to men, and German
to my horse.
Charles V, King of France
1
Topics for Chapter 2
Part 1
MIPS Instruction Set (Chapters 2.2,2.3)
A