Logic Flashcards
What are logic gates?
Special circuits built into computer chips. They receive binary data, apply a Boolean operator then output a binary result.
What do logic diagrams show?
logic gates and circuits
What is the NOT gate?
- take a single input and give a single output
- the output is always opposite to the input
- e.g. 1 = 0 and 0 = 1
What is an AND gate?
- take two inputs and give one output
- if both inputs are 1 the output is 1 otherwise the output is 0
What is an OR gate?
- takes two inputs and give one output
- if one or more inputs are 1 then the output is 1 otherwise the output is 0.
What’s the notation of a AND gate?
A ^ B
What’s the notation of a OR gate?
A V B
What’s the notation of a NOT gate?
line across to the right to go down a little
What do multiple logic gates do when added to the same logic circuit?
Carry out different operations
How can you work out the truth tables for multiple logic gates?
- working through each gate in order
- for every input combination follow them through each gate step-by-step then write down the output.
How can circuits be written as logical statements?
Using brackets and the terms AND, OR and NOT
e. g. NOT(A AND B)
- operators in brackets should be completed first
What are two-level logic circuits?
Require inputs to pass through a maximum of two logic gates to reach the output.