




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Copyright © Orly Alter 2008
Last Name: First Name: UTEID:
Practice Midterm Instructions:
This multiplexer would output Z=A when the selector is set at S 0 =0, and Z=B when S 0 =1.
a. Fill-in the truth table for this two-to-one multiplexer below: Input Output S 0 A B Z
Copyright © Orly Alter 2008
Now, convert this truth table to a logic equation as follows: b. Write a logic expression for each row in the truth table, which has an output of 1 by combining the inputs with AND. Hint: The logic expression for the 3rd row is
c. Then use OR to combine all of the row-specific expressions. What is the logic expression that describes the two-to-one multiplexer? Simplify it using Boolean algebra Hint:
d. Explain in words the logic equation that you obtained, and why it describes the multiplexer. e. Complete below the Venn diagram of the multiplexer:
f. Use the logic equation derived in Question 1(c) to draw the schematics for the two-to-one multiplexer. Reminder: Below are the symbols of some common logic gates.
Copyright © Orly Alter 2008
a. Write the truth table that corresponds to the two-to-four decoder, which is drawn above, using the headers below:
Input Output A 0 A 1 D 0 D 1 D 2 D 3
b. Complete below the Venn diagrams for D 0 , D 1 , D 2 and D 3. Do these overlap? What is their intersection?
The four-to-two encoder takes in the outputs of the two-to- four decoder and puts out the inputs of the decoder, thus reversing the decoder’s operation.
c. Fill-in the encoder’s truth table based on the decoder’s truth table of Question 2(a) using the following headers:
Encoder Input Encoder Output D 0 D 1 D 2 D 3 A 0 A 1
Copyright © Orly Alter 2008
d. Convert this truth table to logic equations for A 0 and A (^1) (20%). e. Use the logic equations derived in Question 2(d) to draw the schematics for the four-to-two encoder.
and 1. Thus, for S 0 =0 the output would be the addition of the three digits S 0 =0, A and B, whereas for S 0 =1 the output would be the addition of the three digits S 0 =1,
A = NOT(A) and B.
a. Fill-in the truth table for this adder/subtractor below:
Input Output S 0 A B S C 0 0 0 0 1 0 0 0 1 1 0 1 1 1 0 1 1 1
Copyright © Orly Alter 2008
h. Simplify the logic equation for C using Boolean algebra. i. Complete below the Venn diagram for C.
j. Draw the schematics for the adder/subtractor, the logic structure that satisfies the above truth table (30%).
Copyright © Orly Alter 2008
b. Convert this truth table to a logic equation for Z in terms of A, B and S 0. Simplify your logic equation as possible (20%). c. Draw the schematics or the larger/smaller-of-two following your logic equation for Z (20%).