4+5 Flashcards
What does a not gate look like? What about an AND, NAND, OR, NOR and XOR??
not: triangle with circle at pointy end, one input one output.
AND: multiple inputs into one semicircular object, one output.
NAND: AND with circle at start of output.
OR:More curved input and more pointy output than AND
NOR: Same as OR but with circle at output.
XOR: Like OR but with line before input entry.
What is a combinatorial logic circuit?
One whose outputs are only dependent on the inputs.
How can we define a combinatorial circuit?
Truth table(for each of the 2^n possible combinations of input show binary value of output). Boolean equations Graphical signals(interconnection of gates).
What is a 1 bit half adder? How can we make one?
Gives the result of adding 2 binary digits together. Connect input A and B to a XOR gate and an AND gate. AND gate does carry(2nd bit), XOR gate does sum.
How does a full adder work?
Adds together three 1 digit binary numbers, A and B got into a XOR and AND. The XOR goes into a XOR(which outputs the lowest value digit) and AND with C. Then both ANDs go into an OR gate which does the second binary output digit(carry).
What are the boolean operators and their precedence?
- (NOT) 1
• (AND) 2
+ (OR) 3
What is De Morgan’s theorem?
The inverse of the result of A OR B is = to the inverse of A AND the inverse of B.
The inverse of the result of A AND B is = to the inverse of A OR the inverse of B
What is a transistor?
An electronic switch, it has a base a collector and an emitter. If 0V is applied to B the switch will be open, if +5V is applied to B the switch is closed. If the switch is closed then the signal can travel from the collecter to the emitter, else it cannot.
How can we make a NAND gate with transistors?
A power supply supplies a simple circuit with Q being the important part. Two NAND gates allow this path to Q to be short circuited if both are closed.
How can we make an electronic switch?
output = A if and only if C = 1. So just do an and gate with C and A as inputs.
What is a multiplexer? How about a demultiplexer?
A multiplexer is a digital switch which allows select lines to select which of the inputs gets passed through. The demultiplexer does thjis in reverse, choosing which output to send the signal too based on the select lines.
What is a sequential logic circuit? What are the two types?
Output depends on history as well as present inputs.
These can be synchronous:
input changes between clock pulses, state changes at clock pulses
Or asynchronous: State changes occur as changes in inputs occur.
What is a Set-Reset latch?
Tie the output of the circuit to one of its input, this allows the circuit to save state. This can be done by combining two NOR gates, one input for each comes from the other ones output. We can then set the latch by setting one of them to 1, or reset the latch by setting the other one to 1.
What is an SR- Flip-Flop? What is a D-type flipflop?
We can make a set reset latch which can be turned on and off as we want by adding an enable line which is connected to the set and reset lines seperately with AND gates.
A D-type flipflop is the same but with only one line of input, as S is the inverse of R.
How can we use a Data flip flop to store data?
Set or reset D, toggle enable line, storing D, toggle enable line again. Now D can vary without changing stored value.