Engineer S. A. AHSAN RAJON Lecturer Department of Computer Science, Khulna Public College, Khulna.

Slides:



Advertisements
Similar presentations
(CSC 102) Discrete Structures Lecture 5.
Advertisements

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
ECE 331 – Digital System Design
1 Information Representation (level ISA-3) Signed numbers and bit-level operations.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Design of Arithmetic Circuits – Adders, Subtractors, BCD adders
Introduction to Computer Science
Logic Gates Combinational Circuits
1.6 Signed Binary Numbers.
XOR, XNOR, and Binary Adders
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
Binary Numbers.
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
©zaher elsir Sudan Academy for Banking & Financial Sciences Decimal Number System Base (Radix)10 Digits0, 1, 2, 3, 4, 5, 6, 7, 8, 9 e.g The magnitude.
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.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Binary Arithmetic & Data representation
CS 151: Introduction to Digital Design Chapter 2-9 Exclusive-OR Gates.
Digital Logic Design Week 3
Logic Gates. Outline  Logic Gates  The Inverter  The AND Gate  The OR Gate  The NAND Gate  The NOR Gate  The XOR Gate  The XNOR Gate  Drawing.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
ECE 301 – Digital Electronics Representation of Negative Numbers, Binary Arithmetic of Negative Numbers, and Binary Codes (Lecture #11) The slides included.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.
COMBINATIONAL LOGIC.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
CCE Department – Faculty of engineering - Islamic University of Lebanon Chapter 6 Binary Arithmetic.
Chapter 1 : Introduction to Binary Systems 1.1. Introduction to Digital Systems 1.2. Binary Numbers 1.3. Number Base Conversion 1.4. Octal and Hexadecimal.
 Do the following conversions:  Solve the following:    /100  10010*110 DecimalOctalHexadecimalBinary 78--
Combinational Logic: Other Gate Types
ECE DIGITAL LOGIC LECTURE 5: BINARY LOGIC AND DIGITAL LOGIC GATES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/28/2016.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
The inverter performs the Boolean NOT operation. When the input is LOW, the output is HIGH; when the input is HIGH, the output is LOW. The Inverter AX.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Memory unit terminology memory contains series of bits, grouped into addressable units word - unit of memory access and/or size of data registers, 16/32/64.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
Computer Code.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Chapter 3 – Digital Logic and Binary Numbers
Princess Sumaya University
Lecture 2-1 Boolean Algebra
Digital Signals Digital Signals have two basic states:
Reference: Moris Mano 4th Edition Chapter 4
University of Gujrat Department of Computer Science
CSE 311 Foundations of Computing I
Boolean Algebra & Logic Circuits
C1 Number systems.
COMS 161 Introduction to Computing
13 Digital Logic Circuits.
DIGITAL ELECTRONICS B.SC FY
Logic Gates By Dr.Mazin Alzewary
Table 1.1 Powers of Two.
ECE 331 – Digital System Design
Arithmetic Operation By: Asst Lec. Besma Nazar Nadhem
Presentation transcript:

Engineer S. A. AHSAN RAJON Lecturer Department of Computer Science, Khulna Public College, Khulna.

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+  Karim will get A+  Rahim will not get A+  Karim will not get A+  Rahim Will Get A+  Karim will not A+  Rahim will not get A+  Karim will get A+

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+ >> TRUE  Karim will get A+ >> TRUE  Rahim will get A+ >> FALSE  Karim will get A+ >> TRUE  Rahim Will Get A+ >> TRUE  Karim will get A+ >> FALSE  Rahim will get A+ >> FALSE  Karim will get A+ >> FALSE

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+   TRUE >> 1  Karim will get A+   TRUE >> 1  Rahim will get A+    FALSE >> 0  Karim will get A+   TRUE >> 1  Rahim Will Get A+   TRUE >> 1  Karim will get A+    FALSE >> 0  Rahim will get A+    FALSE >> 0  Karim will get A+    FALSE >> 0

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA RAHIM will get A

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Thus we may define everything with  simply 0 AND 1  What computer understands is simply TRUE and FALSE.  So, computations based on this binary is sufficient for any computations.

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  We may also have all the computations based on a couple of operations.  AND  OR  NOT  NAND  NOR

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  AND  TRUE AND TRUE >> TRUE  TRUE AND FALSE >> FALSE  FALSE AND TRUE >> FALSE  FALSE AND FALSE >> FALSE  It means ABANDed RESULT

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  OR  TRUE AND TRUE >> TRUE  TRUE AND FALSE >> TRUE  FALSE AND TRUE >> TRUE  FALSE AND FALSE >> FALSE  It means ABORed RESULT

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  NOT  NOT of TRUE >> FALSE  NOT of FALSE >> TRUE  It means ANOT 10 01

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA A A

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  AND represented by.  Often A^B is also used.  OR Represented by A+B  NOT Represented by A’

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+  Karim will get A+  Mohim will get A+  Rahim will not get A+  Karim will not get A+  Mohim will get A+  Rahim Will Get A+  Karim will not A+  Mohim will get A+  Rahim will not get A+  Karim will not get A+  Mohim will get A+

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+  Karim will get A+  Mohim will not get A+  Rahim will not get A+  Karim will not get A+  Mohim will not get A+  Rahim Will Get A+  Karim will not A+  Mohim will not get A+  Rahim will not get A+  Karim will not get A+  Mohim will not get A+

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+ >> TRUE >> 1  Karim will get A+ >> TRUE >> 1  Mohim will get A+ >> TRUE >> 1  Rahim will get A+ >> FALSE >> 0  Karim will get A+ >> TRUE >> 1  Mohim will get A+ >> TRUE >> 1  Rahim Will Get A+ >> TRUE >> 1  Karim will get A+ >> FALSE >> 0  Mohim will get A+ >> TRUE >> 1  Rahim will get A+ >> FALSE >> 0  Karim will get A+ >> FALSE >> 0  Mohim will get A+ >> TRUE >> 1

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Rahim will get A+ >> TRUE >> 1  Karim will get A+ >> TRUE >> 1  Mohim will get A+ >> FALSE >> 0  Rahim will get A+ >> FALSE >> 0  Karim will get A+ >> TRUE >> 1  Mohim will get A+ >> FALSE >> 0  Rahim Will Get A+ >> TRUE >> 1  Karim will get A+ >> FALSE >> 0  Mohim will get A+ >> FALSE >> 0  Rahim will get A+ >> FALSE >> 0  Karim will get A+ >> FALSE >> 0  Mohim will get A+ >> FALSE >> 0

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA RAHIM will get A+ Mohim willl get A

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA XYZ X OR Y OR Z i.e. X+Y+Z

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  OR  TRUE AND TRUE >> TRUE  TRUE AND FALSE >> TRUE  FALSE AND TRUE >> TRUE  FALSE AND FALSE >> FALSE  It means ABOR-ed RESULT

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA XYZ X AND Y AND Z i.e. X.Y.Z

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  NOT  NOT of TRUE >> FALSE  NOT of FALSE >> TRUE  It means ANOT 10 01

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  THESE ARE CALLED GATES  AND GATE  OR GATE  NOT GATE

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A C B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A c B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A C B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  NAND GATES  NAND = NOT OF AND  NOR GATE  NOT OF OR

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A C B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA O/P A c B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA XYZ AND OF X Y Z i.e. (X.Y.Z) NOT(AND OF X Y Z) _____ (X.Y.Z) NAND (X,Y,Z)

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA XYZ X OR Y OR Z NOT OF (X+Y+Z) NOR (A,B,C)

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Exclusive OR Gate  When both the operands are same, the result is 0  When the operands are different, the result is 1. ABXORed RESULT

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Exclusive OR Gate

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  XNOR = NOT of XOR  A XNOR B = NOT OF (A XOR B)  =

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  XNOR ABXORXNOR

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  ASCII  American Standard Codes for Information Interchange  128  Then 256  English and Latin

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  BCD  Binary Coded Decimal  4 bits  8421 Code  BCD 1001=(8X1)+(4X0)+(2X0)+(1X1) = DECIMAL 9  BCD 0010=(8X0)+(4X0)+(2X1)+(1X0) = DECIMAL 2

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  EBCDIC  Extended Binary Coded Decimal Interchange Format.  For example: =Pound Sign

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  UNICODE  Sign/Symbol for all the languages.  Now commonly used.  Unicode Consortium.  65,535+ codes

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA C __ C __ A+B+ C ___________ __ A+B+ C A B

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA XYZ __ X __ Y _Z_Z X+Y+Z _____ X+Y+Z X.Y.Z ____ X.Y.Z _ _ _ X+Y+Z _ _ _ X.Y. Z

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Simplification

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  Slight Change:

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  We have already proved the above…  The equivalent logic circuit has also been designed.  Since, those two are same, it is the same to draw the simplified circuit.

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA __ A A LOGIC CIRCUIT OF __ A. B. C __ B B C __ A. B. C

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  ( ) 10 = (?) 2 

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  ( ) 2 =(?) 10

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  BINARY SUMMATION  1+1=0 (SUM)  1+1=1 (CARRY)  0+0=0  0+1=1  1+0=1

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  BINARY subtraction  1-1=0 (SUM)  1+1=1 (CARRY)  0-0=0  0-1=1

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  1100  1000  ______________________  10100

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA    ___________________ 

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA   1001  _______________  10000

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA    __________________   0-1=1;  Have a borrow from the left of next digit.  This borrow will be added with the left of next.

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  COMPLEMENT OF 0 is 1  COMPLEMENT OF 1 is 0

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA  9-4=5  WITHOUT COMPLEMENT  9 = 1001  -4 =  __________________  101

Engineer S. A. AHSAN RAJONKHULNA PUBLIC COLLEGE, KHULNA 9-4=5 WITH COMPLEMENTS 9 = = 1011 [4= 0100; So, 1’s complement of 4 is 1011 ] __________________ Since, there is carry, there should have 1 plus with the main result. Thus, The result is ____________ 0101 Since 5=0101, it is proved.