CPSC 3300 - Fall 2014 Homework 3 Due at class time on Monday, Feb. 2 1. Given a 2-to-1 mux, an input line A, true line 1 (i.e., Vcc), and false line 0 (i.e., Gnd), show how you can construct the equivalent of a NOT gate to produce ~A. 2. Given a 4-to-1 mux, input lines A and B, true line 1 (i.e., Vcc), and false line 0 (i.e., Gnd), show how you can construct the equivalent of an OR gate to produce A+B. 3. Draw the circuit diagram for a two-input priority encoder with the following truth table. in0 in1 | S E --------+---- 0 0 | 0 1 0 1 | 1 0 1 0 | 0 0 1 1 | 0 0 4. Draw the circuit diagram for a three-input priority encoder with the following truth table. in0 in1 in2 | S0 S1 E ------------+-------- 0 0 0 | 0 0 1 0 0 1 | 1 0 0 0 1 0 | 0 1 0 0 1 1 | 0 1 0 1 0 0 | 0 0 0 1 0 1 | 0 0 0 1 1 0 | 0 0 0 1 1 1 | 0 0 0 5. Give the simplified logic expressions for segments A and G in a seven-segment display based on the following table. Use don't-care values ('x' or 'd') for the six code patterns 1010 and greater. Digit Code | Segments WXYZ | A B C D E F G ------+-------------- 0 0000 | 1 1 1 1 1 1 0 ---A--- 1 0001 | 0 1 1 0 0 0 0 | | 2 0010 | 1 1 0 1 1 0 1 F B 3 0011 | 1 1 1 1 0 0 1 | | 4 0100 | 0 1 1 0 0 1 1 ---G--- 5 0101 | 1 0 1 1 0 1 1 | | 6 0110 | 1 0 1 1 1 1 1 E C 7 0111 | 1 1 1 0 0 0 0 | | 8 1000 | 1 1 1 1 1 1 1 ---D--- 9 1001 | 1 1 1 1 0 1 1