Docsity

ECE 2030K Quiz #2 by Dr. Robert Butera, October 26, 1999, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030K
Dr. Robert Butera
Quiz #2
October 26, 1999
1. The only items you are allowed to use on this exam is a non-electronic writing tool
and a single 81
2Ɨ11 inch sheet of paper with whatever you want written on it. No
calculators, computers, PDAs, cell phones, etc. No class notes (except for the one page
just described) or textbooks.
2. There should be no communication of any type between students during the exam. If
you have a question, feel free to ask me.
3. You are bound by the Academic Honor Code as set forth on pages 336-339 of the
Georgia Tech 1999-2001 General Catalog.
4. Each question is listed with the number of points it is worth. Let this be your guide
in budgeting your time. You have plenty of time (80 minutes) to take this test.
5. Show your work - it is a lot easier to give partial credit when I know how you got the
answer you did. Neatness and readability helps, too. I have provided a lot of space
with each problem as well as extra pages in case you need them.
6. It is a good idea to look over the entire test, and how many points each problem and
subproblem are worth, before proceeding. It is also a good idea to look over an entire
question before answering it, since there may be subsequent parts to that question on
the following page.
7. Problem sections preceded by a *are ones you should probably skip and return to
later if you find them consuming too much of your time.
8. Good luck!
Problem # Points Score
1 16
2 16
3 20
4 24
5 24
TOTAL 100
Name
Student #
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download ECE 2030K Quiz #2 by Dr. Robert Butera, October 26, 1999 and more Exams Computer Science in PDF only on Docsity!

ECE 2030K

Dr. Robert Butera

Quiz

October 26, 1999

  1. The only items you are allowed to use on this exam is a non-electronic writing tool and a single 8^12 Ɨ 11 inch sheet of paper with whatever you want written on it. No calculators, computers, PDAs, cell phones, etc. No class notes (except for the one page just described) or textbooks.
  2. There should be no communication of any type between students during the exam. If you have a question, feel free to ask me.
  3. You are bound by the Academic Honor Code as set forth on pages 336-339 of the Georgia Tech 1999-2001 General Catalog.
  4. Each question is listed with the number of points it is worth. Let this be your guide in budgeting your time. You have plenty of time (80 minutes) to take this test.
  5. Show your work - it is a lot easier to give partial credit when I know how you got the answer you did. Neatness and readability helps, too. I have provided a lot of space with each problem as well as extra pages in case you need them.
  6. It is a good idea to look over the entire test, and how many points each problem and subproblem are worth, before proceeding. It is also a good idea to look over an entire question before answering it, since there may be subsequent parts to that question on the following page.
  7. Problem sections preceded by a * are ones you should probably skip and return to later if you find them consuming too much of your time.
  8. Good luck!

Problem # Points Score

TOTAL 100

Name

Student

  1. 16 points Number Conversions.

(a) 6 points Fill in the following table, converting each unsigned number to binary, decimal, and/or hexadecimal as indicated.

Decimal Binary Hexadecimal

4D.A

(b) 6 points Perform the following binary math operations. Assume that the numbers are unsigned (i.e. NOT 2’s complement).

Ɨ 11.

  1. 16 points Coders/Decoders/MUX/DEMUX

(a) 6 points Basic blocks. The devices listed in the table below may have any or all of the following in- puts/outputs: data bits (D 3 , D 2 , D 1 , D 0 ), select/code bits (S 1 S 0 ), and an input/output bit (Y ). For each device in the table, specify whether each set of bits is an input (IN), output (OUT), or not used (X).

Device D 3 , D 2 , D 1 , D 0 S 1 S 0 Y

4-2 encoder

2-4 decoder

4-1 MUX

1-4 DEMUX

(b) 10 points * Using 1-4 DEMUXs as building blocks, along with minimal external

logic, design a 3-8 decoder. Label the inputs using the notation from Part 1 (above). Note: there are possibly multiple ways to solve this problem – some approaches are worth more points than others. If your solution uses 1-4 DEMUXs that require an enable input, you will lose 2 points on this problem. If your solution requires connecting any inputs to 1 or 0, you will lose 2 points on this problem.

(b) 5 points Using various adder building blocks (such as the ones shown below), design a circuit for a 4 bit ripple carry adder. Your inputs should be labeled A 3 , A 2 , A 1 , A 0 , B 3 , B 2 , B 1 , B 0 , Cin. Your outputs should be labeled S 3 , S 2 , S 1 , S 0 , Cout.

A

B Cin  (^) S^ 

Cout 

full adder 

A

B (^) S^ 

Cout 

half adder

(c) 5 points * Below is the symbol for a 4 bit adder. Add the necessary circuitry to

make it a 4 bit adder/subtractor. Your inputs should be labeled A 3 , A 2 , A 1 , A 0 , B 3 , B 2 , B 1 , B 0 , and S. The outputs should be labeled S 3 S 2 S 1 S 0. When S=0, the circuit functions as a normal 4 bit adder. When S=1, the circuit computes A āˆ’ B.

Cin

Cout

B B

S 

S



A 

A 

B B

S 

S 

 4 bit adder

A 

A 

  1. 24 points State machine analysis. Consider the circuit below:

L

D

E

J^

K

Q^ 

Q^ 

CLK^ 

(a) 4 points Write simplified equations for J and K.

J =

K =

(b) 8 points Fill in the state transition table for the above circuit. The J and K columns are for your convenience and do not have to be used.

present inputs next

Q L D E J K Q

(c) 8 points Draw the state diagram for the circuit. The inputs on each arc (arrow) should be in the form LDE. You can label each arc with more than one set of inputs (as opposed to drawing one arc for each input combination – see the next page for an example) to keep the diagram simpler.

(d) 2 points Can you describe how the E input controls the circuit when L=0?

(e) 2 points Can you describe what the L input does to the circuit? You may have to consider D when formulating your answer.

(b) 8 points Design a circuit to implement the state diagram using D flip flops. You do not have to draw the circuit; just show me the simplified equations for the flip flop inputs (DA and DB ) and the outputs V and C. Empty K-maps are provided below for your convenience. The next page is blank to show additional work if necessary.

DA =

DB =

V =

C =

00

01

11

10

AB^00 01 11

A

B

DN N

D

00

01

11

10

AB^00 01 11

A

B

DN N

D

00

01

11

10

AB^00 01 11

A

B

DN N

D

00

01

11

10

AB^00 01 11

A

B

DN N

D

Extra page for work.