Professional Documents
Culture Documents
Digital Es Practica 2
Digital Es Practica 2
Digital Es Practica 2
Abstract
Based on the DeMorgan theorems, simplified expressions of Boolean algebra
can be made; thus, we can represent all the basic logic gates with their
equivalent NAND and OR logical operations.
Introduction
Since the design of the first logic gates, Boolean algebra was born; and
since that, DeMorgan proposed two theorems which are fundamental in
Boolean algebra. These theorems demonstrate the equivalence between the
NAND and NEGATIVE-OR logic gates, and a NOR and NEGATIVE-AND logic
gates.
The first theorem DeMorgan indicates that the complement of a product of
variables is equal to the sum of the complements of the variables; that is,
the complement of two or more variables to which the AND operation is
applied is equivalent to applying the OR operation complements each
variable; as shown in Fig.1 can be observed and its corresponding truth
table in Fig. 2.
- Formula to express the theorem:
=X
+ Y
XY
- Equivalent gate and truth table:
= X Y
X +Y
- Equivalent gate and truth table:
For the implementation of a logic gate where the output is declared as f1,
the code is written as shown below:
f1 <= a XOR b;
To implement the same logic gate where the output is declared as f2 , but
using the first theorem DeMorgan, the code is written as shown below:
To implement the same logic gate where the output is declared as f3, but
using the second theorem DeMorgan, the code is written as shown below:
We proceed to write each logic gate in its NAND and NOR representation
(similar to the example previously seen), generating three signals for each
logic gate which can be compared.