lab_3_worksheet

docx

School

Langara College *

*We aren’t endorsed by this school

Course

1050

Subject

Electrical Engineering

Date

Feb 20, 2024

Type

docx

Pages

11

Uploaded by GrandGuineaPig4093

Report
Lab 3: Chapter 4, Gates and Circuits [52 marks] In all of the problems, you must show your work to qualify for the mark. Type your answer in this worksheet after each question. Export the completed worksheet to PDF and Submit the PDF version with D2L. Learning Objectives At the end of this lab, you should be able to: draw circuit diagrams for Boolean expressions write truth tables for Boolean expressions write Boolean expressions for logic circuits experiment with adders simplify Boolean expressions Lab Readings 1. Chapter 4 – Gates and Circuits 2. Lab 6 Logic Circuits, Lab6_Manual.pdf and the related Applet are included on D2L Lab Questions 1. [4] Draw a circuit with two inputs A, B and one output that corresponds to AxorB. Run the circuit with all possible input values as given in the table below to complete the truth table for the XOR gate: A B A xor B 0 0 1 0 1 1 1 0 1 1 1 0 Insert 4 screenshots of the circuit corresponding to each of the 4 input combinations listed above 1
2
2. [4] Do Exercise 2 from Lab6_Manual.pdf Note : Correct Exercise 2 part 2 as follows: Add four switches, three AND gates, and an output. Arrange them so two switches feed into one AND gate while the other two switches feed into another AND. Then the two outputs of these AND gates feed into the third AND gate. a) Attach a screenshot of your circuit below this line. 3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
b) Draw the corresponding Truth Table below this line. A B C D A. B B.C X=(A.B).(B.C) 1 1 1 1 1 1 1 1 1 1 0 1 0 0 1 1 0 1 1 0 0 1 1 0 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 1 0 1 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 3. [6] Do Exercise 4 from Lab6_Manual.pdf Insert a screenshot of your final “Full Adder” circuit. See the text book chapter 4 page 109. Note that this circuit is to be built with 2 truth tables and Not with gates . The Truth Tables are also given below. In the text the two truth tables are combined in one diagram. 4
Note. Also see the Truth Table Example in the LOGIC GATE SIMULATOR Applet and Lab6_Manual.pdf. A B Carry-in Sum 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 A B Carry-in Carry-out 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 5
4. [4] Given the following Boolean expression: X = (A'B + C) a. Draw the circuit diagram for X (use the applet and insert a screen shot below this line). b. Write the truth table for X below this line. A B C X 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 1 5. [4] Given the following Boolean expression: Y = (AB' + BC) D 6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
a. Draw the circuit diagram for Y (use the applet and insert a screen shot below this line). b. Write the truth table for Y below this line. A B C D Y 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 7
6. [4] Given the following logic diagram: a. Write the Boolean expression for Q below this line. Q=(AB+(A+B)’) b. Write the truth table for intermediate values and Q below this line. A B AB (A+B)’ Q 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 1 1 1 0 1 7. [4] Given the following circuit diagram: a. Write a Boolean expression for Q below this line. Q= (AB)+((B+C)BC) b. Write the truth table for intermediate outputs (4 of them) and Q below this line. 8
A B C AB B+C BC [(B+C).BC] Q 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 1 0 1 1 0 0 1 1 1 1 1 1 1 1 1 8. [8, 2 each] Using properties of Boolean algebra, simplify the following Boolean expressions so they could be built with the minimum number of gates . a. X = A + BC + AB + ABC + B X= A(1+B) + BC(1+A) + B X= A(1) + BC(1) + B X= A + B(C+1) X= A + B b. Y = AB + B(AC + BC + ABC' + A) Y= AB + B(A(C+1) + BC + ABC’) = AB + B(A(1) + BC + ABC’) = AB + B(A + BC + ABC’) = AB + AB + B( BC + ABC‘) = AB + B(B(C + AC‘)) = AB + BB(C+AC‘) = AB + B(C + AC‘) c. W = ABC' + AB'C' + B'CD + A'C + BC W = A(BC‘ + B’C‘) + C(B’D + A‘ + B) =AC’(B+B’) + C(B’D+A’+B) =AC’(1) + C(B’D+B+A’) = AC’ + C(B’D + A’ + B) 9
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
d. Z = (A + B')' + (ABC')' + A(B + A'C)' =A’B + A’ + B’ + C + A(AB’C’) =A’(B+1) + B’ + C + A.A(B’C’) =A’(1) + B’ + C + AB’C’ =A’ + C + B’(AC’) 9. [6] Given the following Boolean expression: W = A'B + B'C + CB + ABC' a. Simplify the expression as much as possible using the properties of Boolean algebra so it could be built with the minimum number of gates. W= B(A’+AC’) + C(B’+B) =B(A’+AC’) + C(1) =C + B(A’+AC’) b. Create the truth table for W and create the truth table for the simplified expression (this will validate your simplified expression). A B C A’ AC’ A’+AC’ B(A’+AC’) W 0 0 0 1 0 1 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 0 0 1 1 1 0 0 1 1 1 1 1 1 1 0 0 0 0 1 10
10. [8] The following table describes two truth tables, one with inputs A, B, C, output X, the other with inputs A, B, C, and output Y. Write the Boolean expressions for X and Y (they are two separate outputs) in terms of A, B , and C, simplify them. X=AB’C+AB’C’ =AB’(C+C’) =AB’(1) =AB’ Y= ABC+AB’C’ =A(BC+B’C’) OR =A(BC+(B+C)’) Submit the completed worksheet with D2L in PDF Format. 11 A B C X Y 0 0 0 0 1 0 0 1 1 0 0 1 0 1 1 0 1 1 0 0 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 1