Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Exercise 1: Digital Circuits and the Basys Board Revision: August 31, 2009 215 E Main Suite D | Pullman, WA 99163 (509) 334 6306 Voice and Fax STUDENT GRADER I am submitting my own work in this exercise, and I am aware of the penalties for cheating that will be assessed if I submit work for credit that is not my own. Print Name ID Number Sign Name Date Problem 1. 1 2 3 1 2 3 Estimated hours of work 4 5 6 7 8 4 5 6 7 Weight 8 9 10 9 10 # Points 1 8 2 6 3 5 4 14 5 4 6 14 7 8 8 15 9 9 10 12 Score Total Score Weeks late Adjusted Score Adjusted Score: Deduct 15% from score for each week late Below are some circuit elements from a simple digital system. Ohms Law: V = IR Power = VI or I2R VDD 20mA Pushbutton 3.3V VA 100W VB 1Kohm When the pushbutton is not pressed, what is the voltage at VA? ________ When the pushbutton is pressed, what is the voltage at VA? __________ When the pushbutton is pressed, how much current flows in the 1K resistor? ___________ What voltage VB is required so that 20mA flows in the LED circuit as shown? ___________ Problem 2. An LED requires 20mA of current to show the presence of a ‘1’ output in a 3.3V system. The LED has a 1.3V threshold voltage (this voltage must be present across the LED in order for it to emit light). What size of current-limiting resistor should be used? Sketch the circuit. Contains material © Digilent, Inc. 7 pages Exercise #1: Digital Circuits and the Basys Board Problem 3. How much power is dissipated in the resistor in the problem 2 above? Problem 4. Complete the truth tables below. A B F A B F A B F A F INV AND A 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 OR C 0 1 0 1 0 1 0 1 F=A’B + C Problem 5. F A 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 XOR C 0 1 0 1 0 1 0 1 F A 0 0 0 0 1 1 1 1 F=ABC’ + BC Complete the truth tables for the circuits in Figures 1 and 2 in Module 1 using 1’s and 0’s to indicate Vdd and GND. B 0 0 1 1 0 0 1 1 C 0 1 0 1 0 1 0 1 F F=BC’ + B’C SW1 SW2 Figure 1 Truth Table F SW1 SW2 F Figure 2 Truth Table Exercise #1: Digital Circuits and the Basys Board Problem 6. Sketch a circuit similar to figure to the right that asserts logic 1 only when both switches are closed. Vdd F SW1 Describe how your sketch can be interpreted as an AND relationship: SW2 GND Describe how your sketch can be interpreted as an OR relationship: Sketch a circuit similar to the figure to the right that asserts logic 0 only when either switch is closed. Vdd SW2 SW1 F GND Describe how your sketch can be interpreted as an AND relationship: Describe how your sketch can be interpreted as an OR relationship: Exercise #1: Digital Circuits and the Basys Board Problem 7. Sketch a circuit using just switches and resistors that can drive an output F to LHV if two signals A and B are at ‘0’, or if a third signal C is at ‘1’ regardless of the state of A and B (assume a ‘1’ closes a switch, and ‘0’ opens a switch). Problem 8. Complete the truth tables below (enter “on” or “off” under each transistor entry), and enter the gate name and schematic shapes in the tables. Vdd A Q1 Q2 B F Q3 Q4 A B 0 0 0 1 1 0 1 1 A B 0 0 0 1 1 0 1 1 Q1 Q2 Q3 Q4 F Gate Name AND shape OR shape Vdd A Q1 B Q2 F Q3 Q4 Q1 Q2 Q3 Q4 F Gate Name AND shape OR shape Exercise #1: Digital Circuits and the Basys Board Vdd A Q1 Q5 B F Q2 Q6 Q3 Q4 A B Q1 Q2 L L L H H L H H A B L L L H H L H H A B C L L L L L H L H L L H H H L L H L H H H L H H H Q3 Q4 Gate Name F AND shape OR shape Vdd A Q1 Q2 Q5 B F Q3 Q6 Q4 Q1 Q2 Q3 Q4 Gate Name F AND shape OR shape Vdd A Q1 Q2 B C Q3 F Q4 Q6 Q5 Q1 Enter the logic equation for the 3-input circuit above: Problem 9: Q2 Q3 Q4 Q5 Q6 F F= Complete the following. A. A pFET turns [ ON / OFF ] with LLV and conducts [ LHV / LLV ] well (circle one in each bracket). B. An nFET turns [ ON / OFF ] with LLV and conducts [ LHV / LLV ] well (circle one in each bracket). C. Write the number of transistors used in each gate: NAND: _____ OR: _____ INV: _____ AND: _____ NOR: ______ Exercise #1: Digital Circuits and the Basys Board n Problem 10. In a logic function with n inputs, there are 2n unique combinations of inputs and 22 possible logic functions. The table below has four rows that show the four possible combinations of two inputs (22 = 4), and 16 output columns that show all possible two2 input logic functions (22 = 16). Six of these output columns are associated with common logic functions of two variables. Circle the six columns, and label them with the appropriate logic gate name. Draw the circuit symbols for the functions represented A INPUTS B 0 0 1 1 0 1 0 1 1 2 3 4 5 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 ALL POSSIBLE OUTPUTS 6 7 8 9 10 11 1 0 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 0 1 12 13 14 15 16 1 1 0 1 0 0 1 1 1 0 1 1 0 1 1 1 1 1 1 1 A table like the one above for 3 inputs would need _________ rows and _________ columns. A table like the one above for 4 inputs would need _________ rows and _________ columns. A table like the one above for 5 inputs would need _________ rows and _________ columns. Problem 11. Sketch circuits for the following logic equations (a ‘ following a variable means the variable should be inverted). . . . . . F = A’ B C + A B’ C’ + A’ C . . F = (A’ B C’)’ + (A + B)’ F = (A + B’) . ((B + C)’ . A’)’ Exercise #1: Digital Circuits and the Basys Board Problem12. Write logic equations for the following circuits. A A B B F F C C D F= F= A B F A B C C F D D F= F=