Docsity

Intermediate - Computer Engineering - Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE2030h Spring 2002
1
ECE2030: Intro to Computer Engineering
Spring 2002
Midterm 2
Feb 28, 2002
Prof. Sung Kyu Limโ€™s Section (Section H)
Guidelines:
1. Read the questions carefully and follow the instructions when answering them.
2. Show all your work to receive full credit.
3. State any assumptions you make on your solution.
4. When using a functional building block such as a decoder or multiplexer, mark
I/O signals clearly.
5. Complemented inputs are available for all problems in this exam.
6. The basic logic gates you are allowed to use are AND, NAND, OR, NOR, XOR,
XNOR, INV, and transmission gates.
7. Time: 3:05 - 4:25pm (80 min)
8. Total number of pages in this exam: 9
Name: ______________________________
Prob 1 (15pts)
Prob 2 (35pts)
Prob 3 (15pts)
Prob 4 (35pts)
TOTAL (100pts)
School of Electrical and Computer Engineering
Georgia Institute of Technology
pf3
pf4

Partial preview of the text

Download Intermediate - Computer Engineering - Exam and more Exams Computer Science in PDF only on Docsity!

ECE2030: Intro to Computer Engineering

Spring 2002

Midterm 2

Feb 28, 2002

Prof. Sung Kyu Limโ€™s Section (Section H)

Guidelines:

  1. Read the questions carefully and follow the instructions when answering them.
  2. Show all your work to receive full credit.
  3. State any assumptions you make on your solution.
  4. When using a functional building block such as a decoder or multiplexer, mark I/O signals clearly.
  5. Complemented inputs are available for all problems in this exam.
  6. The basic logic gates you are allowed to use are AND, NAND, OR, NOR, XOR, XNOR, INV, and transmission gates.
  7. Time: 3:05 - 4:25pm (80 min)
  8. Total number of pages in this exam: 9

Name: ______________________________

Prob 1 (15pts)

Prob 2 (35pts) Prob 3 (15pts)

Prob 4 (35pts)

TOTAL (100pts)

School of Electrical and Computer Engineering

Georgia Institute of Technology

  1. (15pts) Perform the following 8-bit binary addition using the specified signed number representation method. Fill in the blanks with your final answers, and show all intermediate steps below including any corrections you made. Do not change the order of operands.

a) (6pts) (-37) + (+58) in signed magnitude

_ _ _ _ _ _ _ _ (-37)

  • _ _ _ _ _ _ _ _ (+58) โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—

_ _ _ _ _ _ _ _ ( )

b) (6pts) (-58) + (-37) in 1โ€™s complement (do not use 2โ€™s complement)

_ _ _ _ _ _ _ _ (-58)

  • _ _ _ _ _ _ _ _ (-37) โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—

_ _ _ _ _ _ _ _ ( )

c) (3pts) (-58) + (+37) in 2โ€™s complement

_ _ _ _ _ _ _ _ (-58)

  • _ _ _ _ _ _ _ _ (+37) โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—โ€—

_ _ _ _ _ _ _ _ ( )

  1. (35pts) Consider the following 2-bit magnitude comparator.

A > B A = B A < B

A 1 A 0 B 1 B 0

2-bit comparator

The controller produces two output signals: T to dispense a ticket, and R to reject the inserted coin.

a) (9pts) draw the corresponding state diagram. You should have 4 states only, and your arc label should follow BA / TR format. b) (9pts) build the corresponding state table. Name your state bits P and Q for MSB and LSB, respectively. c) (9pts) derive the simplified equations for D flip-flop inputs and outputs using K- maps. Use BA for rows and PQ for columns. d) (8pts) draw the logic diagram of the controller.

A

B

no coin

nickel dime

bad coin