CMPT 250 Midterm 2
November 1, 2002
Answers
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. The
CMPT 250 Midterm 2
November 1, 2002
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. There is a
CMPT 250 Midterm 2
November 1, 2002
Answers
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. The
CMPT 250 Midterm 2
November 1, 2002
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. There is a
CMPT 250 Midterm 2
March 15, 2002
Answers
You have 50 minutes to complete this exam. Answer all questions in an answer booklet. Hand in your question sheet with your booklet. There is a total of 40 points on this exam; points for each question are indica
CMPT 250 Midterm 2
March 15, 2002
You have 50 minutes to complete this exam. Answer all questions in an answer booklet. Hand in your question sheet with your booklet. There is a total of 40 points on this exam; points for each question are indicated. Rea
CMPT 250 Midterm 1
October 4, 2002
Answers
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. Ther
CMPT 250 Midterm 1
October 4, 2002
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. There is a t
CMPT 250 Midterm 1
October 4, 2002
Answers
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. Ther
CMPT 250 Midterm 1
October 4, 2002
You have 50 minutes to complete this exam. Answer all questions in an answer booklet or on a waveform sheet. Hand in only your booklet and waveform sheets. Make sure your name and student number is on both. There is a t
CMPT 250 Midterm 1
February 15, 2002
Answers
You have 50 minutes to complete this exam. Please answer all questions in this question sheet. You may continue your answers on the backs of pages if necessary. There is a total of 45 points on this exam; poin
CMPT 250 Midterm 1
February 15, 2002
You have 50 minutes to complete this exam. Please answer all questions in this question sheet. You may continue your answers on the backs of pages if necessary. There is a total of 45 points on this exam; points for e
CMPT 250 Final Exam
December 11, 2002
Answers
You have 180 minutes to complete this exam. Answer all questions in an answer booklet. Hand in only your answer booklet. There is a total of 80 points on this exam; points for each question are indicated. Rea
CMPT 250 Final Exam
April 15, 2002
Answers
You have 180 minutes to complete this exam. Answer all questions in an answer booklet. Do not hand in your question sheet. There is a total of 75 points on this exam; points for each question are indicated. Read
CMPT 250 Final Exam
April 15, 2002
You have 180 minutes to complete this exam. Answer all questions in an answer booklet. Do not hand in your question sheet. There is a total of 75 points on this exam; points for each question are indicated. Read through
CMPT 250 Final Exam
December 11, 2002
You have 180 minutes to complete this exam. Answer all questions in an answer booklet. Hand in only your answer booklet. There is a total of 80 points on this exam; points for each question are indicated. Read throug
CMPT 250 00-3 : TEST #2 SOLUTIONS
1. a. load r1, x1 load r2, x0 load r3, y1 load r4, y0 sub r1,r1,r2 sub r3,r3,r4 div r1,r3,r1 store r1, slope b. load r1, x1 sub r1, x0 load r2, y1 sub r2, y0 div r2, r1 store r2, slope c. load x1 sub x0 store temp load y1
CMPT 250 00-3 : TEST #1 SOLUTIONS
Question 1:
op1
op2 ld srd
0 MUX 1
s
D
Q0 slq clq cln up
R
lr
cm out1
CMPL
Q
N
N>32 R<0 1 FA S r0 n32 2 c_in out2
2
Question 2a:
n32 S0 st S1 S2 n32 S3
Question 2b: type state is (S0, S1, S2); entity SEQ is port(st, n32:
CMPT 250 : QUIZ 3 Solutions
1. Booths method provides the following advantages: a. Performs signed arithmetic directly. b. Performs multiplication more quickly. 2. a. Each distinct binary sequence of 32 bits defines a unique floating point number, therefo
CMPT 250 : FINAL EXAMINATION
Time: 3 Hours 6 Questions 100 MARKS CLOSED BOOK FALL 1998 3 Pages
1. (8 marks) The CPU designed in the textbook required a register file to permit retrieval from two registers as well as the storage of data in a register, all
4. Construct an ASM diagram to perform oating point addition using the following algorithm: i: Obtain two operands from bus1 and bus2 when st = 1. ii: Shift right the signicand of the value with the smaller exponent until its exponent matches that of the
QUIZ 3 1. Describe briey why Booths method is better than the multiply method given in class. 2. For single precision oating point: a. Give a formula for the number of distinct values that can be represented. b. Express in hex how the largest and smallest
QUIZ 2 1 Dene a black-box and characteristic table for a ip-op with a clock and two data inputs: S and C. When S=1 store 1 (C doesnt matter). When S=0 and C=1, store 0. Else, no change occurs. 2 Give a behavioral spec. for (1) in VHDL. 3 For the CPU on th
QUIZ 1 1.) Implement the following two functions using only a 4-input, 2-output, 4-product-term PLA and additional inverters, if required: - f(w,x,y,z) = (w + y)(x + z) - g(w,x,y,z) = (w + y) + (x + z) + xy
NOTE: Both functions are to be implemented using
CMPT 250 : QUIZ 3
1. (15 marks) A proposed instruction set includes instructions which employ the following address modes: direct, indexed, and relative. Each instruction uses a format with fields as follows: Instruction(15.12): OPCODE Instruction(11.10):
3a.) Draw an ASM diagram for the following module: in req out rdy
The module is to read in two numbers, one at at time from in and store their product in a register called OP1 whose value is output on bus out. Output rdy should be 1 whenever the module is