02 Section 7 - Logic and Units Flashcards
What do logic gates do?
Logic gates apply Boolean operations to inputs
-they receive binary data, apply a Boolean operation, then output a binary result
What are logic gates?
Logic gates are special circuits built into computer chips
What is a truth table?
Each type of logic gate has a corresponding truth table
-truth tables show all possible input combinations of 1s and 0s, and the corresponding outputs
What is a NOT gate?
NOT gates take a single input and give a single output
-the output is always opposite to the input (e.g. input: 0, output: 1)
What is the symbol for a NOT gate?
A triangle with a circle on the point
What is an AND gate?
AND gates take two inputs and give one output
-if both inputs are 1 then the output is 1, otherwise the output is 0
What is the symbol for an AND gate?
It looks like a ‘D’
What is an OR gate?
OR gates take two inputs and give one output
-if one or more outputs are 1 then the output is 1, otherwise the output is 0
What is the symbol for an OR gate?
It looks like an altered D, so the back is concave and the round part of a D comes to a point
What is the expression and notation for a NOT gate?
Expression: NOT A
Notation: ¬
What is the expression and notation for an AND gate?
Expression: A AND B
Notation: A ∧ B
What is the expression and notation for an OR gate?
Expression: A OR B
Notation: A V B
How do you work out combined logic gates?
-work through each gate in order, follow through each gate and work out the final output
How can logic gates be written as logic statements?
USE BRACKETS and the terms AND, OR, NOT
- e.g. NOT(A AND B)
- operations in the brackets should be completed first
What is a two-level logic circuit?
They require a maximum of two logic gates to reach the output
-they can have 3 inputs though