Docsity

Practice Problems for Introduction to Digital Systems | EECS 31, Exams of Electrical and Electronics Engineering

Partial preview of the text

Download Practice Problems for Introduction to Digital Systems | EECS 31 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Problem 1 [6 points]

We know the characteristic equation of a J-K flip-flop is

Q (next )====JQ'++++K' Q

And that the characteristic equation of a D flip-flop is Q (next)==== D

(a) Design a D flip-flop using a J-K flip-flop and some other logic gate(s) if necessary. [ points] Answer:

D Q

Qโ€™

J

K

Q

Qโ€™

(b) Design a J-K flip-flop using a D flip-flop and some other logic gate(s) if necessary. [ points] Answer:

Problem 3 [6 points]

Minimize the number of operators in the following Boolean expression and implement it using a single 2-input logic gate (choose from AND, OR, NAND, NOR, XOR, XNOR). Answer:

zx

z x

z x y

z x x y

z x z z x y

z x y xz

z y y x y xz

F yz x y xz yz

a single NAND gate will do.

Problem 4 [10 points]

From the sequential circuit given below,

(1) Derive the next state expression (3 points)

1 2 1

' 2

' Q 2 ( next)====Q 2 Q 1 ++++QQ ====Q โŠ•โŠ•โŠ•โŠ•Q

' Q 1 ( next)====Q 1

Q 1 (next)==== 1

(2) Construct the next-state table. (3 points)

Q2 Q1 Q0 Q2(next) Q1(next) Q0(next) 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 1 0 0 1

Problem 5 [10 points]

Given the following state diagram:

(1) Construct the next-state table. [3 points]

Q2 Q1 Q0 Q2(next) Q1(next) Q0(next) 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 1 1 1

(2) Derive the next state expressions [3 points]

1 0

' 2 2

2 2 1 0

2 1 0

' 1 0 2 1 0

' 2

' 0

' 2 1 0 2 1

' 1 0

' 0 2

' 1

' 2 2

Q next QXNORQ Q

or

Q next QXNORQXNORQ

or

Q Q Q

Q Q Q Q Q Q

Q next QQQ QQQ QQQ QQQ

Q 1 ( next)====Q 2

Q 0 ( next)====Q 1 (3) Based on the next state table you have derived, construct a sequential circuit using only three D flip-flops and two 2-input gates (choose from AND, OR, NAND, NOR, XOR, XNOR). [4 points] Answer:

Q

Q SET

CLR

D

D

Q

Q SET

CLR

D

D

Q

Q

Q

CLK

Q

Q SET

CLR

D

D

or two XNOR gates in stead. Or one XOR gate connecting Q 1 and Q 0 and another XNOR gate connecting ' Q 2 and Q 1 โŠ•โŠ•โŠ•โŠ• Q 0.