Docsity

ECE 2030 Spring 2002 Computer Engineering Final Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 1:00pm Computer Engineering Spring 2002
5 problems, 6 pages Final Exam 3 May 2002
Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have
a question, raise your hand and I will come to you. Please work the exam in pencil and do not
separate the pages of the exam. For maximum credit, show your work.
Good Luck!
Your Name (please print) ________________________________________________
1 2 3 4 5 total
35 35 35 25 30 160
“I should have been a CmpE”
1
pf3
pf4
pf5

Partial preview of the text

Download ECE 2030 Spring 2002 Computer Engineering Final Exam and more Exams Computer Science in PDF only on Docsity!

5 problems, 6 pages Final Exam 3 May 2002

Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck!

Your Name ( please print ) ________________________________________________

1 2 3 4 5 total

“I should have been a CmpE”

5 problems, 6 pages Final Exam 3 May 2002

Problem 1 (6 parts, 35 points) Microcode Reverse Engineering

The microcode fragment below is a mysterious program that runs on the provided datapath handout. All values are in hexadecimal. Unfortunately, don’t care values (X) have been converted to zeros. For full credit, be as specific and concise as you can (e.g., list shift types, amounts, and directions, logical functions, memory addresses and operations, etc.)

cycle X Y Z rwe im en im va au en -a/s lu en lf su en st ld en st en r/-w msel 1 0 0 1 1 1 3E8 0 0 1 C 0 0 0 0 0 0 2 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 3 0 0 3 1 1 18 0 0 0 0 1 0 0 0 0 0 4 0 0 2 1 1 10 0 0 0 0 1 0 0 0 0 0 5 2 0 2 1 1 FF 0 0 1 8 0 0 0 0 0 0 6 3 2 3 1 0 0 1 0 0 0 0 0 0 0 0 0 7 0 0 2 1 1 8 0 0 0 0 1 0 0 0 0 0 8 2 0 2 1 1 FF 0 0 1 8 0 0 0 0 0 0 9 3 2 3 1 0 0 1 0 0 0 0 0 0 0 0 0 10 0 0 2 1 1 FF 0 0 1 8 0 0 0 0 0 0 11 3 2 3 1 0 0 1 0 0 0 0 0 0 0 0 0 12 3 0 0 1 1 2 0 0 0 0 1 1 0 0 0 0 13 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1

Part A (5 points) Describe the operation that occurs during cycle 2 (be specific)?

For the remaining parts, assume R0 contains the value 0x12345678 (hexadecimal) following cycle 2.

Part B (5 points) What is the value (in hexadecimal) in R3 following when cycle 3 completes?

Part C (5 points) What is the value (in hexadecimal) in R2 following when cycle 5 completes?

Part D (5 points) What is the value (in hexadecimal) in R3 following when cycle 6 completes?

Part E (5 points) Describe the operation that occurs during cycle 12 (be specific).

Part F (10 points) Describe the operation of this microcode fragment (be specific).

5 problems, 6 pages Final Exam 3 May 2002

Problem 4 (2 parts, 25 points) State Machine

Part A (15 points) Using the following state table, complete the state diagram below. S variables are the current state. NS variables are the new state. S 2 S 1 S 0 NS 2 NS 1 NS 0 S 2 S 1 S 0 NS 2 NS 1 NS 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 0 1 1 0 1 1 1 1 0 1 0 1 1 0 1 1 0 1 0 0 0 1 1 0 1 0 1 1 1 0 1 1

Part B (10 points) Most of the energy used by current computers results from switching wires from 0 to 1 or from 1 to 0. Analyze this state machine sequencer compare the total number of state bit transitions (bit toggling) for a complete state machine cycle to that of a three bit binary counter. For example, a state change from 011 to 100 is three bit transitions; a state change from 101 to 110 is two bit transitions.

State bit transitions for this sequencer: State bit transitions for a three bit binary counter:

5 problems, 6 pages Final Exam 3 May 2002

Problem 5 (3 parts, 30 points) Gate design

Consider the following expression:

Out = A ⋅ B ⋅ C + A ⋅ B ⋅ C + A ⋅ B ⋅ C + A ⋅ B ⋅ C Part A (10 points) Implement the expression using only NAND and NOT gates. Assume you do not have the compliments of the inputs. Use proper mixed logic notation. Do not simplify the expression.

Part B (10 points) Implement the expression using N and P type switches. Assume you do have the compliments of the inputs.

Part C (10 points) Implement the expression using only two-input XOR gates. Assume you do not have the input complements.