Gray Code. ASCII Character Code. To convert the number from binary to Gray code the relations must be known. 1 1 = = = = 0

Similar documents
CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

MC9211 Computer Organization

Chapter 2. Boolean Algebra and Logic Gates

This form sometimes used in logic circuit, example:

Digital Circuit And Logic Design I. Lecture 3

Computer Organization I

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

Chapter 2 Boolean Algebra and Logic Gates

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Chapter 2 Boolean Algebra and Logic Gates

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

WEEK 2.1 BOOLEAN ALGEBRA

Chapter 2 Combinational Logic Circuits

Boolean Algebra and Logic Gates

CS 226: Digital Logic Design

Combinational Logic Design Principles

Chapter 2: Switching Algebra and Logic Circuits

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Digital Logic Design. Malik Najmus Siraj

Chapter 2 : Boolean Algebra and Logic Gates

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

CHAPTER III BOOLEAN ALGEBRA

Boolean Algebra and Logic Simplification

211: Computer Architecture Summer 2016

Boolean Algebra & Logic Gates. By : Ali Mustafa

Slides for Lecture 10

Combinational Logic Circuits Part II -Theoretical Foundations

Number System conversions

CHAPTER III BOOLEAN ALGEBRA

EEE130 Digital Electronics I Lecture #4

Chapter 2 Combinational Logic Circuits

Combinatorial Logic Design Principles

Learning Objectives. Boolean Algebra. In this chapter you will learn about:

Combinational Logic. Review of Combinational Logic 1

Logic Design. Chapter 2: Introduction to Logic Circuits

CPE100: Digital Logic Design I

Lecture 2 Review on Digital Logic (Part 1)

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

ENG2410 Digital Design Combinational Logic Circuits

Binary logic consists of binary variables and logical operations. The variables are

Week-I. Combinational Logic & Circuits

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Digital Design. Digital Design

Chapter 2 Boolean Algebra and Logic Gates

Unit 2 Session - 6 Combinational Logic Circuits

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

Combinational Logic Fundamentals

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Chapter 2 Boolean Algebra and Logic Gates

Chapter 2 Combinational Logic Circuits

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Digital Systems and Information Part II

Unit 2 Boolean Algebra

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

Administrative Notes. Chapter 2 <9>

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

Signals and Systems Digital Logic System

Chapter 2: Boolean Algebra and Logic Gates

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Chapter-2 BOOLEAN ALGEBRA

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Chapter 2 Combinational Logic Circuits

Digital Logic Design. Combinational Logic

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

EECS Variable Logic Functions

14:332:231 DIGITAL LOGIC DESIGN. Combinational Circuit Synthesis

Lecture 6: Gate Level Minimization Syed M. Mahmud, Ph.D ECE Department Wayne State University

Unit 8A Computer Organization. Boolean Logic and Gates

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Review for Test 1 : Ch1 5

Lecture 4: More Boolean Algebra

CHAPTER1: Digital Logic Circuits Combination Circuits

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Boolean Algebra. Philipp Koehn. 9 September 2016

Goals for Lecture. Binary Logic and Gates (MK 2.1) Binary Variables. Notation Examples. Logical Operations

Logic Gate Level. Part 2

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Fundamentals of Computer Systems

Minimization techniques

Every time has a value associated with it, not just some times. A variable can take on any value within a range

ELCT201: DIGITAL LOGIC DESIGN

Ch 2. Combinational Logic. II - Combinational Logic Contemporary Logic Design 1

University of Technology

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Boolean Algebra and Logic Gates Chapter 2. Topics. Boolean Algebra 9/21/10. EECE 256 Dr. Sidney Fels Steven Oldridge

Switches: basic element of physical implementations

BOOLEAN ALGEBRA CLASS XII. Presented By : Dinesh Patel PGT CS KV IIT Powai

Boolean Algebra CHAPTER 15

Standard Expression Forms

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Chapter 7 Logic Circuits

Computer Organization: Boolean Logic

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 1 Gate Circuits and Boolean Equations

Transcription:

Gray Code To convert the number from binary to Gray code the relations must be known. = = = = Ex Convert the binary number ( ) into Gray Code? bit األول من جهة اليسار ومن ثم تطبق Gray لتحويل الرقم من صيغة ال Binary العالقات السابقة الى صيغة يتم انزال ال ( ) 2 = ( ) G bit ألرجاع الرقم من صيغة Gray والرقم الذي يليه الى ال Binary يتم انزال اول من جهة اليسار وتطبيق العالقات بين الناتج ASCII Character Code The standard binary code for the alphanumeric characters is called ASCII (American Standard Code for Information Interchange). It uses 7 bits to code 28 characters, as shown in the table. The seven bits of the code are designed by B through B7, with B7 being the most significant bit. Note that the most significant three bits of the code determine the column of the table and the least significant four bits the row of the table. For example, the letter A is represented n ASCII as ( ) ( column, row ). The ASCII code contains 94 2

characters that can print and 34 nonprinting used in control functions. The printing characters consist of 26 uppercase letters, the 26 lowercase letters, numerals, and 32 special printable character such as %, @ and $. Ex What are the character corresponding to the ASCII code? ( )ASCII ( )ASCII = JOHN DEV Binary Logic and Logic Gates Binary logic is used to describe, in mathematical way, the manipulation and processing of binary information. It is suited for the analysis and design of digital system. The logic circuits (gates) establish the logical manipulation. The logic gates are:- - AND Gate Input =. OR Gate Input = + 2

3 Not Gate = input x z 4 Buffer Gate = input x z 5 NAND Gate Input =.

6 NOR Gate Input = ( + ) 7 Exclusive OR Gate = = = + Input 8 - Exclusive NOR Gate Input =. =. = + Boolean Algebra A useful mathematical system for specifying and transforming logic functions, Boolean algebra has six theorems and four postulates The. a - + = b -. = The. 2 a - + = b -. = The. 3 ( ) = involution The. 4 a + ( + ) = ( + ) + associative b - ( ) = ( ) 2

The. 5 a ( + ) =. Demorgan theorm b - ( ) = + The. 6 a - + = b - ( + ) = Absorption Post. a + = b. = Post. 2 a - + = b -. = Post. 3 a - + = + b = commutative Post.4 a ( + ) = + b - + = ( + ) ( + ) Distributive Boolean Function Evaluation A binary variable can take the value of or. a Boolean function is an expression formed with binary variable, the two binary operators OR and AND, the NOT operator, parentheses and equal sign. For a given value of the variables, the function can be either or, for example the following Boolean functions:- F = F2 = + Any Boolean function can be represented in a truth table. The number of rows in the table is n 2, where n is the number of binary variables in the function. The binary numbers is then counting from to n 2 -. The truth table for the above functions: Inputs s F F2 2

The Boolean function may be transformed to logic diagram composed of AND, OR and NOT gates. Complementing Functions: Use DeMorgan's Theorem to complement a function:.- Interchange AND and OR operators 2.- Complement each constant value and literal Ex Fined the complement of the functions:- F = + 2 F2 = ( + ) Ex Apply Demorgan theorem to the following expressions - A B ( C D + E F ) 2- ( A + B C + C D ) + B C Canonical and Standard Forms Minterms and Maxterms: Any Boolean function can be expressed in a canonical form, canonical form include:- - Sum of Minterms ( SOM) 2- Product of Maxterms (POM) In Minterms each variable being primed if the corresponding bit of the binary number is and unprimed if a.in Maxters each variable being unprimed if the corresponding bit of the binary number is and primed if a. 2

Minterms Designation Maxterms Designation M + + M M + + M M2 + + M2 M3 + + M3 M4 + + M4 M5 + + M5 M6 + + M6 M7 + + M7 The Sum of Minterms of the function is expressed by thr ORing to the minterms when the output is ( F = ). The Product of Maxterms of the function is expressed by ANDing to the maxterms when the output is ( F = ). Ex Find the Sum of Minterms 2 Product of Maxterms of F :- F : Sum of Minterms ( ) + ( ) + ( ) = M + M4 + M7 = Σ (, 4, 7 ) 2- Product of Maxterms ( + + ). ( + + ). ( + + ). ( + + ). ( + + ) = M. M2. M3. M5. M6 = Π (, 2, 3, 5, 6 ) 2

Ex Express each of the following functions in Canonical Forms F F2 Ex Express the Boolean function F = A + B C in Sum of Minterms:- The function has three variables A, B, C. the first term missing two variables A = A. by. = = A ( B + B ) by + = = A B + A B = A B ( C + C ) + A B ( C + C ) = A B C + A B C + A B C + A B C The second term missing one variable B C = B C ( A + A ) = A B C + A B C F ( A, B, C ) = A B C + A B C + A B C + A B C + A B C = + + + + = m7 + m6 + m5 + m4 + m = Σ (, 4, 5, 6, 7 ) Ex Express the Boolean function F = + in product Maxterms First the function must converted into OR terms using distributed low F = + = ( + ) ( + ) = ( + ) ( + ) + ( + ) ( + ) = ( + ) ( + ) ( + ) Each term is missing one variable 2

+ = + + by + = = + + by. = = ( + + ) ( + + ) by + = ( + ) ( + ) + = + + = + + = ( + + ) ( + + ) + = + + = + + = ( + + ) ( + + ) = ( + + ) ( + + ) F = ( + + ) ( + + ) ( + + ) ( + + ) = M4. M5. M. M2 = Π (, 2, 4.5 ) Ex Express the boolean function F in - Sum of Minterms 2 Product of Maxterms F = A ( B + C ) Sum of Minterms F ( A, B, C ) = A ( B + C ) = A B + A C The first term missing one variable A B = A B. = A B ( C + C ) = A B C + A B C The second term missing one variable A C = A C. = A C ( B + B ) = A B C + A B C F ( A, B, C ) = A B C + A B C + A B C = + + = M3 + M2 + M (, 2, 3 ) 2 Product of Maxterms F ( A, B, C ) = A ( B + C ) The first term missing two variables A = A + = A + B B = ( A + B ) ( A + B ) = ( A + B + ) ( A + B + ) = ( A + B + C C ) ( A + B + C C ) 2

= ( A + B + C ) ( A + B + C ) ( A + B + C ) ( A + B + C ) The second term missing one variable B + C = B + C + = B + C + A A = ( B + C + A ) ( B + C + A ) = ( A + B + C ) ( A + B + C ) F ( A, B, C ) = ( A + B + C ) ( A + B + C ) ( A + B + C ) ( A + B + C ) ( A + B + C ) = M4. M5. M6. M7. M = Π (, 4, 5, 6, 7 ) Ex express the function F in Sum of Minterms and Product of Maxterms and simplify it F Sum of Minterms F (,, ) = + + + + = ( + ) + + ( + ) = + + = ( + ) + = + = + = ( + ) ( + ) = + Standard Forms Another way to express Boolean function is in standard form. In this form, the terms form the function may contain one, two, or any number of literals, there are two types of standard form: Sum of Product: this expression contain AND terms, called product term, of one or more literals each, and the sum ( OR ing ) between these terms 2

Ex F = + + 2 Product of Sum: this expression contain OR terms, called sum term, of one or more literals each, and the product ( AND ing ) between these terms Ex F =. ( + ). ( + + + W ) Ex F = ( A B + C D ) ( A B + C D ) It a non standard form and it can converted to standard form by using distributed law: F = A B C D + A B C D 22