Chapter 1: Introduction

Similar documents
Digital Design. Chapter 1: Introduction. Digital Design. Copyright 2006 Frank Vahid

Digital Design. Chapter 6: Optimizations and Tradeoffs

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Epson Projector Content Manager Operation Guide

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?

Engineer To Engineer Note

Small Business Networking

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Small Business Networking

EasyMP Network Projection Operation Guide

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Small Business Networking

How to Design REST API? Written Date : March 23, 2015

Small Business Networking

12-B FRACTIONS AND DECIMALS

Subtracting Fractions

Small Business Networking

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

x )Scales are the reciprocal of each other. e

COMP 423 lecture 11 Jan. 28, 2008

Small Business Networking

EECS 281: Homework #4 Due: Thursday, October 7, 2004

CSE 401 Midterm Exam 11/5/10 Sample Solution

Small Business Networking

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Dr. D.M. Akbar Hussain

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Easy Interactive Tools Ver.3.0 Operation Guide

Fig.25: the Role of LEX

Engineer To Engineer Note

Quiz2 45mins. Personal Number: Problem 1. (20pts) Here is an Table of Perl Regular Ex

Small Business Networking

Engineer To Engineer Note

Digital Design. Chapter 4: Datapath Components

Section 3.1: Sequences and Series

ECE 468/573 Midterm 1 September 28, 2012

MATH 25 CLASS 5 NOTES, SEP

Small Business Networking

Rational Numbers---Adding Fractions With Like Denominators.

Epson iprojection Operation Guide (Windows/Mac)

Tilt-Sensing with Kionix MEMS Accelerometers

Chapter 4: Datapath Components. Instructor: Dr. Hyunyoung Lee. Copyright Based on slides by Frank Vahid. Frank Vahid

EasyMP Multi PC Projection Operation Guide

INTRODUCTION TO SIMPLICIAL COMPLEXES

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.

such that the S i cover S, or equivalently S

Fall 2017 Midterm Exam 1 October 19, You may not use any books, notes, or electronic devices during this exam.

Assignment 4. Due 09/18/17

6.2 Volumes of Revolution: The Disk Method

Register Transfer Level (RTL) Design

LING/C SC/PSYC 438/538. Lecture 21 Sandiway Fong

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

vcloud Director Service Provider Admin Portal Guide vcloud Director 9.1

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7.

Essential Question What are some of the characteristics of the graph of a rational function?

Data Flow on a Queue Machine. Bruno R. Preiss. Copyright (c) 1987 by Bruno R. Preiss, P.Eng. All rights reserved.

CS 130 : Computer Systems - II. Shankar Balachandran Dept. of Computer Science & Engineering IIT Madras

Section 10.4 Hyperbolas

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

Reducing Costs with Duck Typing. Structural

EasyMP Network Projection Operation Guide

Engineer To Engineer Note

Theory of Computation CSE 105

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID:

RATIONAL EQUATION: APPLICATIONS & PROBLEM SOLVING

This Unit: Processor Design. What Is Control? Example: Control for sw. Example: Control for add

George Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables

Engineer-to-Engineer Note

ECE 274 Digital Logic. Digital Design. Datapath Components Subtractors, Two s Complement, Overflow, ALUs, Register Files Digital Design

Functor (1A) Young Won Lim 10/5/17

OPERATION MANUAL. DIGIFORCE 9307 PROFINET Integration into TIA Portal

OUTPUT DELIVERY SYSTEM

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFORMATICS 1 COMPUTATION & LOGIC INSTRUCTIONS TO CANDIDATES

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

Integration. October 25, 2016

Answer Key Lesson 6: Workshop: Angles and Lines

Functor (1A) Young Won Lim 8/2/17

L. Yaroslavsky. Fundamentals of Digital Image Processing. Course

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Tixeo compared to other videoconferencing solutions

Welch Allyn CardioPerfect Workstation Installation Guide

Engineer-to-Engineer Note

Agilent Mass Hunter Software

EasyMP Multi PC Projection Operation Guide

Matrices and Systems of Equations

SIMPLIFYING ALGEBRA PASSPORT.

CS201 Discussion 10 DRAWTREE + TRIES

Voltage Monitoring Products

File Manager Quick Reference Guide. June Prepared for the Mayo Clinic Enterprise Kahua Deployment

EasyMP Multi PC Projection Operation Guide

Chapter Spline Method of Interpolation More Examples Electrical Engineering

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES

Stack. A list whose end points are pointed by top and bottom

9 Graph Cutting Procedures

E201 USB Encoder Interface

Address/Data Control. Port latch. Multiplexer

Transcription:

Chpter : Introduction Slides to ccompny the textbook, First Edition, by, John Wiley nd Sons Publishers, 7. http://www.ddvhid.com Copyright 7 Instructors of courses requiring Vhid's textbook (published by John Wiley nd Sons) hve permission to modify nd use these slides for customry course-relted ctivities, subject to keeping Digitl this copyright Design notice in plce nd unmodified. These slides my be posted s unnimted pdf versions on publicly-ccessible course websites.. PowerPoint source (or pdf with nimtions) my not be posted to publicly-ccessible websites, but my be posted for students on internl protected sites or distributed directly to students by other electronic mens. Copyright 7 Instructors my mke printouts of the slides vilble to students for resonble photocopying chrge, without incurring roylties. Any other use requires explicit permission. Instructors my obtin PowerPoint Frnk source Vhid or obtin specil use permissions from Wiley see http://www.ddvhid.com for informtion.

Why Study?. Look under the hood of computers Solid understnding --> confidence, insight, even better progrmmer when wre of hrdwre resource issues Electronic devices becoming digitl Enbled by shrinking nd more cpble chips Enbles: Better devices: Better sound recorders, cmers, crs, cell phones, medicl devices,... New devices: Video gmes, PDAs,... Known s embedded systems Thousnds of new devices every yer Designers needed: Potentil creer direction Stellites Portble music plyers Cell phones DVD plyers Video recorders Musicl instruments Cmers TVs??? Copyright 7 995 997 999 3 5 7 Yers shown bove indicte when digitl version begn to dominte (Not the first yer tht digitl version ppered) Note: Slides with nimtion re denoted with smll red "" ner the nimted items

Anlog signl Wht Does Digitl Men? Inifinite possible vlues Ex: voltge on wire creted by microphone Digitl signl Finite possible vlues Ex: button pressed on keypd. Sound wves move the membrne, 3 4 microphone which moves the mgnet, which cretes current in the nerby wire vlue Copyright 7 nlog signl Possible vlues:.,.,.9,... infinite possibilities time vlue 4 3 digitl signl time Possible vlues:,,, 3, or 4. Tht s it. 3

Digitl Signls with Only Two Vlues: Binry Binry digitl signl -- only two possible vlues Typiclly represented s nd One binry digit is bit We ll only consider binry digitl signls Binry is populr becuse Trnsistors, the bsic digitl electric component, operte using two voltges (more in Chpt. ) Storing/trnsmitting one of two vlues is esier thn three or more (e.g., loud beep or quiet beep, reflection or no reflection) vlue time Copyright 7 4

Exmple of Digitiztion Benefit Anlog signl (e.g., udio) my lose qulity Voltge levels not sved/copied/trnsmitted perfectly Digitized version enbles ner-perfect sve/cpy/trn. Smple voltge t prticulr rte, sve smple using bit encoding Voltge levels still not kept perfectly But we cn distinguish s from s Let bit encoding be: V: V: 3 V: Copyright 7 Digitized signl not perfect re-cretion, but higher smpling rte nd more bits per encoding brings closer. Volts Volts Volts 3 3 originl signl time d digitized signl time d lengthy trnsmission (e.g, cell phone) lengthy trnsmission (e.g, cell phone) sme 3 received signl time How fix -- higher, lower,? time Cn fix -- esily distinguish s nd s, restore time 5

Digitized Audio: Compression Benefit Digitized udio cn be compressed e.g., MP3s A CD cn hold bout songs uncompressed, but bout compressed Compression lso done on digitized pictures (jpeg), movies (mpeg), nd more Digitiztion hs mny other benefits too Copyright 7 Exmple compression scheme: --> --> X --> X 6

How Do We Encode Dt s Binry for Our Digitl nlog phenomen electric signl AD digitl dt digitl dt sensors nd other inputs Digitl System DA electric signl ctutors nd other outputs digitl dt digitl dt Copyright 7 System? Some inputs inherently binry Button: not pressed (), pressed () Some inputs inherently digitl Just need encoding in binry e.g., multi-button input: encode red=, blue=,... Some inputs nlog Need nlog-to-digitl conversion As done in erlier slide -- smple nd encode with bits red red red button blue blue blue ir green green green temperture sensor blck blck blck 33 degrees 7

How to Encode Text: ASCII, Unicode ASCII: 7- (or 8-) bit encoding of ech letter, number, or symbol Unicode: Incresingly populr 6-bit bit encoding Encodes chrcters from vrious world lnguges Symbol R S T L N E. <tb> Encoding Symbol r s t l n e 9! <spce> Encoding Question: Wht does this ASCII bit sequence represent? R E S T Copyright 7 Note: smll red () in slide indictes nimtion 8

How to Encode Numbers: Binry Numbers Ech position represents quntity; symbol in position mens how mny of tht quntity Bse ten (deciml) Ten symbols:,,,..., 8, nd 9 More thn 9 -- next position So ech position power of Nothing specil bout bse -- used becuse we hve fingers Bse two (binry) Two symbols: nd More thn -- next position So ech position power of Copyright 7 5 3 4 3 4 3 Q: How much? + = 4+ = 5 9

How to Encode Numbers: Binry Numbers Working with binry numbers In bse ten, helps to know powers of one, ten, hundred, thousnd, ten thousnd,... In bse two, helps to know powers of one, two, four, eight, sixteen, thirty two, sixty four, one hundred twenty eight (Note: unlike bse ten, we don t hve common nmes, like thousnd, for ech position in bse ten -- so we use the bse ten nme) Q: count up by powers of two 9 8 7 6 5 4 3 5 56 8 64 3 6 8 4 5 56 8 64 3 6 8 4 Copyright 7

Converting from Deciml to Binry Numbers: Subtrction Method (Esy for Humns) Gol Get the binry weights to dd up to the deciml quntity Work from left to right (Right to left my fill in s tht shouldn t hve been there try it). Desired deciml number: 3 6 8 4 =3 3 6 8 4 3 6 8 4 too much =6 3 6 8 4 too much =8 ok, keep going =8+4= 3 6 8 4 DONE Copyright 7 nswer 3 6 8 4

Converting from Deciml to Binry Numbers: Subtrction Method (Esy for Humns) Subtrction method To mke the job esier (especilly for big numbers), we cn just subtrct selected binry weight from the (remining) quntity Then, we hve new remining quntity, nd we strt gin (from the present binry position) Stop when remining quntity is Remining quntity: 3 6 8 4 3 is too much 3 6 8 4 6 is too much 3 6 8 4 8 = 4 3 6 8 4 4-4= 3 6 8 4 DONE Copyright 7 nswer 3 6 8 4

Converting from Deciml to Binry Numbers: Subtrction Method Exmple Q: Convert the number 3 from deciml to binry A: Remining quntity Binry Number 3 3 6 8 4 3-6 7 7-4 3 3 6 8 4 3 6 8 4 8 is more thn 7, cn t use 4-3 6 8 4 Copyright 7-3 6 8 4 Done! 3 in deciml is in binry. 3

Converting from Deciml to Binry Numbers: Division Method (Good for Computers) Divide deciml number by nd insert reminder into new binry number. Continue dividing quotient by until the quotient is. Exmple: Convert deciml number to binry Deciml Number 6 divide by - insert reminder Binry Number Copyright 7 Continue dividing since quotient (6) is greter thn 3 6 divide by -6 insert reminder Continue dividing since quotient (3) is greter thn 4

Converting from Deciml to Binry Numbers: Division Method (Good for Computers) Exmple: Convert deciml number to binry (continued) Deciml Number 3 divide by - insert reminder Binry Number 4 Continue dividing since quotient () is greter thn divide by 8 - insert reminder 4 Since quotient is, we cn conclude tht is in binry Copyright 7 5

Bse Sixteen: Another Bse Sometimes Used by ers hex 8 A F 6 4 6 3 6 6 6 8 A F binry hex binry Nice becuse ech position represents four bse two positions Used s compct mens to write binry numbers Known s hexdeciml, or just hex 8 9 3 A B 4 5 C D Q: Write in hex 6 7 E F F Copyright 7 6

M r op r o c Implementing Digitl Systems: Progrmming Microprocessors Vs. Designing Digitl Circuits Desired motion-t-night detector Progrmmed microprocessor Custom designed digitl circuit.3 Microprocessors common choice to implement digitl system Esy to progrm Chep (s low s $) Avilble now I I I I3 I4 I5 I6 I7 P P P P3 P4 P5 P6 P7 void min() { while () { P = I &&!I; // F = nd!b, } } b F 6: 7:57:6 9:9: time Copyright 7 7

: When Microprocessors Aren t Good With microprocessors so esy, chep, nd vilble, why design digitl circuit? Microprocessor my be too slow Or too big, power hungry, or costly Smple digitl cmer tsk execution times (in seconds) on microprocessor versus digitl circuit: Enough () (b) Imge Sensor Memory Imge Sensor Memory Microprocessor (Red, Compress, nd Store) Red circuit Q: How long for ech implementtion option? Compress circuit Store circuit 5+8+ =4 sec.+.5+.8 =.4 sec Tsk Microprocessor Custom Digitl Circuit Red 5. Compress 8.5 Store.8 Copyright 7 (c) Imge Sensor Memory Red circuit Compress circuit Microprocessor (Store).+.5+ =.6 sec Good compromise 8

Digitl systems surround us Chpter Summry Inside computers Inside huge vriety of other electronic devices (embedded systems) Digitl systems use s nd s Encoding nlog signls to digitl cn provide mny benefits e.g., udio -- higher-qulity storge/trnsmission, compression, etc. Encoding integers s s nd s: Binry numbers Microprocessors (themselves digitl) cn implement mny digitl systems esily nd inexpensively But often not good enough -- need custom digitl circuits Copyright 7 9