You are on page 1of 1

Homework 4

EECS 203

1. (20 pts.) Please use 3-8 MUX to implement the following functions

(a) f (a, b, c, d) = abc + ab d + acd


(b) f (a, b, c, d) = (a + b + d)(a + b + c)(b + c + d)

2. (20 pts.) An ALU (Arithmetic Logic Unit) is a functional unit that performs either Arithmatic (i.e. addition
or subtraction) or Logic (AND, OR, etc.) operations on the two inputs (A and B) according to the input code.
Please implement an ALU that has the follow functions:
code output
00 A+B
01 A-B
10 A AND B
11 NOT B

3. (20 pts.) Exercise 3.19 in the textbook.

4. (20 pts.) Please draw the circuits for D-latch and D-Flip-Flop, show their truth tables, and state their main
differences.

5. (20 pts.) Our TA claims that the following circuit is a D-Flip-Flop. Do you agree with him? Please justify your
answer. If your answer is “yes”, you also need to identify which input should be used as clock.

NAND

NAND Q
NAND

NAND
NAND
A

NAND
B

You might also like