1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

(CSC 102) Discrete Structures Lecture 5.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
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.
التصميم المنطقي Second Course
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
CSE-221 Digital Logic Design (DLD)
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Lecture 3. Boolean Algebra, Logic Gates
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
CS 105 Digital Logic Design
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Chapter 4 Gates and Circuits.
Binary Addition CSC 103 September 17, 2007.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
CPS120: Introduction to Computer Science
1 CMSC 250 Chapter 1, con't., Combinatorial circuits.
1 Adders & Subtractors Adders –An adder is a combinational logic circuit that performs the addition of 2 binary numbers (A & B) to generate the sum (S)
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
How computers calculate How binary operations yield complex capabilities.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Combinational Circuits
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean Logic.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
1 CMSC 250 Circuits. 2 CMSC 250 Find Boolean formula for: p, q & r are the variables. pqroutput
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Invitation to Computer Science, C++ Version, Fourth Edition
Truth Table to Statement Form
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Combinational Circuits
CSCI-100 Introduction to Computing
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Combinational Circuits
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Invitation to Computer Science, Java Version, Third Edition
Copyright © Cengage Learning. All rights reserved.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Week 7: Gates and Circuits: PART II
Digital Logic.
Number Systems and Circuits for Addition
Logic Gates.
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Digital Logic Circuits
Combinational Circuits
Chapter-4 Combinational Logic
Copyright © Cengage Learning. All rights reserved.
XOR Function Logic Symbol  Description  Truth Table 
Copyright © Cengage Learning. All rights reserved.
Digital Circuits and Logic
Digital Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya

2 Introduction to Abstract Mathematics Simple electrical switching device Here are more complicated circuits

3 Introduction to Abstract Mathematics Serial and Parallel switches

4 Introduction to Abstract Mathematics Block Boxes and Gates An effective way to build more complicated circuits is connecting less complicated block box circuits Three such a gates: NOT-gate, AND-gate, OR-gate can be combined Black Box is specified by the signal input/output table.

5 Introduction to Abstract Mathematics Combinatorial circuits 1. Never combine two input wires 2. An input line can be split and used as input for two separate gates 3. Any output can be used as input 4. No output can be feed back to gate Example: Deterring input/output table for given circuit

6 Introduction to Abstract Mathematics Circuits and Boolean expressions Combinational circuit always correspond to some Boolean expression, such that input/output table of a table and a truth table of the expression are identical Construct equivalent boolean expression using disjunctive normal form as follows 1.for all outputs of 1 construct a conjunctive form based on the truth table row. 2. All conjunctive forms are united using disjunction

7 Introduction to Abstract Mathematics Example: Input/output table  P  Q  R  P  Q  ~R  P  ~ Q  ~ R The circuit corresponding to given table is the disjunctions of obtained below three conjunctive terms (P  Q  R)  (P  Q  ~R)  (P  ~ Q  ~ R)

8 Introduction to Abstract Mathematics Example: Here is the combinatorial circuit corresponding to the ( P  Q  R)  (P  Q  ~R)  (P  ~ Q  ~ R)

9 Introduction to Abstract Mathematics Example: Construct circuit which corresponds to Exclusive or of P and Q

10 Introduction to Abstract Mathematics Number Systems v Decimal number system There are only 10 digits: 0, 1, 2, 3,,4, 5, 6, 7, 8, 9 Decimal numbers are finite sequences of digits example: 376 = 3x x x10 0 = v Binary number system there are only two digits: 0 and 1 Binary numbers are finite sequences of 0’s and 1’s example: 1101 = 1x x x x2 0 = 1x8 + 1x4 + 1x1 = 13 v Conversion between decimal and binary numbers v Binary addition and subtraction base

11 Introduction to Abstract Mathematics Binary addition and subtraction Adding digits in base = = = = 00 2 Adding numbers in base two Circuits for computer addition

12 Introduction to Abstract Mathematics Digital Circuits for Addition: Full Adder – addition of two bits and a carry v Parallel Adder – addition of multi-bit numbers To construct a circuit to add multidigit binary numbers it is necessary to have circuit which computes sum of three binary digits. Such a circuit is called Full Adder

13 Introduction to Abstract Mathematics Digital Circuits for Addition: Parallel Adder – addition of two 3 binary digit numbers. Two full-adders and one half adder can be used to buld a circuit to add 2 binary 3 digit numbers PQR and STU to obtain WXYZ

14 Introduction to Abstract Mathematics Try: v Represent 43 in binary notation v Represent in decimal notation Add

15 Introduction to Abstract Mathematics Practice problems 1. Study the Sections 1.4 and 1.5 from your textbook. 2. Be sure that you understand all the examples discussed in class and in textbook. 3. Do the following problems from the textbook: Exercise 2.4, # 2, 4, 15, 19, 23. Exercise 2.5, # 3, 5, 8, 10, 14, 18.