Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

Similar documents
DIGITAL SYSTEM DESIGN

Chapter 1. Digital Systems and Binary Numbers

BINARY SYSTEM. Binary system is used in digital systems because it is:

Logic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information

Digital Fundamentals

Digital Systems COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

CS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq

CHW 261: Logic Design

Lecture (02) Operations on numbering systems

Korea University of Technology and Education

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

Chapter 1 Review of Number Systems

Numeral Systems. -Numeral System -Positional systems -Decimal -Binary -Octal. Subjects:

Digital Systems and Binary Numbers

Lecture (03) Binary Codes Registers and Logic Gates

EEM 232 Digital System I

MACHINE LEVEL REPRESENTATION OF DATA

D I G I T A L C I R C U I T S E E

Introduction to Numbering Systems

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

Chapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.

COE 202: Digital Logic Design Number Systems Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

EE292: Fundamentals of ECE

Number Systems CHAPTER Positional Number Systems

DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) COURSE / CODE NUMBER SYSTEM

Digital Systems and Binary Numbers

Chapter 2: Number Systems

2. MACHINE REPRESENTATION OF TYPICAL ARITHMETIC DATA FORMATS (NATURAL AND INTEGER NUMBERS).

Digital Fundamentals

Numbering systems. Dr Abu Arqoub

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

Ms Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES. 1.1 Introduction

Microcomputers. Outline. Number Systems and Digital Logic Review

Number Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

ETGG1801 Game Programming Foundations I Andrew Holbrook Fall Lecture 0 - Introduction to Computers 1

Logic Circuits I ECE 1411 Thursday 4:45pm-7:20pm. Nathan Pihlstrom.

TOPIC: NUMBER SYSTEMS

NUMBER SYSTEMS AND CODES

Moodle WILLINGDON COLLEGE SANGLI. ELECTRONICS (B. Sc.-I) Introduction to Number System

Slide Set 1. for ENEL 339 Fall 2014 Lecture Section 02. Steve Norman, PhD, PEng

ECE 20B, Winter Purpose of Course. Introduction to Electrical Engineering, II. Administration

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 1 DLD P VIDYA SAGAR

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Number System. Introduction. Decimal Numbers

History of Computing. Ahmed Sallam 11/28/2014 1

Binary. Hexadecimal BINARY CODED DECIMAL

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-278: Digital Logic Design Fall Notes - Unit 4. hundreds.

Lecture 2: Number Systems

UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES

QUIZ ch.1. 1 st generation 2 nd generation 3 rd generation 4 th generation 5 th generation Rock s Law Moore s Law

Chapter 2. Data Representation in Computer Systems

CHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER

Octal & Hexadecimal Number Systems. Digital Electronics

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

Level ISA3: Information Representation

Review of Number Systems

DIGITAL ARITHMETIC: OPERATIONS AND CIRCUITS

Logic Design: Part 2

Chapter Overview. Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Printing this Slide Show

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

Binary Systems and Codes

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 01, SPRING 2013

Digital Techniques. Lecture 1. 1 st Class

Electronics Engineering ECE / E & T

Chapter 2. Binary Values and Number Systems

Positional Number System

Learning the Binary System

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1

2 Number Systems 2.1. Foundations of Computer Science Cengage Learning

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

1. NUMBER SYSTEMS USED IN COMPUTING: THE BINARY NUMBER SYSTEM

Computer Organization

Digital Logic Design Exercises. Assignment 1

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Course Syllabus [1/2]

Digital Fundamentals

LOGIC CIRCUITS. Kirti P_Didital Design 1

CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS

Final Labs and Tutors

Outline. What Digit? => Number System. Decimal (base 10) Significant Digits. Lect 03 Number System, Gates, Boolean Algebra. CS221: Digital Design

Chap 1. Digital Computers and Information

CMPE223/CMSE222 Digital Logic Design. Positional representation

Number representations

Binary Addition. Add the binary numbers and and show the equivalent decimal addition.

User. Application program. Interfaces. Operating system. Hardware

Excerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997

QUIZ: Generations of computer technology. Hardware:

Principles of Computer Architecture. Chapter 3: Arithmetic

Computer Logical Organization Tutorial

ENE 334 Microprocessors

Memory Addressing, Binary, and Hexadecimal Review

Chapter 1 Preliminaries

Digital Systems and Binary Numbers

Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee

CHAPTER 2 Number Systems

Transcription:

// EE : INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN Lecture : Introduction /9/ Avinash Kodi, kodi@ohio.edu Agenda Go over the syllabus Introduction ti to Digital it Systems

// Why Digital Systems? Obvious reason Implementation ti basis for all modern computing, communication and control devices (C ) Building larger things from smaller components Faster, cheaper, more efficient than analog More reasons Inherent parallelism in hardware In addition to serial software design Binary Representation Binary Information digits (BITS) or n bits specify M = n different values Or M values specified by n = log M bits

// The Digital-Binary World 5 Easy to process binary data Digital logic where voltage <.5 V is a and >. 5 V is a Easy to store binary data Fast disk and CD-ROM storage devices, cheap and small Memory stick Easy to transmit and protect Data protection well developed (parity) Easy to describe mathematically Discrete mathematics (boolean algebra) Design of Computers Hierarchical Design Hardware Computer-based system design Design in which a computer is interfaced with and/or embedded in a larger system with a specific function, System design Design in which components such as the CPU. Memory, and I/O chips are interfaced to build a computer, Gate or Logic level Design of higher-level components with chips containing logical gates Device level Design of logic gates using transistors

// Abstraction Levels 7 Hardware: Levels of Detail - (top-down) x y ALU s, s z Block diagram x y Arithmetic Unit Logic Unit MUX z s s Magnified processor topography

// Hardware: Levels of Detail - Block diagram Logic diagram x y Arithmetic Unit Logic Unit MUX z x y MUX g x y MUX g s s x y MUX g x y MUX g Hardware: Levels of Detail & x Logic diagram y MUX g x y MUX g x y MUX g x y MUX g A B Electric circuit diagram NAND NOT C s 5

// Design of Computers Hierarchical Design Software (top-down) High Level Language Program (e.g., C) Compiler Assembly Language Program Assembler Machine Language g Program // Swap A and B temp = A; A = B; B = temp; mov AX,A mov BX,B mov A,BX mov B,AX D D D D or Machine Interpretation Control Signal Specification History of Computers Vacuum Tubes Transistors VLSI ENIAC Eckert and Mauchly 96 8, vacuum tubes,,8 instructions/sec,, ft Intel Microprocessor Introduced in 97,5 transistors, mm, 8 KHz Processor speed doubles every 8 months (Moore s Law) Memory speed doubles every -5 years 6

// Pentium - 55,, Transistors 6 mm Ghz Introduced in Intel Core Duo E66 65nm technology node 9 Million transistors mm 7

// Number System - Definition 5 A set of values to represent quantity We apply numbers everyday and knowing how numbers work will give us insight into how computer manipulates and stores numbers Example: Roman Numerals ( = I, 5 = V, = X, 5 = L, = C, 5 = D, = M) http://mathforum.org/alejandre/numerals.html http://www.sf.airnet.ne.jp/~ts/language/number.html History 6 The number system in most common use today is the Arabic system. It was first developed in India and was used as early as the rd century BC. The introduction of the symbol, used to indicate the positional value of digits was very important. We thus became familiar with the concept of groups of units, tens of units, hundreds of units, and so on. In number systems, it is often helpful to think of y, p recurring sets, where a set of values is repeated over and over again. We always write the digit with the largest value on the left of the number 8

// Base Values 7 The base (R=radix) value of a number system is the number of different values the set has before repeating itself Binary = (, ) Octal = 8 ( - 7) Decimal = ( 9) Hexadecimal = 6 ( 9, A F) A number at any base can be expanded in a power series (positional notation) ti N ) = ( aaaaa. a a a R = = a R + a R + a R + a R + a R + R + a R + a R a i R 7 a Decimal Number System (Base ) 8 Uses different symbols to represent values the greatest value (digit and column) 9 8 7 6 5 the least value (digit and column) 96 = 9 + 6 + N ) = ( aaaaa. a a a R = = a R + a R + a R + a R + a R + + R + a R + a R a i R 8 a... 9

// Decimal Number System (Base ) 9 Uses only different symbols to represent values the greatest value (digit and column) the least value (digit and column) Columns are used identical to the decimal system, leftmost is used to represent the greatest value Increasing order of value Octal Number System (Base 8) Uses 8 different symbols to represent values the greatest value (digit and column) 7 6 5 the least value (digit and column)

// Hexadecimal Number System (Base 6) Uses 6 different symbols to represent values 5 6 7 8 9 A B C D E F the least value the greatest value A =, B =, C =, D =, E =, F = 5 Binary to Decimal Convert to Decimal = + + + = 8 + + + = N ) = ( aaaaa. a a a R = = a R + a R + a R + a R + a R + + R + a R + a R a i R a...

// What about fraction conversion? Example:. = +. = = = +. 5 + +.65 N ) +. 5 = ( aaaaa. a a a R = = a R + a R + a R + a R + a R + + R + a R + a R a i R a... Decimal to Binary Divide the number by, then divide what s left by, and so on until there is nothing left (zero) 5 = 5/ = 7, Remainder = 7/ =, Remainder = / = 6, Remainder = 6/ =, Remainder = / =, Remainder = / =, Remainder =

// 5 What about decimal fractions into binary?.65 = F = (. a a a ) R F R = a + a R + a R = a. F Conversion of a decimal fraction to base R can be done using successive multiplications by R. F R = a + a R = a. F F =.65 F =.5 F =.5 x x x.5.5. =. a - = a - = a - = Class Problem 6 Convert 7. 8 into decimal Convert AF 6 into decimal Convert 5 into binary Convert.7 into binary

// Inter-Base Conversion 7 Conversion between bases other than decimal is generally easier if we use decimal as an intermediate base Example: Convert (.) to base 7 For Binary Hexadecimal, each hexadecimal digit represents binary bits, split the binary numbers into groups of bits, starting from right Example: Convert... 5 5 6. 6 = (55B6.6) 6 BIN-HEX-DEC Conversion Table 8 Decimal (base ) Binary (base ) Octal (base 8) Hexadecimal (base 6) 5 5 5 6 6 6 7 7 7 8 8 9 9 A B C 5 D 6 E 5 7 F

// Binary Numbers & Coding 9 Flexibility of representation In principle, can assign any binary combination (called a code word) to any data as long as it is uniquely encoded Information Type Numeric Must represent the range of data needed Simple, straightforward computation for common arithmetic operations permitted Relation to binary numbers Non-Numeric Greater flexibility since no arithmetic operations Not tied to binary numbers Binary Codes for Decimal Digits There are over 8, ways in which you can choose elements from 6 possible bit binary numbers. Decimal 8,,, Excess 8,,-,- Gray 5 6 7 8 9 5

// Binary Coded Decimal (BCD) BCD is the 8,,, code Referring to bit weights used Simplest, intuitive code for binary Uses powers of, but only encodes the first ten values from to 9 Eg: (9) = (8) + () There are invalid code words like or Decimal 5 6 7 8 9 8,,, Gray Code Unweighted and non-arithmetic, arranged so that every transition from one value to the next involves only one bit change. Decimal 5 6 7 8 9 Gray B B B (a) Binary Code for Positions through 7 G G G (b) Gray Code for Positions through 7 6

// Arithmetic: Binary, Octal, Hexadecimal, Binary Codes Addition Subtraction ti Multiplication Division Unsigned Binary Addition Just like in high school (carry s) Carry- Out LSB Carry-In 7 7 + + 6 is the default Carry-In to the Least Significant Bit (LSB) 7

// Binary Subtraction 5 Just like in high school (borrow s) Minuend 5 8 Subtrahend - - 5 Binary Multiplication 6 Binary Multiplication is simple x = ; x = ; x = ; x = Multiplicand Multiplier x Partial Products x xx Products 8

// Binary Division 7 Arithmetic Inversion of Multiplication Example: Divide id. with.. - - - Octal Multiplication 8 Multiply 56 8 with 8 showing all intermediate steps 56 8 x 8 8 + 67 8 7 8 8 x 6 8 = = 8 + 8 x5 8 = = 8 + 8 x 8 = = 8 8 x 6 8 = = 8 + 8 x5 8 = =7 8 + 8 x 8 =6 =6 8 9

// Hexadecimal Subtraction 9 Subtract (A96B) 6 (9FC) 6 Minuend A 9 6 B 6 Subtrahend - 9 F C 6 Difference A F 6 The partial differences were found a) B-C =B-C=(6+)-=7-=5=F B-C produces a negative result, so a borrow is generated b) 5 - = c) (9 + 6) F = A d) 9 9 = BCD Arithmetic Given a BCD code, we use binary arithmetic to add the digits: 8 Eight +5 + Plus 5 is (> 9) Note that the result is MORE THAN 9, so needs two digits! To correct the BCD digit, ADD 6, 8 Eight +5 + Plus 5 is (> 9) + so add 6 carry = leaving + carry Final answer (two digits)

// More BCD Arithmetic Add 8 BCD to 89 BCD showing carries and digit corrections Carry 8 + 89 97 BCD Carry + Binary sum Add 6 + BCD Sum BCD Result 9 7