Working with DIGITAL Information

Slides:



Advertisements
Similar presentations
CSE 311: Foundations of Computing Fall 2013 Lecture 3: Logic and Boolean algebra.
Advertisements

1 Microprocessors vs. Custom Digital Circuits Why would anyone ever need to design new digital circuits? Microprocessors are readily available, inexpensive,
Microprocessors vs. Custom Digital Circuits
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
Digital Design Copyright © 2007 Frank Vahid 1 Digital Design Chapter 1: Introduction Slides to accompany the textbook Digital Design, First Edition, by.
1 Digital Logic
Logic Design Logic design deals with the basic concepts and tools used to design digital hardware consisting of logic circuits Digital devices: airbags,
1 Logic Design Logic design deals with the basic concepts and tools used to design digital hardware consisting of logic circuits Digital devices: airbags,
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
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.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
CS231 Fundamentals1 Fundamentals What kind of data do computers work with? – Deep down inside, it’s all 1s and 0s What can you do with 1s and 0s? – Boolean.
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
Boolean Algebra – I. Outline  Introduction  Digital circuits  Boolean Algebra  Two-Valued Boolean Algebra  Boolean Algebra Postulates  Precedence.
©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.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Compsci Today’s topics l Binary Numbers  Brookshear l Slides from Prof. Marti Hearst of UC Berkeley SIMS l Upcoming  Networks Interactive.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Chapter 7 Logic Circuits 1.State the advantages of digital technology compared to analog technology. 2. Understand the terminology of digital circuits.
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.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
Boolean Functions and Boolean Algebra Laxmikant Kale.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
1 Binary Signals Logic gate circuits are designed to input and output only two types of signals: “high” (1) and “low” (0), as represented by a variable.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Logic gates.
Computer Architecture & Operations I
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
Invitation to Computer Science, C++ Version, Fourth Edition
Digital Logic.
CS2100 Computer Organisation
Morgan Kaufmann Publishers
Logic Gates & Boolean Algebra
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Computer Code.
Discrete Mathematics Numbering System.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
Logic Gates.
CSCI-100 Introduction to Computing
Overview Part 1 – Gate Circuits and Boolean Equations
TN 221: DIGITAL ELECTRONICS 1
Fundamentals & Ethics of Information Systems IS 201
Invitation to Computer Science, Java Version, Third Edition
Lecture 10: Floating Point, Digital Design
CHAPTER 2 Boolean Algebra
CSE 311 Foundations of Computing I
BINARY STORAGE AND REGISTERS
CSE 370 – Winter Combinational Logic - 1
The Building Blocks: Binary Numbers, Boolean Logic, and Gates
For OCR GCSE Computing Unit 1 - Theory
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
Logic Gates.
Chapter 2 Introduction to Logic Circuits
Expressions.
ECE 352 Digital System Fundamentals
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
CSE 370 – Winter Number syst.; Logic functions- 1
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
ECE 120 Midterm 2 HKN Review Session.
Presentation transcript:

Working with DIGITAL Information Represent Knowledge Digitally Perform Simple Reasoning Perform Logical Operations Write Formulas in Boolean Logic How Boolean Formulas are implemented in machines Perform Arithmetic Operations

What Does “Digital” Mean? Analog signal Inifinite possible values Ex: voltage on a wire created by microphone Digital signal Finite possible values Ex: button pressed on a keypad 3 4 2 1 digital signal analog signal Possible values: 1.00, 1.01, 2.0000009, ... infinite possibilities Possible values: 0, 1, 2, 3, or 4. That’s it. 4 value time value time 3 2 1

Example of Digitization Benefit Analog signal (e.g., audio) may lose quality Voltage levels not saved/copied/transmitted perfectly Digitized version enables near-perfect save/cpy/trn. “Sample” voltage at particular rate, save sample using bit encoding Voltage levels still not kept perfectly But we can distinguish 0s from 1s Volts 1 2 3 original signal time 1 2 3 received signal How fix -- higher, lower, ? 11 11 Digitized signal not perfect re-creation, but higher sampling rate and more bits per encoding brings closer. 10 10 lengthy transmission (e.g, cell phone) 01 time Volts digitized signal time 1 a2d time Can fix -- easily distinguish 0s and 1s, restore 1 lengthy transmission (e.g, cell phone) 01 10 11 10 11 same Let bit encoding be: 1 V: “01” 2 V: “10” 3 V: “11” Volts 1 2 3 d2a time

Digitized Audio: Compression Benefit Digitized audio can be compressed e.g., MP3s A CD can hold about 20 songs uncompressed, but about 200 compressed Compression also done on digitized pictures (jpeg), movies (mpeg), and more Digitization has many other benefits too Example compression scheme: 00 --> 0000000000 01 --> 1111111111 1X --> X 0000000000 0000000000 0000001111 1111111111 00 00 10000001111 01

Benefits of Digital Reliable storage (CD, DVD, …) Compression (MP3, JPEG, …) Reliable transmission (cell phones, digital TVs, …) Conversion from Analog to Digital Technology

Digital Encoding for All Information We can represent any digital data using only binary digits (0 and 1), or bits. ASCII encoding: A 01000001 B 01000010 … … Why binary numbers? Base ten: decimal numbers (0,1,2,3,4,5,6,7,8,9) Base two: binary numbers (0,1) Base eight: octal numbers (0,1,2,3,4,5,6,7) Base sixteen: hexadecimal numbers (0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)

Process Stored Digital Information

Combinational Logic Circuits A digital circuit whose output depends solely on the present combination of input values is called a combinational circuit Logic gates – building blocks of logic circuits AND OR NOT Boolean Algebra Boolean algebra is a branch of mathematics that uses variables whose values can only be 1 or 0 (“true” or “false”, respectively) and whose operators, like AND, OR, NOT, operate on such variables and return 1 or 0. We can build circuits by doing math

Relating Boolean Algebra to Digital Information Logic Gates Truth Tables 1 y x F 1 x y F 1 F x Transistor Circuits

Boolean Algebra Notation By defining logic gates based on Boolean algebra, we can use algebraic methods to manipulate digital circuits Start with notation: Writing a AND b, a OR b, and NOT(a) is cumbersome Use symbols: a * b, a + b, and a’ (in fact, a * b can be just ab). Original: w = (p AND NOT(s) AND k) OR t New: w = ps’k + t Spoken as “w equals p and s prime and k, or t” Or even just “w equals p s prime k, or t” s’ known as “complement of s” While symbols come from regular algebra, don’t say “times” or “plus” Boolean algebra precedence, highest precedence first. Symbol Name Description ( ) Parentheses Evaluate expressions nested in parentheses first ’ NOT Evaluate from left to right * AND Evaluate from left to right + OR Evaluate from left to right

Boolean Algebra Properties Commutative a + b = b + a a * b = b * a Distributive a * (b + c) = a * b + a * c a + (b * c) = (a + b) * (a + c) Associative (a + b) + c = a + (b + c) (a * b) * c = a * (b * c) Identity 0 + a = a + 0 = a 1 * a = a * 1 = a Complement a + a’ = 1 a * a’ = 0

Boolean Algebra: Additional Properties Null elements a + 1 = 1 a * 0 = 0 Idempotent Law a + a = a a * a = a Involution Law (a’)’ = a De Morgan’s Law (a + b)’ = a’ b’ (a b)’ = a’ + b’ f = c’ (h + p) f = h c’ + h’ p c’

Boolean Functions Converting a truth table to an equation Boolean function is a mapping of each possible combination of input values to either 0 or 1. Boolean function can be represented as an equation, a circuit, and as a truth table. Converting a truth table to an equation F = a b + a’ F = a’ b’ + a’ b + a b For any function, there may be many equivalent equations, and many equivalent circuits, but there is only one truth table!