1.4.3 boolean algebra

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

1/24

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

25 Terms

1
New cards

AND

  • /\

  • 0 0 = 0

  • 0 1 = 0

  • 1 1 = 1

<ul><li><p>/\</p></li><li><p>0 0 = 0</p></li><li><p>0 1 = 0</p></li><li><p>1 1 = 1</p></li></ul><p></p>
2
New cards

OR

  • V

  • 0 0 = 0

  • 0 1 = 1

  • 1 1 = 1

<ul><li><p>V</p></li><li><p>0 0 = 0</p></li><li><p>0 1 = 1</p></li><li><p>1 1 = 1</p></li></ul><p></p>
3
New cards

NOT

  • 0 = 1

  • 1 = 0

<ul><li><p>0 = 1</p></li><li><p>1 = 0</p></li></ul><p></p>
4
New cards

XOR

  • V

  • 1 0 = 1

  • 0 0 = 0

  • 1 1 = 0

<ul><li><p><u>V</u></p></li><li><p>1 0 = 1</p></li><li><p>0 0 = 0</p></li><li><p>1 1 = 0</p></li></ul><p></p>
5
New cards

truth table

knowt flashcard image
6
New cards

boolean expression

knowt flashcard image
7
New cards

karnaugh maps

  • method used to simplify Boolean expressions

  • A OR B shown in image

<ul><li><p>method used to simplify Boolean expressions</p></li><li><p>A OR B shown in image</p></li></ul><p></p>
8
New cards

A /\ N V A /\ NOT B

can be simplified down to just A

<p>can be simplified down to just A </p>
9
New cards

karnaugh map example

  • AB - only one digit can be changes at a time so the order is 00, 01, 11, 10

  • expression can be simplifies to B V C

<ul><li><p>AB - only one digit can be changes at a time so the order is 00, 01, 11, 10</p></li><li><p>expression can be simplifies to B V C</p></li></ul><p></p>
10
New cards

karnaugh map simplification rules

  • boxes must be rectangles or squares, no diagonal boxes

  • boxes can only contain 1s

  • boxes must be as large as possible

  • boxes of 2n 1s: 1, 2 ,4 ,8 ,16

  • boxes can overlap

  • aim for smallest number of overall boxes

<ul><li><p>boxes must be rectangles or squares, no diagonal boxes</p></li><li><p>boxes can only contain 1s</p></li><li><p>boxes must be as large as possible</p></li><li><p>boxes of 2<sup>n</sup> 1s: 1, 2 ,4 ,8 ,16</p></li><li><p>boxes can overlap</p></li><li><p>aim for smallest number of overall boxes</p></li></ul><p></p>
11
New cards

karnaugh map expression simplification

  • take each box in any order

  • take each variable in any order

  • if the digit for the variable in the heading stays the same, keep the variable

  • if the digit for the variable in the heading changes, discard the variable

<ul><li><p>take each box in any order</p></li><li><p>take each variable in any order</p></li><li><p>if the digit for the variable in the heading stays the same, keep the variable</p></li><li><p>if the digit for the variable in the heading changes, discard the variable</p></li></ul><p></p>
12
New cards

general AND boolean simplification rules

  • X AND 0 = 0

  • X AND 1 = X

  • X AND X = X

  • X AND NOT X = 0

13
New cards

general OR boolean simplification rules

  • X OR 0 = X

  • X OR 1 = 1

  • X OR X = X

  • X OR NOT X = 1

14
New cards

what does de morgans law do

  • a way of simplifying boolean expressions by inverting all the variables

    • changing ANDs to ORs and vice versa

15
New cards

de morgans 1st law

¬(A V B) = ¬A OR ¬B

  1. change OR to AND

    1. ¬(A /\ B)

  2. NOT the terms on either side of the operator

    1. ¬(¬A /\ ¬B)

  3. NOT everything that has changed

    1. ¬¬(¬A /\ ¬B)

    2. get rid of double negation

    3. = ¬A /\ ¬B

16
New cards

de morgans 2nd law

  • ¬(A ∨ B) ≡ ¬A ∧ ¬B

  • NOT (A OR B) is the same as NOT A AND NOT B

17
New cards

double negation

  • if you reverse something twice you end up where you started

  • NOT NOT A is equivalent to A

  • ¬(¬A) = A

18
New cards

association

  • allows us to remove brackets from an expression and regroup variables

  • OR association rule

    • A V (B V C) = ( A V B) V C = A V B V C

  • AND association rule

    • A ∧ (B ∧ C) = ( A ∧ B) ∧ C = A ∧ B ∧ C

19
New cards

commutation

  • the order of the application of two separate terms is not important

  • OR commutation rule

    • A V B = B V A

  • AND commutation rule

    • A ∧ B = B ∧ A

20
New cards

distribution

  • allows us to multiple of factor out an expression

  • OR distribution rule

    • A ∧ (B V C) = (A ∧ B) V (A ∧ C)

  • AND distribution rule

    • A V (B ∧ C) = (A V B) ∧ (A V C)

21
New cards

D-type flip flop

  • a type of logic circuit which can store the value of one bit and flip it between 0 and 1 - used in memory circuits

  • a flip flop has two inputs

    • single bit data input (D)

    • clock signal (C)

  • a clock is a regular pulse generates by the CPU which is used to coordinate the computers components

  • a clock pulse rises and falls, with edges labelled rising or falling

  • a flip flop has two outputs

    • single bit data output (Q)

    • inverse of the data output (¬Q)

  • the output of a D-type flip flop can only change at a rising edge, the start of a clock tick

    • edge triggered, allowing synchronisation with other components

    • otherwise the output value us held and does not change

<ul><li><p>a type of logic circuit which can store the value of one bit and flip it between 0 and 1 - used in memory circuits</p></li><li><p>a flip flop has two inputs</p><ul><li><p>single bit data input (D)</p></li><li><p>clock signal (C)</p></li></ul></li><li><p>a clock is a regular pulse generates by the CPU which is used to coordinate the computers components</p></li><li><p>a clock pulse rises and falls, with edges labelled rising or falling</p></li><li><p>a flip flop has two outputs</p><ul><li><p>single bit data output (Q)</p></li><li><p>inverse of the data output (¬Q)</p></li></ul></li><li><p>the output of a D-type flip flop can only change at a rising edge, the start of a clock tick</p><ul><li><p>edge triggered, allowing synchronisation with other components</p></li><li><p>otherwise the output value us held and does not change</p></li></ul></li></ul><p></p>
22
New cards

D-type flip flop clock

  • a D-type flip flop is a positive-edge-triggered flip-flop

  • this means the output can only be changed when the clock pulse is at a rising or positive edge (the moment the signal changes from low to high)

  • if the clock is not at a rising or positive edge, the output value is held and does not change

<ul><li><p>a D-type flip flop is a positive-edge-triggered flip-flop</p></li><li><p>this means the output can only be changed when the clock pulse is at a rising or positive edge (the moment the signal changes from low to high)</p></li><li><p>if the clock is not at a rising or positive edge, the output value is held and does not change</p></li></ul><p></p>
23
New cards

adders

a logic circuit which adds together the number of inputs which are true and outputs that number in binary

24
New cards

half adder

  • has two inputs, A and B

  • has two outputs, sum (S) and carry (Cout)

  • the circuit is formed from an AND and XOR gate

  • truth table, 4 rows

    • when A and B are both false - both outputs are false

    • when one of A or B is true, sum (S) is true

    • when both inputs are true, carry (C) is true

      • as in binary 1 + 1 = 0, carry the 1

<ul><li><p>has two inputs, A and B</p></li><li><p>has two outputs, sum (S) and carry (C<sub>out</sub>)</p></li><li><p>the circuit is formed from an AND and XOR gate</p></li><li><p>truth table, 4 rows</p><ul><li><p>when A and B are both false - both outputs are false</p></li><li><p>when one of A or B is true, sum (S) is true</p></li><li><p>when both inputs are true, carry (C) is true</p><ul><li><p>as in binary 1 + 1 = 0, carry the 1</p></li></ul></li></ul></li></ul><p></p>
25
New cards

full adder

  • similar to a half adder but has three inputs, allowing for a carry in to be represented

  • formed from two XOR, two AND gates and an OR gate

  • truth table has 8 rows as apposed to 4 in the half adder

  • because the full adder has a carry input, the circuits can be changed together

  • how it works

  • to add A, B and Cin together we use the first half adder to add A and B together - giving us X

  • then use the second half adder to add the partial result, X to Cin - giving us the output, Digit

  • finally one or both of the half adders may have generated a carry bit so this needs to be fed into the next calculation

<ul><li><p>similar to a half adder but has three inputs, allowing for a carry in to be represented</p></li><li><p>formed from two XOR, two AND gates and an OR gate</p></li><li><p>truth table has 8 rows as apposed to 4 in the half adder</p></li><li><p>because the full adder has a carry input, the circuits can be changed together</p></li><li><p>how it works</p></li><li><p>to add A, B and C<sub>in</sub> together we use the first half adder to add A and B together - giving us X</p></li><li><p>then use the second half adder to add the partial result, X to C<sub>in</sub> - giving us the output, Digit</p></li><li><p>finally one or both of the half adders may have generated a carry bit so this needs to be fed into the next calculation</p></li></ul><p></p>