**Problems in Digital Logic**

Problem 1:Write a boolean expression for the output, Q, in terms of the inputs A, B, and C.

(a)

(b)

(c)

Problem 2.Draw a circuit to realize each of the expressions using AND gates, OR gates and Invertors.

Problem 3.Make a truth table, and then a Karnaugh map for the expression indicated. Then develop the minimum sum of products form.

- Do this for W, the output of problem 2a.
- Do this for Z, the output of problem 2d.

Problem 4.

- Show using truth tables :
- Show using truth tables:
- Draw circuits for the right hand side of parts a and b.

Problem 5.In the truth table below, the inputs are A, B, C, and D. Use a Karnaugh map to come up with a minimum sum of products form when:

- the output is W
- the output is X
- the output is Y
- the output is Z

InputOutputDCBAWXYZ0 0 0 0 0 0 1 1 0 0 0 1 0 1 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 0 1 0 0 1 1 1 0 0 1 0 1 1 0 1 1 0 1 1 0 1 0 0 0 0 1 1 1 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 1 1 0 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 1 0 0 1 1 0 0 0 0 X X 1 1 0 1 0 1 X X 1 1 1 0 0 1 X X 1 1 1 1 0 0 X X

Problem 6.For part b of the previous problem:

- Draw the circuit using AND gate, OR gates and NOT gates.
- Draw the circuit using NAND gates and NOT gates
- Try to come up with a simpler way to draw the circuit using other types of gates.

Problem 7.There is an integrated circuit called a BCD-seven segment decode that takes 4 inputs and has seven output. The inputs represent a number between 0 and 9, and each of the seven outputs corresponds to one of seven LED's in a seven-segment display. A typical seven segment display is shown below.For example the number zero would be represented by lighting segments a, b, c, d, e, and f, as shown below.

The other digits are formed as described in this table.

Digit Inputs Output

(7 Segments)D C B A 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 So, for example, segment "a" is used in number 0, 4, 5, 6, 8, and 9.

- Write the truth table for segment "a" with inputs A, B, C, and D.
- Draw the Karnaugh map for segment "a"
- Write the minimum sum-of-products form for segment "a".

Problem 8.

- Repeat the previous problem for segment b.
- Repeat the previous problem for segment c.
- Repeat the previous problem for segment d.
- Repeat the previous problem for segment e.
- Repeat the previous problem for segment f.
- Repeat the previous problem for segment g.

Problem 9.The flip-flops in the drawing below are positive edge triggered D flip-flops. Let Q2, Q1, Q0 = 0,0,0 initially.

- Plot the clock, Q2, Q1 and Q0 until the outputs begin to repeat.
- Show that the circuit acts as a counter.

Problem 10.The flip-flops in the drawing below are negative edge triggered J-K flip- flops. Let Q2, Q1, Q0 = 0,0,0 initially.

- Plot the clock, Q2, Q1 and Q0 until the outputs begin to repeat.
- Show that the circuit acts as a counter.
- What advantage does this circuit have over the previous one? (It has nothing to do with being negative edge triggered rather than positive edge triggered)

Problem 11.The flip-flops in the drawing below are positive edge triggered D flip flops. Let Q2, Q1, Q0 = 1,0,0 initially. Plot the clock, Q2, Q1 and Q0 until the outputs begin to repeat.