EXPERIMENT_33
docx
keyboard_arrow_up
School
Florida International University *
*We aren’t endorsed by this school
Course
3370
Subject
Electrical Engineering
Date
Feb 20, 2024
Type
docx
Pages
12
Uploaded by SargentWhaleMaster161
EXPERIMENT 3
Boolean Laws & Rules and
DeMorgan’s Theorem
OBJECTIVES:
Learn and verify Boolean laws and rules.
Learn and prove DeMorgan’s theorem
Use Xilinx Vivado simulation tools to test combinational circuits. DISCUSSION: A Boolean equation derived directly from a truth table or from a problem statement usually is not
in the simplest form. To have an efficient equivalent logic circuit, the Boolean equation
representing the logic design must be in the simplest from. Boolean equations can be simplified
using Boolean algebra, DeMorgan’s theorem, or/and Karnaugh maps. In this experiment, we will
verify Boolean distribute law, absorption rule and DeMorgan’s theorem.
PROCEDURE: Part I
1.)
Prove this following Boolean distributive law using VHDL code.
A
(
B
+
C
+
D
)
≡ AB
+
AC
+
AD
X
1
=
A
(
B
+
C
+
D
)
X
2
=
AB
+
AC
+
AD
2.)
Define the input and output ports as following:
P a g e 1 | 12
3.)
Type the VHDL code for expressions between the “begin” and “end Behavioral”
.
4.)
Use the xdc template from: https://www.xilinx.com/support/documentation/university/Vivado-
Teaching/HDL-Design/2015x/Basys3/Supporting%20Material/Basys3_Master.xdc
Copy and P a g e 2 | 12
paste the whole text into your constraints file. Uncomment by deleting the # signs in front of the lines of switches and LEDs that we’re going to use. Modify the port names to match with port names defined in the design source as follows:
5.)
Run synthesis, run implementation, and generate bitstream
. If running synthesis or implementation failed, double check your design file (.vhd). If bitstream generation failed, double check your constraints file (.xdc)
6.)
Program the target board.
7.)
Toggle the switches, observe and verify your results. Fill out the truth table.
8.)
Create a simulation source and modify the code as following: P a g e 3 | 12
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
9.)
Run the simulation. Capture the waveform from 0 ns to 160 ns.
RESULTS: Part I
P a g e 4 | 12
D
C
B
A
X1
X2
Schematic Diagram
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
1
1
1
0
1
0
0
0
0
0
1
0
1
1
1
0
1
1
0
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
1
1
1
1
0
1
0
0
0
1
0
1
1
1
1
1
1
0
0
0
0
Boolean Equation
1
1
0
1
1
1
X1 = A(B+C+D)
X2 = AB + AC + AD
1
1
1
0
0
0
1
1
1
1
1
1
Questions: Part I
1.)
Attach 2 photos of your BASYS 3 board results showing the following input conditions:
D = LOW, C = HIGH, B = HIGH, A = LOW
D = HIGH, C = HIGH, B = HIGH, A = HIGH
P a g e 5 | 12
2.)
Attach a screenshot of the simulation result showing the waveform from 0 ns to 160 ns.
P a g e 6 | 12
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
PROCEDURE: Part II (simulation only)
1.) Prove this following Boolean absorption rules and DeMorgan’s theorem using only
simulation.
a.)
Boolean absorption rules:
W
1
=
A
+
A B
W
2
=
A
+
B
X
1
=
A
+
AB
X
2
=
A
+
B
b.)
DeMorgan’s Theorem:
Y
1
=
A
+
B
Y
2
=
A
B
Z
1
=
AB
Z
2
=
A
+
B
2.)
Define the input and output ports as following:
P a g e 7 | 12
3.)
Type the VHDL code for expressions between the “begin” and “end Behavioral”
.
P a g e 8 | 12
4.)
Create a simulation source and modify the code as following: P a g e 9 | 12
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
5.)
Run the simulation. Capture the waveform from 0 ns to 40 ns.
6.)
Fill out the truth table
RESULTS: Part II
sB
sA
sW1
sW2
sX1
sX2
sY1
sY2
sZ1
sZ2
0
0
0
0
1
1
1
1
1
1
0
1
1
1
0
0
0
0
1
1
1
0
1
1
1
1
0
0
1
1
1
1
1
1
1
1
0
0
0
0
QUESTIONS: Part II
1) Attach a screenshot of the simulation result showing the waveform from 0 ns to 40 ns.
P a g e 10 | 12
2) According to your results, are the absorption rules and DeMorgan’s Theorem proven?
Yes they are proven because de Morgan’s theorem states that a the complement of the product of
all the terms is equal to the sum of the complement of each term therefore A
(B+C+D)≡AB+AC+AD
3) Apply Boolean laws and rules and DeMorgan’s theorem to simplify the following Boolean equations. Draw the simplified schematic diagrams. P a g e 11 | 12
P a g e 12 | 12
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
Related Documents
Related Questions
Design the following combinational logic circuit with a
four-bit input and a three-bit output. The input
represents two unsigned 2-bit numbers: A1 A0 and B1
B0. The output C2 C1.C0 is the result of the integer
binary division A1 A0/B1 B0 rounded down to three
bits. The 3-bit output has a 2-bit unsigned whole part
C2 C1 and a fraction part CO. The weight of the fraction
bit CO is 21. Note the quotient should be rounded
down, i.e. the division 01/11 should give the outputs
00.0 (1/3 rounded down to 0) not 00.1 (1/3 rounded up
to 0.5). A result of infinity should be represented as
11.1. A minimal logic implementation is not required.
(Hint: start by producing a truth table of your design).
arrow_forward
Using the Boolean rules, delermine the outputs of the logic
circuits below:
a)
A
b).
c)
c).
B
d)
A
arrow_forward
2.1 Combinational logic circuits.
Tabulates a truth table for the following Boolean expression shown in Equation 1.1.
f = A.B.C + A.B.C + A.B.C
(1.1)
2.2 Half adder.
A half adder is a circuit that adds two binary digits, A and B. It has two outputs, sum (S) and
carry (C). The carry signal represents an overflow into the next digit of a multi-digit addition.
Figure 1.2 depicted a logic diagram for a half adder.
a. derives the Boolean expression for s and c.
b. tabulates a truth table for the half adder.
Ao
Bo
Figure 1.2: Half adder
os
S
C
arrow_forward
A full adder takes three inputs, A, B, Cin, and produces two outputs, S, Cout.
Explain the logic equation for the sum and carry-out bits.
How can you implement this full adder using half adders?
arrow_forward
SUBJECT: DIGITAL DESIGN AND LOGIC CIRCUITS FOR COMPUTER ENGINEERS
TOPIC: LOGIC DESIGN USING DECODER AND MUTLIPLEXER
NOTE: I need full complete solution and correct. Thanks you so much. Please help me!!
1. Implement the logic function
F(A, B, C) = AB' + BC + A'C' using 3x8 Decoder.
2. Implement the logic function
F(A, B, C) = AB' + BC + A'C' using multiplexer.
3. Design a combinational circuit with three inputs, x, y, and z, and three outputs, A,
B, and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than
the input. When the binary input is 4, 5, 6, or 7, the binary output is two less than the
input. Implement your design using multiplexer.
arrow_forward
Logic Circuits
By using the 2 bit counter given in the picture as a package, design a 8 bit counter.
Note: DO NOT COPY FROM OTHER WEBSITES
arrow_forward
Consider the circuit below. The switches are controlled by
logic variables such that, if A is high, switch A is closed,
and if A is low, switch A is open. Conversely, if B is high,
the switch labeled is open, and if B is low, the switch
labeled is closed. The output variable is high if the output
voltage is 5V, and the output variable is low if the output
voltage is zero.
a. Write a logic expression for the output variable.
b. Construct the truth table for the circuit.
A
Logic 1
5V(+
B
C
Logic 0
R
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Related Questions
- Design the following combinational logic circuit with a four-bit input and a three-bit output. The input represents two unsigned 2-bit numbers: A1 A0 and B1 B0. The output C2 C1.C0 is the result of the integer binary division A1 A0/B1 B0 rounded down to three bits. The 3-bit output has a 2-bit unsigned whole part C2 C1 and a fraction part CO. The weight of the fraction bit CO is 21. Note the quotient should be rounded down, i.e. the division 01/11 should give the outputs 00.0 (1/3 rounded down to 0) not 00.1 (1/3 rounded up to 0.5). A result of infinity should be represented as 11.1. A minimal logic implementation is not required. (Hint: start by producing a truth table of your design).arrow_forwardUsing the Boolean rules, delermine the outputs of the logic circuits below: a) A b). c) c). B d) Aarrow_forward2.1 Combinational logic circuits. Tabulates a truth table for the following Boolean expression shown in Equation 1.1. f = A.B.C + A.B.C + A.B.C (1.1) 2.2 Half adder. A half adder is a circuit that adds two binary digits, A and B. It has two outputs, sum (S) and carry (C). The carry signal represents an overflow into the next digit of a multi-digit addition. Figure 1.2 depicted a logic diagram for a half adder. a. derives the Boolean expression for s and c. b. tabulates a truth table for the half adder. Ao Bo Figure 1.2: Half adder os S Carrow_forward
- A full adder takes three inputs, A, B, Cin, and produces two outputs, S, Cout. Explain the logic equation for the sum and carry-out bits. How can you implement this full adder using half adders?arrow_forwardSUBJECT: DIGITAL DESIGN AND LOGIC CIRCUITS FOR COMPUTER ENGINEERS TOPIC: LOGIC DESIGN USING DECODER AND MUTLIPLEXER NOTE: I need full complete solution and correct. Thanks you so much. Please help me!! 1. Implement the logic function F(A, B, C) = AB' + BC + A'C' using 3x8 Decoder. 2. Implement the logic function F(A, B, C) = AB' + BC + A'C' using multiplexer. 3. Design a combinational circuit with three inputs, x, y, and z, and three outputs, A, B, and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the binary input is 4, 5, 6, or 7, the binary output is two less than the input. Implement your design using multiplexer.arrow_forwardLogic Circuits By using the 2 bit counter given in the picture as a package, design a 8 bit counter. Note: DO NOT COPY FROM OTHER WEBSITESarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
