Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.

Slides:



Advertisements
Similar presentations
Truth Tables and Logic Gates. What are Logic Gates? Logic gates are components used in making logic circuits. Each gate has one or more inputs and produces.
Advertisements

DAT2343 Basic Logic Gates © Alan T. Pinck / Algonquin College; 2003.
Logic Gates.
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
Basic Logic Gate Sayed Mahbub Hasan Amiri Dhaka Residential Model College.
CDA 3100 Recitation Week 10.
Discrete Event Control
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 – Part 1.
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
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.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
01 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Computer Science 101 Circuit Design Algorithm. Circuit Design - The Problem The problem is to design a circuit that accomplishes a specified task. The.
Computer Science 101 The Boolean System. George Boole British mathematician ( ) Boolean algebra –Logic –Set theory –Circuits –Conditions in if.
CS101 Introduction to Computing Lecture 8 Binary Numbers & Logic Operations.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Lecture 7 How computers process data (Number Systems) PRESENTED BY MD. MAHBUBUL ALAM, PHD 1.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Digital Electronics Understanding truth tables. AND gate How many lines did a 2-input AND gate truth table have? ABZ (output) Answer:4.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
ABCDNumber = Off 1 = On Binary Coded Decimal (BCD)
Switching functions The postulates and sets of Boolean logic are presented in generic terms without the elements of K being specified In EE we need to.
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
CSC 107 – Programming For Science. George Boole  Mathematician from English middle-class  Lived from 1815 – 1864  Started work at age 16 as a teaching.
CMP 100 Introduction to Computing Lecture Binary Numbers & Logic Operations.
Simple Logic. The only purpose of a waffle is to get the maple syrup and butter into my mouth.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
BOOLEAN ALGEBRA Only involves in calculations of TRUE and FALSE; either be inputs or output. When a logic statement is TRUE it is assigned a Boolean logic.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
Logic Gates Review. Logic Gates OR gate – 1 if either input is 1 – 0 if they both are 0.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic gates.
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Creating logic gates with Minecraft
Logic Gates.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Computer Science 210 Computer Organization
Lab02 :Logic Gate Fundamentals:
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Chapter 2.3 Binary Logic.
Digital Signals Digital Signals have two basic states:
1 Step Equation Practice + - x ÷
How Boolean logic is implemented
Computer Science 210 Computer Organization
JC Technology Logic Gates.
Boolean Algebra.
Computer Science 210 Computer Organization
Logic Gates.
GCSE Computer Science – Logic Gates & Boolean Expressions
Combinational Circuits
Binary Logic.
Table 1.1 Powers of Two.
Seating “chart” Front Back 4 rows 5 rows 5 rows 4 rows 2 rows 2 rows
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Functions and Tables.
Multiply and divide Expressions
Logically, the output will be 1
5.03 Apply operators and Boolean expressions
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
boolean Expressions Relational, Equality, and Logical Operators
SYEN 3330 Digital Systems Chapter 2 – Part 1 SYEN 3330 Digital Systems.
Presentation transcript:

Lecture 5 Binary Operation Boolean Logic

Binary Operations Addition Subtraction Multiplication Division

Addition

Subtraction

Multiplication

Division

Boolean Logic Operations Let x, y, z be Boolean variables. Boolean variables can only have binary values i.e., they can have values which are either 0 or 1. For example, if we represent the state of a light switch with a Boolean variable x, we will assign a value of 0 to x when the switch is OFF, and 1 when it is ON A few other names for the states of these Boolean variables 0 1 Off On Low High False True

Boolean Logic AND OR NOT

We define the following logic operations or functions among the Boolean variables Name Example Symbolically NOT y = NOT(x) x´ AND z = x AND y x · y OR z = x OR y x + y

Truth Table A truth table defines the output of a logic function for all possible inputs. Number of rows in a truth table? 2n n = number of input variables

NOT Operation Truth Table for the NOT Operation X y = x´

AND Operation Truth Table for the AND Operation X y z = x · y

OR Operation Truth Table for the OR Operation x y z = x + y

Examples z = (x + y)´ x y x + y z = (x + y)´

Examples z = y · (x + y) x y x + y z = y · (x+ y)