Docsity

Quiz 3 for Computer Architecture - Fall 2004 | ECE 484, Quizzes of Computer Architecture and Organization

Toggle sidebar
bg1
Quiz 3
CPE 484/584 -- Fall 2004
Chapters 1 – 5.2
Name: ___________________________ Student Number: ______________________
1) Given the datapath shown in Figure 1, what MIPS instructions will it support? (5 points)
a) r-type, lw, and sw answer: d
b) r-type instructions only
c) lw, sw, and beq
d) r-type and beq
2) Given the datapath shown in Figure 2, what MIPS instructions will it support? (5 points)
a) r-type answer: c
b) lw and sw
c) sw
d) sw and r-type
3) Using the multiplication algorithm we developed in class for signed multiplication, what is in the
product register at the end of the 2nd iteration of the algorithm if each operand is represented using 4 bits?
(5 points)
4 x -1
a) 0 0010 1111 answer: c
b) 0 0010 0111
c) 0 0011 0011
d) 0 0110 0011
4) Using Booth’s algorithm, what is in the product register at the end of the 3rd iteration of the algorithm if
each operand is represented using 4 bits? (5 points)
5 x 2
a) 0 0001 0100 0 answer: a
b) 1 1101 1000 1
c) 0 0000 0001 0
d) 0 0000 1010 0
5) Using the division algorithm we developed in class, what is in the remainder register at the end of the
3rd iteration of the algorithm if each operand is represented using 4 bits? (5 points)
4/2
a) 0000 1000 answer: c
b) 0010 0000
c) 0000 0001
d) 0000 0010
pf2

Partial preview of the text

Download Quiz 3 for Computer Architecture - Fall 2004 | ECE 484 and more Quizzes Computer Architecture and Organization in PDF only on Docsity!

Quiz 3

CPE 484/584 -- Fall 2004

Chapters 1 – 5.

Name: ___________________________ Student Number: ______________________ 1) Given the datapath shown in Figure 1, what MIPS instructions will it support? (5 points) a) r-type, lw, and sw answer: d b) r-type instructions only c) lw, sw, and beq d) r-type and beq 2) Given the datapath shown in Figure 2, what MIPS instructions will it support? (5 points) a) r-type answer: c b) lw and sw c) sw d) sw and r-type 3) Using the multiplication algorithm we developed in class for signed multiplication, what is in the product register at the end of the 2nd^ iteration of the algorithm if each operand is represented using 4 bits? (5 points) 4 x - a) 0 0010 1111 answer: c b) 0 0010 0111 c) 0 0011 0011 d) 0 0110 0011 4) Using Booth’s algorithm, what is in the product register at the end of the 3rd iteration of the algorithm if each operand is represented using 4 bits? (5 points) 5 x 2 a) 0 0001 0100 0 answer: a b) 1 1101 1000 1 c) 0 0000 0001 0 d) 0 0000 1010 0 5) Using the division algorithm we developed in class, what is in the remainder register at the end of the 3rd iteration of the algorithm if each operand is represented using 4 bits? (5 points) 4/ a) 0000 1000 answer: c b) 0010 0000 c) 0000 0001 d) 0000 0010

6) What is the IEEE 754 single precision representation (IN HEX) for -3.3125? (5 points) a) 40540000 answer: b b) C c) 81540000 d) C 7) One particular control signal has been used incorrectly in both Figures 1 and 2 according to the operation of the components as discussed in class and the textbook. Identify the control signal that is used incorrectly. (This control signal may be missing, may be present and should be missing, or may be present and be connected incorrectly.) (5 points – EXTRA CREDIT) answer: RegRead -- This signal is not necessary.