Computer Code.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Logic Gates.
Chapter 2 Logic Circuits.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapter 2 -Part 2.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
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.
Boolean Algebra. Binary Logic and Gates Binary variables take on one of two values. Logical operators operate on binary values and binary variables. Basic.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
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.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Binary Logic and Gates Binary variables take on one of two values.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Systems: Boolean Algebra and Logic Gates
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
Combinational Logic 1.
1 Binary Codes Digital systems use 2-state devices that understand only 2 binary values (0 and 1). But we communicate using various symbols and methods.
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.
KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Dr. ClincyLecture Slide 1 CS6020- Chapter 3 (3A and ) Dr. Clincy Professor of CS First Exam - Tuesday, September 6th Coverage: All subjects up to.
Logic gates.
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Boolean Algebra & Logic Gates
Chapter 3 - Binary Numbering System
Chapter 3 Notes – Part II Review Questions
Number System.
Boolean Algebra.
CS Chapter 3 (3A and ) Part 1 of 8
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
Gate Circuits and Boolean Equations
Overview Part 1 – Gate Circuits and Boolean Equations
Princess Sumaya University
CS Chapter 3 (3A and ) Part 1 of 8
Components of Computer
ECE/CS 352 Digital Systems Fundamentals
University of Gujrat Department of Computer Science
Boolean Algebra Why study Boolean Algebra?
Dr. Clincy Professor of CS
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
Basic Logic Gates 1.
Chapter 2 Boolean Algebra and Logic Gate
COE 202: Digital Logic Design Combinational Logic Part 1
Dr. Clincy Professor of CS
ECB2212-Digital Electronics Boolean algebra
Logic Circuits I Lecture 3.
Lab Instructors will overview the MSP430
Introductory Concepts
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Boolean Algebra and Gate Networks
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Presentation transcript:

Computer Code

Introduction The Language of electronic component is binary All numeric and non-numeric data must be converted into binary language so that computer can understand it Representation of all numeric and non-numeric data in binary digits is known as computer code Computer code is represented in different coding schemes

Coding Schemes BCD Code ASCII Code EBCDIC Code Unicode

BCD Code Stands for Binary Coded Decimal Used to represent decimal digits in binary 4-bit code Each decimal digit is represented by 4 binary digits Used by early computers

BCD Code http://electronicsarea.com/bcd-code/

Example http://electronicsarea.com/bcd-code/

Example http://electronicsarea.com/bcd-code/

ASCII Code American Standard Code for Information Interchange Most widely used coding scheme for personal computers 7-bit code can represent 128 characters Not enough to represent some graphical characters displayed on computer screens An 8 bit code can represent 256 characters Extended 128 unique codes represent graphic symbols

ASCII Code http://www.gjszlin.cz/ivt/esf/ostatni-sin/kodovani-textu.php?lang=1

Example Character Decimal Code Binary Code B 66 01000010 i 105 01101001 n 110 01101110 a 97 01100001 r 114 01110010 y 121 01111001

EBCDIC Code Extended Binary Coded Decimal Interchange Code 8-bit code Divided into two group of 4 bits Each group cam represent one hexadecimal digit Normally used in mainframe computers Can represent 256 characters

EBCDIC Code http://www.rtty.com/CODECARD/codecrd1.htm

Unicode 16 bit code Represent 65536 characters Started to replace ASCII code Can represent the characters of all languages in the world

Boolean Algebra Algebra of logic Also called logical algebra or switching algebra Uses symbols to represent logical statements instead of words Consists of different rules to manipulate rules Similar to calculus

Boolean Algebra Used in the designing of logic circuits in computer Computer chips consists of transistors that are arranged in logical gates Each gate performs a single logical operation Computer performs logical operation by processing electrical pulses Design of a particular circuit is based on a set of logical statements Results of boolean algebra can be true or false The digit 1 indicates true and 0 indicates false result

Elements of Boolean Algebra An expression in Boolean Algebra can be formed using different elements of Boolean algebra Different elements of Boolean algebra are as follows: Boolean Variables Boolean Constants Logical Operators Parentheses

Logical Operators in Boolean Algebra Symbols used to perform logical operations are called logical operators Different logical operators are: AND OR NOT

Basic Logic Gates Many basic functions of the arithmetic and control units are carried out by logic gates Each gate accepts input and produces an output NOT Gate AND Gate OR Gate NAND Gate NOR Gate XOR Gate XNOR Gate

Boolean Expression Logical statement that is either true or false Consists of different elements of Boolean Algebra

Logic Diagrams and Expressions Logic Equation Z Y X F + = Truth Table 1 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 X Y Z Z Y X F × + = X Y F Z Logic Diagram Boolean equations, truth tables and logic diagrams describe the same function! Truth tables are unique, but expressions and logic diagrams are not. This gives flexibility in implementing functions.

Boolean Algebra X + 0 = + 1 X + X X = X X = . 0 X . X Invented by George Boole in 1854 An algebraic structure defined by a set B = {0, 1}, together with two binary operators (+ and ·) and a unary operator ( ) Identity element 1. 3. 5. 7. 9. X + 0 = + 1 X + X X = X 2. 4. 6. 8. X . 1 = . 0 X . X Idempotence Complement Involution 10. 12. 14. 16. X + Y Y + X = (X + Y) Z + X + (Y Z) X(Y + XY XZ X . Y 11. 13. 15. 17. XY YX = (XY) Z X(Y Z) X + YZ (X + Y) (X + Z) X . Y X + Y Commutative Associative Distributive DeMorgan ’ s

References Slides Taken From: www.cse.yorku.ca/~mack/1011/01.NumberSystems.p pt Introduction to Information Technology by Riaz Shahid, CM Aslam and Safia Iftikhar The Concepts of Information Technology by Imran Saeed, Ahsan Raza, Tariq Mehmood and Zafar Hussain