Boolean Logic

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/29

flashcard set

Earn XP

Description and Tags

Logic Gates + Boolean Algebra + Algebraic Expressions + Adders + D-Type Flip Flops + Simplifying Boolean Expressions + De Morgan's Law

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

30 Terms

1
New cards

Define Boolean Algebra

Logical calculus of truth tables

  • developed by George Boole (late 1830s)

  • resembles algebra of real numbers but with numeric operations of: multiplication, addition and negation

  • variables cam either be TRUE or FALSE (1s & 0s / 5v & 0v)

2
New cards

what is a logic gate

circuits which take boolean inputs and convert them to boolean output

  • and

  • or

  • not

  • nand

  • nor

  • xor

  • xnor

3
New cards

drawing truth tables: TRICK

n inputs = 2n lines in truth table

e.g. 3 inputs = 23 = 8 lines in truth table

4
New cards

Draw the symbol, algebraic representation and truth table for the AND gate:

  • A.B

  • 0.0 = 0

  • 0.1 = 0

  • 1.0 = 0

  • 1.1 = 1

<ul><li><p>A<strong>.</strong>B</p></li><li><p>0.0 = 0</p></li><li><p>0.1 = 0</p></li><li><p>1.0 = 0</p></li><li><p>1.1 = 1</p></li></ul><p></p>
5
New cards

Draw the symbol, algebraic representation and truth table for the OR gate:

  • A+B

  • 0+0 = 0

  • 0+1 = 1

  • 1+0 = 1

  • 1 +1 = 1

<ul><li><p>A<strong>+</strong>B</p></li><li><p>0+0 = 0</p></li><li><p>0+1 = 1</p></li><li><p>1+0 = 1</p></li><li><p>1 +1 = 1</p></li></ul><p></p>
6
New cards

Draw the symbol, algebraic representation and truth table for the NOT gate:

  • A with a dash on top

  • NOT 0 = 1

  • NOT 1 = 0

<ul><li><p>A with a dash on top</p></li><li><p>NOT 0 = 1</p></li><li><p>NOT 1 = 0</p></li></ul><p></p>
7
New cards

draw the symbol, algebraic representation and truth table for NAND, NOR, XOR, XNOR gates:

<p></p>
8
New cards

Why do we want to reduce the number of gates in our algebraic representation?

Processor needs to be as small & energy efficient as possible

9
New cards

What is the Order of Precedence for Boolean operators?

Brackets first

NOT second

AND third

OR last

10
New cards

What are the ways we can output binary arithmetic?

  • logic gates

  • Half-adder

  • Full Adder

  • D-type flip flops

11
New cards

What is a half-adder

Takes 2 inputs & returns two outputs corresponding to the sum & carry when two inputs are added together

12
New cards

What does a half-adder look like?

knowt flashcard image
13
New cards

What does the truth table for a half adder look like?

knowt flashcard image
14
New cards

what does the boolean algabreic equation look like for a half adder

knowt flashcard image
15
New cards

What is a full adder

combines two half adders to add three bits (2 inputs (A & B) and carry a bit (C))

16
New cards

What does a full adder look like?

(dont need to redraw but have to understand and recognise)

<p>(dont need to redraw but have to understand and recognise)</p>
17
New cards

what does the truth table for a full adder look like?

knowt flashcard image
18
New cards

what does the boolean algabreic equation look like for a full adder

knowt flashcard image
19
New cards

what can full adders be used for

multiple full adders can be connected together to add whole binary numbers together

<p>multiple full adders can be connected together to add whole binary numbers together</p>
20
New cards

what’s a d- type flip flop?

an elemental sequential logic circuit that stores one bit and flips between two states (0, 1).

21
New cards

how does the d-type flip flop work?

has 2 inputs: D & CK (clock signal)

has 2 outputs: Q & inverse Q

clock signal changes at regular intervals to synchronise the change of state of flip-flop circuit

its effectively 1- bit memory

recursive

keeps data consistent

<p>has 2 inputs: D &amp; CK (clock signal)</p><p>has 2 outputs: Q &amp; inverse Q</p><p>clock signal changes at regular intervals to synchronise the change of state of flip-flop circuit</p><p>its effectively 1- bit memory</p><p>recursive</p><p>keeps data consistent</p>
22
New cards

draw a d-type flip-flop using logic gates:

knowt flashcard image
23
New cards

draw the truth table for a d-type flip-flop

X = ‘don’t care‘ state = changes at the D input make no difference to the output as long as the clock input is 0. when CK = 1, there is a change.

<p>X = ‘don’t care‘ state = changes at the D input make no difference to the output as long as the clock input is 0. when CK = 1, there is a change.</p>
24
New cards

describe what happens in a d-type flip-flop when the CK is high (1):

whichever logic state is at D will appear at output Q. that way you can work out the other output (inverse of Q = opposite of Q)

<p>whichever logic state is at D will appear at output Q. that way you can work out the other output (inverse of Q = opposite of Q) </p>
25
New cards
<p>draw this data as cleaned data:</p>

draw this data as cleaned data:

cleaned data has now been outputted for Q to keep data consistent

<p>cleaned data has now been outputted for Q to keep data consistent </p>
26
New cards

what is the process of reducing the number of logic gates called and why do we use it?

  • minimisation

  • improve efficiency - computer can carry out the same task in fewer steps, therefore, reducing time to solve boolean algebra

27
New cards

SIMPLIFYING BOOLEAN EXPRESSIONS:

normal maths rules:

  • A + B = B + A

  • A . B = B . A

  • A + (B + C) = (A + B) + C

  • A. (B + C) = A . B + A . C - expanding

  • (A + B) . (A + C) = A + (B . C) - factorising

28
New cards

SIMPLIFYING BOOLEAN EXPRESSIONS:

using truth tables

A . A = A

A . 0 = 0

A . 1 = A

A . NOTA = 0

A + A = A

A + 0 = A

A + 1 = 1

A + NOTA = 1

29
New cards

De Morgan’s Law

  1. negate individual variables

  2. change the operator

  3. negate whole expression

<ol><li><p>negate individual variables</p></li><li><p>change the operator</p></li><li><p>negate whole expression </p></li></ol><p></p>
30
New cards

advantages of using de morgan’s law

  • minimises cost of production

  • increases processing speed

  • minimises heat generated

  • reduces power consumption