GCSE Computing – Topic 2 Lesson 5a – Binary Logic CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for.

Slides:



Advertisements
Similar presentations
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Advertisements

Digital Circuits.
IEEE’s Hands on Practical Electronics (HOPE) Lesson 9: CMOS, Digital Logic.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
Boolean Logic & Truth Tables In today’s lesson we will look at: a reminder about truth values and NOT, AND, OR and EOR truth tables operator precedence.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
3. DIGITAL ELECTRONICS..
Computer Science 101 The Boolean System. George Boole British mathematician ( ) Boolean algebra –Logic –Set theory –Circuits –Conditions in if.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Activity 1 Revise / remember what the term ‘binary logic’ means. What do each of the following look like: NOT gate? AND gate? OR gate? 5 minutes.
Computers in the real world Objectives Understand what is meant by binary Why do computers use binary? Understand what is meant by a truth table. Be able.
GCSE Computing: A451 Computer Systems & Programming Activity 1 Grab a whiteboard and pen, come to the front and work out the.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
A-Level Computing#BristolMet Session Objectives#6 MUST understand and produce simple logic diagrams using the operations NOT, AND and OR SHOULD explain.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
4. Computer Maths and Logic 4.2 Boolean Logic Simplifying Boolean Expressions.
Teaching Computing to GCSE Level with Python Session 3.
Activity 1 Revise/research what the word binary means Revise/research what the word logic means 5 minutes.
Activity 1 Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: 5 minutes R A B C Q.
Minute Paper 4/4/04 Z=50+j86.7=100
Binary Logic Derrington KCL CPD/SKE Binary We’ve seen how data of all different sorts and kinds can be represented as binary bits… 0s and 1s 1 is.
Logic Gates and Boolean Algebra Introduction to Logic II.
Logic Gates The processor is made up of millions of logic gates. These are used to make decisions. Each gate takes an electric input and outputs a result.
Lesson 2 – Denary to Binary
© 2016 AQA. Created by Teachit for AQA Boolean logic Lesson 3.
Boolean Algebra Learning Objectives Learn that Boolean algebra produces a result that equals TRUE or FALSE Learn how truth tables are used to represent.
Unit 1 Logical operators.
Computing Binary Logic.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Activity 1 5 minutes Grab a whiteboard and pen, come to the front and work out the Truth Table for the following circuit: R A B C Q.
CSIS-110 Introduction to Computer Science
Logic Gates and Truth Tables
Lesson Objectives Aims You should be able to:
Component 1 Logical operators.
Logic Gates.
Computer Science 210 Computer Organization
Questions Describe the following gates
Boolean Algebra.
Write a story Creating a Successful Lesson Plan Learning objectives:
Minecraft Logic Gates!.
Lesson Objectives Aims Be able to define problems using Boolean logic
Chapter 2.3 Binary Logic.
Karnaugh Maps (K-Maps)
Teaching Computing to GCSE
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Thursday, 22 November 2018 Logic Gates
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
3.4 Computer systems Boolean logic Lesson 2.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Computer Science 210 Computer Organization
Boolean Logic In today’s lesson we will look at:
Fundamentals of Computer Systems
Computers in the real world Objectives
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
GCSE Computer Science – Logic Gates & Boolean Expressions
Binary Logic.
Some basic electronics and truth tables
Objectives Construct truth tables for the following logic gates:
Truth tables Mrs. Palmer.
CPSC 121: Models of Computation
CPSC 121: Models of Computation
Digital Circuits.
How can we change the current in a circuit?
Laws & Rules of Boolean Algebra
Introduction to Logic diagrams and truth tables
Further binary, Logic diagrams and truth tables
Introduction to Logic diagrams and truth tables
Programming Techniques :: Logic & Truth Tables
Presentation transcript:

GCSE Computing – Topic 2 Lesson 5a – Binary Logic CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Starter Everyone stand up, if you meet the criteria sit down. Consider the choice of words I am using, how does this word affect whether you stand up or sit down? AND – OR – NOT -

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Binary Logic We already know that Binary is used by represent data in a computer system. It uses a 1 or a 0 to represent data. As computers use electrical circuits they have two states ON or OFF (1 or 0). Logic gates use binary logic to take inputs as a 1 or 0 and given an output of 1 or 0. Binary logic is where we say if something is either true or false. There is no maybes or kind of. Just true or false. For example “Is that a car?” would result in true or false (It is either a car or it isn’t). Or “Mr Stead has a beard today”. Statements like “Is Mr Stead awesome?” would NOT be binary logic as the answer will not be answered the same by different people.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Types of Logic Gates Stick the sheet you have been given in your book, for each type of logic gate, based on the input of A, B or both, decide whether the output is 1 or 0. Remember: AND – All has to be TRUE (1) for the output to be TRUE (1) OR – At least 1 has to be TRUE (1) for the output to be TRUE (1) NOT – the output is the opposite of the input.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. NOT – Logic Gate NOT– reverses truth. True becomes false and false becomes true! Key point – This flips truth! AB 0 1 A B

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. AND – Logic Gate AND – If A and B are both true then C is true. Key point – Both MUST be true for AND to be true! ABC A B C

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. OR – Logic Gate OR– If either A or B are true then C is true Key point – At least one of A or B must be true! ABC A B C

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Quick Test – Binary Logic For each question, look at the logic diagram and decide what the output for each would be. A)1 0 ? B) 0 ? C) 0 1 ? D) 1 ? E) 0 1 ?

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Logic Circuits Logic Gates can be combined into logic circuits, and the output from one logic gate can feed another. A logic gate that follows another logic gate, uses the output from it to feed it’s input, all possible outcomes must be considered. Rule of thumb: The number of rows in the truth table can be calculated by: 2 n where n = Number of Inputs 2 inputs (A,B) = 4 rows 3 inputs (A,B,C) = 8 rows etc.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Logic Circuits Working out the output using logic circuits 1.Calculate the number of rows in the truth table by identifying the inputs. 2.Work out the binary combinations using those inputs. e.g. 3 inputs would be all the binary combinations to represent 0 to 7 using 3 bits. 000, 001, 010, 011, 100, 101, 110, Start at the beginning of the logic circuit and calculate the output. 4.Repeat for the next logic gate.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Worked Example Complete the truth table for the following logic circuit. A B C D ABCD

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Group Task You will work in groups to complete the truth tables for a range of different scenarios, they start off easy and get harder. Start at difficulty level 1, you must try to complete one task from each difficulty level. As you have completed a level, come get it checked and then pick one from the next level. If you are confident in your ability, start at Level 2.

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Exercise - Extension Draw the following diagrams in your book and complete a truth table for each task: a)c) b)d) A B C D A B C D E A BC D A B C D E F

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Progress Check / Plenary Using your mini-whiteboards, lets check our progress against the outcomes: A B C Name the Logic Gate

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Progress Check / Plenary Using your mini-whiteboards, lets check our progress against the outcomes: Name the Logic Gate A B C

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Progress Check / Plenary Using your mini-whiteboards, lets check our progress against the outcomes: Name the Logic Gate A B

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Progress Check / Plenary Using your mini-whiteboards, lets check our progress against the outcomes: Draw the Truth Table A B C D E

CHALLENGE TO: identify the different types of logic diagrams. ASPIRE TO: Construct a truth table for a given logic diagram. Progress Check / Plenary Using your mini-whiteboards, lets check our progress against the outcomes: How many inputs? How many rows in the truth table? A B C D E F

GCSE Computing – Topic 2 Lesson 5b – Binary Logic CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs

CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs. ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs Logic Gates So far we have been given logic gates/circuits and constructed truth tables for them, however you could also be asked to create a logic gate/circuit based on a statement. e.g. Draw a logic circuit for A AND NOT(B OR C) This example would look something like above, so how do you get to this? A B C

CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs. ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs Logic Gates First of all you have to make sure you know what each logic gate looks like when written. A NOT A A B A AND B A OR B A B

CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs. ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs Worked Example - Logic Circuits You must then break down the expression and create each logic gate required separately, before combining them. It is normally a good idea to construct the gate in brackets first, just like you would do a calculation in the brackets first. e.g. (A OR B) AND NOT(C) A B A OR B C NOT C COMBINED A B C

CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs. ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs Task Create the logic circuits for the following expressions, make sure you write the expression first: a)(NOT B) AND A b)(A AND B) OR (C AND D) c)A OR (B AND C) or D d)(A AND B) AND (C AND D) e)(NOT A) OR (NOT B) AND C Swap books with the person next to you and peer assess their work, remember to initial it.

CHALLENGE TO: Construct a logic circuit for a given statement with 2 inputs. ASPIRE TO: Construct a logic circuit for a given statement with more than 2 inputs Consolidating Using everything you have learn today, complete the worksheet on logic gates: