_LAB 2 - BOOLEAN LOGIC
docx
keyboard_arrow_up
School
University of Ottawa *
*We aren’t endorsed by this school
Course
1100 B
Subject
Electrical Engineering
Date
Apr 3, 2024
Type
docx
Pages
13
Uploaded by Ayanokoji123
LAB 2 - BOOLEAN LOGIC ITI 1100A- Digital Systems Winter 2024
School of Electrical Engineering and Computer Science University of Ottawa
Course Coordinator:
Dr. Hussein T. Mouftah
Teaching Assistants:
TA 1 Jainam TA 2 Delphi
TA 3 Aseem
Group 21
Ayaan Chaudhary
300373526
Youssuf Helaly 30035594
Experiment Date: February 8th 2024
Submission Date: February 19th 2024
Objectives
●
Simplifying logic functions by beginning with their Boolean expressions or logic truth tables
●
To create, put into practice, and evaluate reduced combinational circuits
●
utilizing parameters to create and construct combinational logic circuits
●
To put combinational circuits into practice with any kind of logic gate
●
putting combinational circuits into practice with NAND gates alone.
●
To simplify Boolean formulas and implement them as logic circuits using Karnaugh maps;
●
To demonstrate that the sum-of-products (SOP) minimized circuit with NAND gates is equal to the product-of-sums (POS);
●
to demonstrate the equivalence of the POS and the SOP.
Equipment and Components
●
Quartus II 13.0 Service-Pack
●
Altera DE2-115 circuit board
●
Solid-core wires
●
Dell PC with Lenovo desktop Circuit Diagrams
Part I – Combinational Logic Circuits minimization by Boolean Algebra Boolean expression :Y = (AB)’C D+ (A’+ B’)(CD)’+ (A’+ B’)’ can also be simplified to Y = (AB)’ + AB
Figure 1: This one is the original simplified form of the expression above. The following circuit may also be considered:
Figure 2: The finished, reduced version of the expression where Y = 1 is represented by this circuit.
Part II –Combinational Logic Circuits minimization by the Karnaugh Map Method
Y = AB' + B'C'D' + ACD' + B'CD which reduces to Y = AB' + ACD' + B'D'. This simplified expression can be transformed into the following by applying NAND gates to convert it: Y = ((AB')'(B'D')'(ACD')')'. The circuit schematic below illustrates this expression.
Figure 3: Screen-shot of the logic diagram of the SOP minimized circuit with NAND gates of the function Y(A, B, C, D) from Table 5.2.1. Part III – Design of Combinational Logic Circuits
P = D3’D2’D1 + D3’ D2 D0 + D2 D1’ D0 + D2’ D1 D0. Having to convert this expression using NAND gates, the simplified expression can be changed to the following: P = ((D3’D2’D1)’(D3’ D2 D0)’(D2 D1’ D0)’(D2’ D1 D0)’)’. This expression is what the circuit diagram below is representing (Figure 5.2.2)
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
Figure 4: Screen-shot of the block diagram of the prime number detector with only NAND Gates
Part III – Design of Combinational Logic Circuit Simplest SOP representing figure 5.2.2 with any gates
( Boolean expression : P = D2D1’D0 +
D3’ D2 D0 + D2 D1’ D0 + D2’ D1 D0
)
Figure 5: Screen-shot of the block diagram of the prime number detector as an SOP
Experimental Data and Data Processing
Part I – Combinational Logic Circuits minimization by Boolean Algebra Boolean expression: Y = (AB)’C D+ (A’+ B’)(CD)’+ (A’+ B’)’ simplified into Y = (AB)’ + AB
Figure 6: Simulation output waveform of Boolean expression : Y = (AB)’ + AB
Table 1: Experimental data observed from Altera DE2-115 circuit board
Input given from dip
switches
Observed Output from
LED’s
A
B
Y
0
0
1
0
1
1
1
0
1
1
1
1
Part I – Combinational Logic Circuits minimization by Boolean Algebra Boolean expression: Y = 1
Figure 7: Simulation output waveform of Boolean expression : Y = 1
Input given
from dip
switches
Observed Output from
LED’s
VCC
Y
0
1
1
1
Part II –Combinational Logic Circuits minimization by the Karnaugh Map Method
SOP and POS minimized circuit with NAND gates
Figure 8: Simulation output waveform logic diagram of the SOP and POS minimized circuit
Table 2: Experimental data observed from Altera DE2-115 circuit board
Input given from dip switches
Observed Output from
LED’s
A
B
C
D
Y
0
0
0
0
1
0
0
0
1
0
0
0
1
0
1
0
0
1
1
0
0
1
0
0
0
0
1
0
1
0
0
1
1
0
0
0
1
1
1
0
1
0
0
0
1
1
0
0
1
1
1
0
1
0
1
1
0
1
1
1
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
1
1
0
0
0
1
1
0
1
0
1
1
1
0
1
1
1
1
1
0
Part III – Design of Combinational Logic Circuits Simplest SOP circuit that implements the block diagram of a prime number detector with AND
Gates (Figure 5.2.2) Figure 9: Simulation output waveform logic diagram of the prime number detector with only NAND Gates (Same for simplest SOP)
Table 3: Experimental data observed from Altera DE2-115 circuit board
Input given from dip
switches
Observed Output from LED’s
D3
D2
D1
D0
P
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
0
0
1
1
1
0
1
0
0
0
0
1
0
1
1
0
1
1
0
0
0
1
1
1
1
1
0
0
0
0
1
0
0
1
0
1
0
1
0
0
1
0
1
1
1
1
1
0
0
0
1
1
0
1
1
1
1
1
0
0
1
1
1
1
0
Comparison of Theoretical Data and Experimental Data
Part I – Combinational Logic Circuits minimization by Boolean Algebra Boolean expression: Y = (AB)’C D+ (A’+ B’)(CD)’+ (A’+ B’)’ can also be simplified to Y = (AB)’ + AB
Table 4: Comparison of Theoretical and Experimental results for Boolean expression : Y = (AB)’ + AB
Inputs
Expected Results
Actual Results
A
B
Y
Y
0
0
1
1
0
1
1
1
1
0
1
1
1
1
1
1
The results observed experimentally for the Boolean expression: Y = (AB)’ + AB Circuit from the Altera DE2-115 circuit board were identical to results obtained theoretically as expected.
Part II –Combinational Logic Circuits minimization by the Karnaugh Map Method
SOP minimized circuit of truth table of Part II logic function(Table 5.2.1) with NAND gates
Table 5: Comparison of Theoretical and Experimental results for SOP and POS minimized circuit
Inputs
Expected Results
Actual Results
A
B
C
D
Y
Y
0
0
0
0
1
1
0
0
0
1
0
0
0
0
1
0
1
1
0
0
1
1
0
0
0
1
0
0
0
0
0
1
0
1
0
0
0
1
1
0
0
0
0
1
1
1
0
0
1
0
0
0
1
1
1
0
0
1
1
1
1
0
1
0
1
1
1
0
1
1
1
1
1
1
0
0
0
0
1
1
0
1
0
0
1
1
1
0
1
1
1
1
1
1
0
0
The results observed experimentally for SOP and POS minimized circuit
from the Altera DE2-
115 circuit board were identical to results obtained theoretically as expected.
Part III – Design of Combinational Logic Circuits
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
Simplest SOP circuit that implements the block diagram of a prime number detector(Figure 5.2.2)(Same for both diagrams)
Table 6: Comparison of Theoretical and Experimental results for simplest SOP circuit that
implements the block diagram of a prime number detector(Figure 5.2.2)
Inputs
Expected Results
Actual Results
D3
D2
D1
D0
P
P
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
1
1
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
0
0
1
0
1
0
0
0
1
0
1
1
1
1
1
1
0
0
0
0
1
1
0
1
1
1
1
1
1
0
0
0
1
1
1
1
0
0
The results observed experimentally for Simplest SOP circuit that implements the block diagram of a prime number detector with AND Gates (Figure 5.2.2) from the Altera DE2-115
circuit board were identical to results obtained theoretically as expected.
Discussion & Conclusions
●
Throughout the course of the experiment, several aspects were observed and documented,
including the utilization of the QUARTUS II software, the Altera DE2-115 circuit board, and the overall lab procedure. Also, we had to learn about the operation and interpretation
of the circuit board's results.We figured out that when entering inputs into the circuit board, there were two possible outcomes for its output. The presence of a red LED light on the Altera DE2-115 indicated a false or 0 output, while the absence of light indicated a
true or 1 output. Manipulating the Altera DE2-115 DIP switches also had different results. When the switch was in an upward position, it corresponded to a value of 1 or true. Conversely, pressing the switch down resulted in an output of false or 0. ●
The expected and experimental findings are the same, as previously demonstrated. This indicates that there is no difference between the original and simplified Boolean
formulas. Since the outputs of their truth tables are the identical, this assumption can be made. For instance, a tautology was the expected outcome for the first lab section. Y was determined to be equal to 1 even when the Boolean statement was repeatedly simplified, indicating that it is a tautology. This was further demonstrated by theAltera DE2-115 circuit implementation, which demonstrated that all outcomes were accurate.
●
Every major goal of the lab was accomplished. The intended logic circuits were created using QUARTUS II and the schematics. After that, they underwent functionality tests, and the results were recorded and contrasted with the anticipated data. The sub-objectives
were also fulfilled during the course of the lab experiment. It was discovered that Karnaugh maps are a useful tool for locating simplified Boolean expressions. Afterwards,
these streamlined formulations were employed for the duration of the experimental setup.
It was found that the POS is equivalent to the SOP minimized circuit with NAND gates. This was determined in part two by implementing the SOP minimized circuit with NAND gates into the Altera DE2-115 card, and recording its outputs. When comparing these results with the truth table of the POS, it was found that they were identical. Therefore, it can also be stated that the POS and SOP Boolean expressions/circuits are equivalent. ●
A few things that might have gone wrong in the lab were: connecting wires to the wrong pin and neglecting to recompile the project after each step of the process. The associated input value would not register if the wire was not in its designated pin on the circuit board, resulting in a set of data that did not reflect the circuit. Additional concerns that were observed have to do with software. Time was lost because there were issues accessing the QUARTUS II program. Time was lost and it was unclear whether the simulations were accurate because they were not performing as planned.
Appendix (Pre-Lab)
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
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
9:38....
89
Assignment 3_ECE 161.pdf
Assignment 3 (CLO 3)
ECE-161 Digital Logic Design
Deadline: Friday, May 10, 3:00 pm
Q.1
Design a binary multiplier to multiply two 4-bit numbers by utilizing AND gates and binary adders
in the design.
Q. 2
You are required to design a combinational logic circuit that takes two 4-bit numbers A and B
and a 1-bit input C. The circuit should function as an adder or a subtractor of the inputs A and B,
such that based on the input C it toggles between addition and subtraction. Assume that A>B.
Q.3
Design a combinational circuit based on the given three Boolean functions.
F₁(A,B,C)=(2, 4, 7)
F₂(A,B,C)=(0,3)
F3(A,B,C)=(0, 2, 3, 4, 7)
Implement the circuit using a decoder constructed with NAND gates and "NAND or AND" gates
connected to the decoder outputs.
Q.4
Construct a full adder utilizing two 4x1 multiplexers.
Q.5
Construct a circuit to implement the following truth table shown below.
SR
0 1
QQ'
1
0
1
0
0
1
1
1
Q
Q'
Q
용
Q.6
Design a BCD-to-decimal…
arrow_forward
Q5. Digital logic circuit analysis
Find the digital logic circuit output Y as shown above, where the three inputs are A, B and C.
(a) What is the digital output Y when A= 0, B = 1 and C = 0?
Submit Answer
(b) What is the digital output Y when A= 0, B = 0 and C = 0?
Submit Answer
Tries 0/1
Submit Answer
Tries 0/1
(c) What is the digital output Y when A = 1, B = 1 and C = 0?
Tries 0/1
(d) What is the digital output Y when A= 1, B = 0 and C = 0?
Submit Answer Tries 0/1
arrow_forward
Exercise 1
arrow_forward
Hello expert, I need a solution for the choices,
but I need you to clarify the correct choice by
drawing a diagram or image of the EMU8086
processor.
Q1:Choose the correct answer for the following sentences
1. The 8086 microprocessor has ---- data pin's
2. The 8086 microprocessor has
d. 32
a. 8 b. 16
c. 20
a. 16 b. 8
c. 32 d. 20
3. SP &
a. BP b. IP
address pin's
used with stack segment register (SS) to access memory within the stack segment
c. SI d. DI
4. If CS= 002AH and IP- 0023H, the physical address is -----
a. 002C3H b. 0023H1 c. 002A1H d. 0023H
5. POP instruction used to
a. Read b. Write c. Reset
the stack
d. Set
6. PIC16F877A microcontroller has ------ digital I/O ports
a. 2 b. 4 c. 5 d. 8
7. PIC16F877A microcontroller has analog multiplexed ports
b. 2 b. 4 c. 5 d. 8
8.
used to control the brightness of LED connected to Arduino
a. Analog input b. analog output c. digital input d. digital output
9. The content of SP -------when execute PUSH instruction
a. Increased by 2 b.…
arrow_forward
#7. A,b,c
arrow_forward
Please write your conclusion
arrow_forward
Design a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit. Provide a fifth output that detects an error in the input BCD number. This output should be equal to logic 1 when the four inputs have one of the unused combinations of the BCD code. Provide a schematic logic diagram of it. It will surely help me in my review. Thank you so much!
arrow_forward
answer this plss the subject is logic circuitss
arrow_forward
H.W: Reduce the combinational logic circuit in Figure below to a
minimum form.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Related Questions
- 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_forward9:38.... 89 Assignment 3_ECE 161.pdf Assignment 3 (CLO 3) ECE-161 Digital Logic Design Deadline: Friday, May 10, 3:00 pm Q.1 Design a binary multiplier to multiply two 4-bit numbers by utilizing AND gates and binary adders in the design. Q. 2 You are required to design a combinational logic circuit that takes two 4-bit numbers A and B and a 1-bit input C. The circuit should function as an adder or a subtractor of the inputs A and B, such that based on the input C it toggles between addition and subtraction. Assume that A>B. Q.3 Design a combinational circuit based on the given three Boolean functions. F₁(A,B,C)=(2, 4, 7) F₂(A,B,C)=(0,3) F3(A,B,C)=(0, 2, 3, 4, 7) Implement the circuit using a decoder constructed with NAND gates and "NAND or AND" gates connected to the decoder outputs. Q.4 Construct a full adder utilizing two 4x1 multiplexers. Q.5 Construct a circuit to implement the following truth table shown below. SR 0 1 QQ' 1 0 1 0 0 1 1 1 Q Q' Q 용 Q.6 Design a BCD-to-decimal…arrow_forwardQ5. Digital logic circuit analysis Find the digital logic circuit output Y as shown above, where the three inputs are A, B and C. (a) What is the digital output Y when A= 0, B = 1 and C = 0? Submit Answer (b) What is the digital output Y when A= 0, B = 0 and C = 0? Submit Answer Tries 0/1 Submit Answer Tries 0/1 (c) What is the digital output Y when A = 1, B = 1 and C = 0? Tries 0/1 (d) What is the digital output Y when A= 1, B = 0 and C = 0? Submit Answer Tries 0/1arrow_forward
- Exercise 1arrow_forwardHello expert, I need a solution for the choices, but I need you to clarify the correct choice by drawing a diagram or image of the EMU8086 processor. Q1:Choose the correct answer for the following sentences 1. The 8086 microprocessor has ---- data pin's 2. The 8086 microprocessor has d. 32 a. 8 b. 16 c. 20 a. 16 b. 8 c. 32 d. 20 3. SP & a. BP b. IP address pin's used with stack segment register (SS) to access memory within the stack segment c. SI d. DI 4. If CS= 002AH and IP- 0023H, the physical address is ----- a. 002C3H b. 0023H1 c. 002A1H d. 0023H 5. POP instruction used to a. Read b. Write c. Reset the stack d. Set 6. PIC16F877A microcontroller has ------ digital I/O ports a. 2 b. 4 c. 5 d. 8 7. PIC16F877A microcontroller has analog multiplexed ports b. 2 b. 4 c. 5 d. 8 8. used to control the brightness of LED connected to Arduino a. Analog input b. analog output c. digital input d. digital output 9. The content of SP -------when execute PUSH instruction a. Increased by 2 b.…arrow_forward#7. A,b,carrow_forward
- Please write your conclusionarrow_forwardDesign a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit. Provide a fifth output that detects an error in the input BCD number. This output should be equal to logic 1 when the four inputs have one of the unused combinations of the BCD code. Provide a schematic logic diagram of it. It will surely help me in my review. Thank you so much!arrow_forwardanswer this plss the subject is logic circuitssarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
