131 Week 3 - Boolean Logic Flashcards
Fundamental binary logical operators
AND, OR, NOT, XOR
Truth tables
A way of representing outputs based on a set of inputs
Can be used to show the results of logic gates such as AND
AND
- or ⋀ or <nothing></nothing>
OR
+ or ⋁
NOT
’ or ˉ (bar) or ¬
XOR
⊕
AND logic gate
https://media.geeksforgeeks.org/wp-content/uploads/20211105170309/SymbolofANDgate.jpg
OR logic gate
https://media.geeksforgeeks.org/wp-content/uploads/20211107115351/SymbolofORgate.jpg
NOT logic gate
https://media.geeksforgeeks.org/wp-content/uploads/20211107120202/SymbolofNOTgate.jpg
XOR logic gate
https://media.geeksforgeeks.org/wp-content/uploads/20211107123017/SymbolofXORgate.png
Inverted logic gates
NAND and NOR
Commonly used instead of AND/OR/NOT/XOR gates
NAND = NOT AND
NOR = NOT OR
Why are NAND and NOR used instead of AND/OR/NOT/XOR
They are universal logic gates - any logic gate can be made using NANDs and NORs
Approach for designing logic circuits
Write out a truth table
Derive a Boolean expression by ORing columns with an output of 1. (sum-of-products)
Translate Boolean expression into logic gates. May need to simplify expression or map AND/OR/NOT/XOR to NAND/NOR
Karnaugh maps
A way of simplifying boolean expressions using a grid and boxing groups of true boxes:
https://www.physicsandmathstutor.com/pdf-pages/?https://www.physicsandmathstutor.com/computer-science-revision/a-level-ocr/data-types-structures-algorithms - data types advanced notes