Digital Electronics Notes Flashcards
How would represent this equation from De Morgans theorem into a truth table?
What are the three specific types of logic systems ?
Combinational Logic System
Sequential Logic System
Storage Logic System
What is the property of a combinational logic system?
The output data is a logical function of the value of the input data at the instant the output is measured.
Property of a Sequential Logic System?
The outputs depend not only on the present inputs but also on all previous inputs over a specific operating time.
Function of a storage logic system ?
Storage of information (data is input and stored but nothing is output)
Access of information (data is output without data input)
The relationship between combinatorial, sequential and memory systems
- A simple sequential circuit has memory properties.
- A combinational logic circuit can be converted into a sequential system by applying feedback from some of the outputs to form additional internal inputs.
- A memory circuit can be organized as a combinational logic function.
What are truth tables?
A truth table l_ists the value of the output_ for each and every possible combination of inputs.
If the output is a function of two variables there are 22 or 4 possible input combinations.
For n variables, the truth table will have 2n input states.
What are the symbols and equations for each of the logic gates ?
ALSO Ex OR ! not in the table!
What is the truth table for each of these logic gates?
What are the logical operators on one variable for AND OR and NOT functions?
How does this work?
For AND, if one or more inputs are 0, then the output is 0.
For OR, if one or more inputs is 1, then the output is 1.
For AND, A.0 = 0, because in AND both inputs have to be 1 to output 1, in this case we know that one of the inputs is 0, and thus whatever value of A we get, the output is going to be 1.
For A.1, we always know the output is going to be A.
On the other hand, for OR, we know that A+0 = A because if A is 1, the output is one, if A is 0, the output is 0. So the input solely relies on the input.
Order of precedence for operations in Boolean Algebra ?
- Bracketed Functions and ‘barred’ or inverted functions
- AND operations
- OR operations
REMEMBER inversion is the same as NOT
What is De Morgans theorem?
Venn Diagram: Worked Example
De Morgan & Truth Table Question
Determining equality by means of truth tables
Positive and Negative Logic Coding
negative logic coding simply inverts all the bits used to the opposite, 1 becomes 0, 0 becomes 1.
How do you obtain the 1st canonical form?
To obtain the 1st canonical form from a truth table, create an AND minterm for every entry with an output of 1.
The variable is used if its value is 1, or its inverse if 0.
The shorthand notation of the canonical form
The variables in the minterms are replaced with their binary values.
Each minterm is now regarded as a number and the decimal value is obtained.
The function is now represented by decimal numbers.
1st Canonical Form Question
How is the 2nd canonical form obtained?
Is obtained from the truth table by defining the function by its F=0 terms.
First, write an equation in terms of minterms equal to F=0.
Invert both sides.
Apply De Morgans Theorem
How is the 2nd canonical form calculated directly from a truth table, without De Morgans?
for each entry into the truth table with an output of 0, create an OR of the outputs
Use the normal variable if 0
Use inverted if 1
Finally, the outputs of the OR gates are AND’d together.
Shorthand Notation of the 2nd canonical form
Just like the 1st canonical form, the 2nd canonical form can be represented by decimals that identify the terms.
Non-inverted variables are assigned 0 and inverted variables 1.
Π indicates the 2nd canonical form.
Conversion between the shorthand notations of the canonical form
Conversion between Canonical forms Question
Convert this into NAND form
NAND Logic Example
Circuit transformation with NOR Logic
To obtain a NOR logic gate it is first necessary to start with an implementation of the 2nd canonic form of a function (ie NOT/OR/AND implementation)
Function transformation to NOR logic
Apply De Morgans theorem to the 2nd canonic form.
Difference between negative-AND and NAND ?
negative-AND has the bar across the variables individually.
Like adding an inverter to the input
NAND has a bar across the whole term. This means that the inversion is at the output
Where are the NAND and NOR logic forms derived from ?
1st canonic and 2nd canonic form respectively
Obtain Karnaugh Map for Function - Example
Why are k-maps useful ?
by using the K-map alone, the variables that can be eliminated between a pair of minterms can be detected, without having to resort to algebra.
All that is necessary is to identify any minterms on the K-map that occupy adjacent cells and describe them by the simplest possible expression, which then replaces the original minterms.
What is the logic behind minimizing the 1st canonical form using this K-map?
It is based on finding the variables that are independent n each loop and removing them.
Minimisation of 2nd canonical form through K-maps
What are the rules for looping on a Karnaugh Map
- Loops must contain 2n adjacent cells set to 1 (or 0 for 2nd canonical form). A single cell cannot be simplified
- A loop of 21 is independent of 1 variable. A loop of 22 is independent of 2 variables. In general, a loop of 2n is independent of n variables.
- All cell set to 1 must be covered when expressing the minimal of the function using the 1st canonical form (or 0 if using the 2nd canonical form)
- Loops may overlap as long as one cell is unlooped.
- Any loop that has all its cells included in another loop is simply redundant.
- Loops must be square or rectangular
- Edges of K-map are considered to be adjacent. A loop can leave a side and enter on the other.
Why should you always aim to create the largest loops in k-map minimization?
It always you to obtain the simplest function.
BCD Example
Non-8421 BCD Example
What are ‘Don’t Care’conditions?
For some logic systems, certain combinations of inputs may/will never occur. (i.e. there are inputs for something, but you know it won’t happen)
As such, the creator of the circuit is open to set the output for these inputs to 0 or 1 to simplify the system. These input conditions are known as ‘don’t care’ conditions.
What is the hazard in combinational logic?
They are practical electronic logic circuits and thus not ideal devices. They have a finite time to operate.
This may introduce delays into the propagation of information. As a result, this may invalidate the rules of boolean algebra and cause errors in the logic state.
Hazard Elimination Example
Delays can be caused by the inverters (an extra step in the circuit).
You need to add a redundant loop, that outputs the value need for the final gate, while the other gate waits for correct output (?).
How do you determine the number of rows in a truth table for n number of variables?
2<strong>n</strong>
What is the problem with conventional logic systems?
As the number of variables increase, both the number of gates and the number of input terminals the gates have increased rapidly and quickly become unmanageable.
Also, any minor change in the system (such as adding another input variable) requires a major redesign of the circuit.
What is the general form of an adder cell ?
How do you make an N-bit adder ?
For an N-bit adder, we can simply interconnect N full adder cells as shown.
What composes a half adder cell?
To get the result S and the carry C, you need an EXOR gate as well as a AND gate.
If X and Y are two bits we’re adding, you can see that if both are 1, the value for S is 0 and the value of carry is 1. The carry will move to the next adder cell.
How does a full adder work? What are its components?
It is composed of two half adder cells.
There is also an incoming carry, Cin .
The output S goes through both HA.
The carry coming out of the first HA, goes to an OR gate.
The incoming carry goes to the 2nd HA, so it adds to the value of S. The resultant carry from the 2nd HA also goes to the OR gate.
The OR gate will result in an output of 1, if one of the carry inputs is equal to 1 or both are.
How does a 4-bit carry adder work?
The process is a follows.
The first full-adder calculates the first bit from A0 and B0 , with any incoming carry.
Then, the value of the resulting carry is moved to the next FA.
And so on, unitl the final 4th bit
What is parity?
It is way of detecting errors
A single bit error can be detected by it (not more…)
Alongside the bit stream, we send an EXTRA bit, the parity bit. It tells us the number of 1s.
There are two types of parity, even and odd.
If EVEN parity is used, the value of the extra bit needs to make the signal even. So if the number of 1s in the signal is odd, the parity bit will be 1, to make the transmitted signal EVEN.
Vice-versa, for ODD parity.
What is a parity generator?
A parity generator finds the parity value of a signal, which can later be used to check if the signal transmitted correctly.
Why is an EXOR gate used in a 4 bit parity generator?
Okay, so the EXOR gate is just to control the value of P output (Po). If the input bit is zero and the input value for P is zero , since the number of 1s has NOT changed, the value of P does not need to change. If the bit is zero and the previous P is 1, again, it does not need to change. If the value for x is 1, and the incoming parity is 0, it needs to adjust to the change, so now the NEW values of the parity is 1. If x is 1 and the incoming parity bit is also 1, again the value of the parity needs to change to accommodate the new number of 1s.