Docsity

Digital Logic - Sample Final Exam | ECE 240, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
COE/EE 243
Digital Logic Session 44; Page 1/5
Spring 2003
COE/EE 243 Sample Final Exam From Fall 98
Solutions
Show your work. Do NOT use a calculator!
1. (9 pts) Complete the following table of equivalent values.
Binary Octal Decimal Hexadecimal
1011.0011 13.14 11.1875 B.3
11101.11111101 35.77 29.99 1D.FD
11011.010011 33.23 27 19
64 1B.4C
2. (12 pts) Calculate the following
a)
๎˜€
11001
๎˜
2plus
๎˜€
101
๎˜
2
๎˜‚
11110
b)
๎˜€
11010
๎˜
2minus
๎˜€
10101
๎˜
2using 1โ€™s complement representation
๎˜‚
000101
c)
๎˜€
1101
๎˜
2times
๎˜€
1001
๎˜
2
๎˜‚
1110101
d)
๎˜€
101101
๎˜
2divided by
๎˜€
110
๎˜
2
๎˜‚
111
๎˜€
1
3. (9 pts) Complete the following table of equivalent values. Use binary numbers with a sign bit and
5 bits for the value
Decimal Signed Magnitude Twoโ€™s Complement Oneโ€™s Complement
๎˜€
11 101011 110101 110100
๎˜€
2 100010 111110 111101
๎˜€
1 100001 111111 111110
4. (8 pts) Give the Characteristic equations and the Excitationtables for the SR and JK flip-flops.
SR flip-flop JK flip-flop
Q
๎˜ƒ๎˜‚
S
๎˜ƒ
R
ยผ
QQ
๎˜ƒ๎˜‚
JQ
ยผ
๎˜ƒ
K
ยผ
Q
SRQQ+ J K Q Q+
000 00000
001 10011
010 00100
011 00110
100 11001
101 11011
110 -1101
111 -1110
pf3
pf4
pf5

Partial preview of the text

Download Digital Logic - Sample Final Exam | ECE 240 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Digital Logic Spring 2003

COE/EE 243 Sample Final Exam From Fall 98

Solutions

Show your work. Do NOT use a calculator!

  1. (9 pts) Complete the following table of equivalent values.

Binary Octal Decimal Hexadecimal 1011.0011 13.14 11.1875 B. 11101.11111101 35.77 29.99 1D.FD 11011.010011 33.23 27 1964 1B.4C

  1. (12 pts) Calculate the following a) 11001  2 plus 101  2  11110 b) 11010  2 minus 10101  2 using 1โ€™s complement representation  000101 c) 1101  2 times 1001  2  1110101 d) 101101  2 divided by 110  2  111 1
  2. (9 pts) Complete the following table of equivalent values. Use binary numbers with a sign bit and 5 bits for the value

Decimal Signed Magnitude Twoโ€™s Complement Oneโ€™s Complement 11 101011 110101 110100 2 100010 111110 111101 1 100001 111111 111110

  1. (8 pts) Give the Characteristic equations and the Excitation tables for the SR and JK flip-flops.

SR flip-flop JK flip-flop

Q   S  R ^ Q Q   JQ ^  K ^ Q

S R Q Q+ J K Q Q+

Digital Logic Spring 2003

  1. (10 pts) (a) Explain the difference between a Moore machine and a Mealy machine. Sol The outputs in a Moore machine depend only on the present state. The outputs in a Mealy machine depend on both the present state and the present input. (b) What is the same about both kinds of state machines? Sol Both have present state dependent on past inputs. (c) Draw a block diagram indicating the structure of a general state machine. Indicate on the diagram where one can find the present state and next state.

y

X NextState Logic

Flip Flops

Ouput Logic

Z

Y

  1. (5 pts) Give a truth table and a standard sum of products expression that describes F  A  B  C

A B C F 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1

F  AB C ^  A ^ B C  A ^ BC ^  ABC

  1. (8 pts) Indicate how a Nand gate can be used to implement:

(a) An Inverter: X or could do^ X^ Xโ€™

5V Xโ€™

(b) An And Gate:

Xโ€™ BA X

(c) An Or Gate:

X = (Aโ€™Bโ€™)โ€™

A

B

X = A + B

(d) Because a Nand gate can be used to implement all three basic Boolean functions, how would we describe it? Functionally Complete

Digital Logic

  1. (10 pts) Create a state diagram for a sequence detector that outputs a 1 when it detects the final bit

Mealy Machine

 - Spring 
  • S0 S1 S2 S in the serial data stream 1101. - Z= - S
  • 0/ - Z= Moore Machine - Z= - Z= - S - Z= - S - S - S - X= - X=1 X= - X= - X= - X= - X= - X=0 X= - X= - 0/ X/Z - 0/ - 1/ - 1/ - 1/0 1/ - 0/

Digital Logic Spring 2003

  1. (10 pts) Determine the D flip-flop excitation equations for the system represented with in the state- transition table below. Assign states: S 0  00, S 1  01, S 2  10 and S 3  11.

Present Present Next State Output AB S X=0 X=1 Z 00 S0 S1 S2 0 01 S1 S1 S2 1 10 S2 S2 S3 1 11 S3 S3 S0 0 00 01 11 10

0

1

AB X

Db

Db = XABโ€™ + Xโ€™Aโ€™ + Xโ€™B

1 1

00 01 11 10

0

1

Da AB X

0 0 1 1

1 1

Da = Xโ€™A + XAโ€™ + {

0 1

ABโ€™ XBโ€™

1 0

0 0 0 1

  1. (5 pts) Give the output expression for the 8-to-1 MUX shown below.

  



      

 (^)  

Z  A ^ B C ^ I 0  A ^ B CI 1  A ^ BC ^ I 2  A ^ BCI 3  AB C ^ I 4  AB CI 5  ABC ^ I 6  ABCI 7