مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! (25+30+50=105!) Textbook:

Slides:



Advertisements
Similar presentations
التصميم المنطقي Second Course
Advertisements

Binary Systems1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Chapter 1 Digital Systems and Numbers System
Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
Chapter 1 Binary Systems 1-1. Digital Systems
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Mantıksal Tasarım – BBM231 M. Önder Efe
Number Systems Lecture 02.
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Dr. Bernard Chen Ph.D. University of Central Arkansas
Digital Systems and Binary Numbers
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Logic and Digital System Design - CS 303
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
1 Digital Convergence! Smart Phone: IT + Telecommunication + Consumer Electronics + Entertainment Analog vs Digital system Ex: Watch, LP vs CD, Camera.
Number Systems. Why binary numbers? Digital systems process information in binary form. That is using 0s and 1s (LOW and HIGH, 0v and 5v). Digital designer.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
CHAPTER 1 BINARY SYSTEMS
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
1 DLD Lecture 18 Recap. 2 Recap °Number System/Inter-conversion, Complements °Boolean Algebra °More Logic Functions: NAND, NOR, XOR °Minimization with.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
1 Lect # 1 Binary Systems Digital vs. Analog Analog – a continuous range of values Digital – a discrete set of values –Like money –Can’t get smaller than.
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
AEEE2031 Data Representation and Numbering Systems.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Chapter 1 Digital Systems and Binary Numbers
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Chapter 1 : Introduction to Binary Systems 1.1. Introduction to Digital Systems 1.2. Binary Numbers 1.3. Number Base Conversion 1.4. Octal and Hexadecimal.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Digital Logic Design Ch1-1 Chapter 1 Digital Systems and Binary Numbers Mustafa Kemal Uyguroğlu Digital Logic Design I.
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Unit 1 Introduction Number Systems and Conversion.
Chapter 1 Digital Systems and Binary Numbers
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Number Systems.
Digital Systems and Binary Numbers
Chapter 3 Data Representation
Number System conversions
Chapter 1 Digital Systems and Binary Numbers
Fundamentals & Ethics of Information Systems IS 201
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
University of Gujrat Department of Computer Science
INTRODUCTION TO LOGIC DESIGN Chapter 1 Digital Systems and Binary Numbers gürtaçyemişçioğlu.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Digital Electronics & Logic Design
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
مدار منطقي مظفر بگ محمدي
ECE 301 – Digital Electronics
Computer Organization
Presentation transcript:

مدار منطقي مظفر بگ محمدي

Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook: Digital Design, Third Edition M. Morris Mano Prentice Hall, 2002 Assistant: Moslem Taheri

Outline Binary system Boolean algebra And, or, nor, nand, … Combinational logic Adder, multiplier, subtraction Multiplexer, de-multiplexer Comparator ALU Gate level minimization Karnaugh Map Synchronous Sequential logic Flip flop Register Memory Counter Asynchronous Sequential logic (a first look)

Digital vs. Analog An analog system has continuous range of values – A mercury thermometer – Tape and radio player – Human eye A digital system has a set of discrete values – Digital Thermometer – Compact Disc (CD) – Digital camera

Benefits of using digital Cheap electronic circuits Easier to calibrate and adjust Resistance to noise: Clearer picture and sound Analog signal Digital signal

Discrete elements of information are represented with bits called binary codes. Example: (09) 10 = (1001) 2 (15) 10 = (1111) 2 Binary System

Review the decimal number system. Base (Radix) is 10 - symbols (0,1,.. 9) Digits For Numbers > 9, add more significant digits in position to the left, e.g. 19>9. Each position carries a weight. Weights: MSD LSD If we were to write using a power series expansion and base 10 arithmetic: 4 Binary Code

4 The binary number system. –Base is 2 - symbols (0,1) - Binary Digits (Bits) –For Numbers > 1, add more significant digits in position to the left, e.g. 10>1. –Each position carries a weight (using decimal). Weights: If we write using a decimal power series we convert from binary to decimal: MSD LSD Binary number system

 ( ) 2 = ( ? ) 10 ANS: In computer work: 2 10 =1024 is referred as K = kilo 2 20 = is referred as M = mega 2 30 = ? 2 40 = ? What is the exact number of bytes in a 16 Gbyte memory module?  Binary number system

4 The octal number system –Its base is 8  eight digits 0, 1, 2, 3, 4, 5, 6, 7 4 The hexadecimal number system –Its base is 16  first 10 digits are borrowed from the decimal system and the letters A, B, C, D, E, F are used for the digits 10, 11, 12, 13, 14, 15 (236.4) 8 = (158.5) 10 (D63FA) 16 = (877562) 10 Octal/Hex number systems

Find the binary equivalent of 37. MSB LSB ANS:  ? = = = = = = Conversion from Decimal to Binary

Conversion from decimal fraction to binary: same method used for integers except multiplication is used instead of division. 4 Convert (0.8542) 10 to binary (give answer to 6 digits) x 2 = a -1 = x 2 = a -2 = x 2 = a -3 = x 2 = a -4 = x 2 = a -5 = x 2 = a -6 = 0 ( ) 10 = ( ? ) 2  Conversion from Decimal to Binary

4 Conversion from decimal to octal: The decimal number is first divided by 8. The remainder is the LSB. The quotient is then divide by 8 and the remainder is the next significant bit and so on. Convert 1122 to octal. MSB LSB Conversion from Decimal to Octal

Convert (0.3152) 10 to octal (give answer to 4 digits) x 8 = a -1 = x 8 = a -2 = x 8 = a -3 = x 8 = a -4 = 3 ( ) 10 = ( ? ) 8  Conversion from Decimal to Octal

Octal Table 1-2 page: 8

4 Conversion from and to binary, octal, and hexadecimal plays and important part in digital computers. and since each octal digit corresponds to 3 binary digits and each hexa digit corresponds to 4 binary digits. ( ) 2 = ( ) 8 ( ) 2 = (6FD.134) 16 from table Conversion using Table

4 Complements: They are used in digital computers for subtraction operation and for logic manipulation. 2’s complement and 1’s complement 10’s complement and 9’s complement Binary Numbers Decimal Numbers 9’s complement of N : (10 n -1) – N (N is a decimal #) 1’s complement of N : (2 n -1) – N (N is a binary #) 1’s complement can be formed by changing 1’s to 0’s and 0’s to 1’s 10’s complement of N : 10 n – N (N is a decimal #) 2’s complement of a number is obtained by leaving all least significant 0’s and the first 1 unchanged, and replacing 1’s with 0’s and 0’s with 1 in all higher significant digits. Complements

The 9’s complement of : (10 5 – 1) – = The 9’s complement of : (10 6 – 1) – = ’s complement of N : (10 n -1) – N (N is a decimal #) 10’s complement of N = [(10 n – 1) – N] + 1 (N is a decimal #) The 10’s complement of : 10 6 – = The 10’s complement of 2500 : 10 4 – 2500 =  Find the 9’s and 10’s-complement of ANS: and Complements

1’s complement of N : (2 n -1) – N (N is a binary #) 1’s complement can be formed by changing 1’s to 0’s and 0’s to 1’s 2’s complement of a number is obtained by leaving all least significant 0’s and the first 1 unchanged, and replacing 1’s with 0’s and 0’s with 1 in all higher significant digits. 4 The 1’s complement of = The 2’s complement of =  Find the 1’s and 2’s-complement of Answer: and ’s and 2’s Complements

Subtraction with digital hardware using complements: Subtraction of two n-digit unsigned numbers M – N base r: 1.Add M to the r’s complement of N: M + (r n – N) 2.If M N, the sum will produce an end carry and is equal to r n that can be discarded. The result is then M – N. 3. If M N, the sum will not produce an end carry and is equal to r n – (N – M) Subtraction Using Complements 4

Subtract 150 – 2100 using 10’s complement: M = ’s complement of N = Sum = 8050 Answer: – (10’s complement of 8050) = – 1950 There’s no end carry  negative Subtract 7188 – 3049 using 10’s complement: M = ’s complement of N = Sum = Discard end carry 10 4 = – Answer = 4139 Decimal Subtraction using complements

Subtract – using 2’s complement: A = ’s complement of B = Sum = Discard end carry = – Answer = Binary subtraction is done using the same procedure. 4 end carry  Subtract – using 2’s complement: Answer = – Binary Subtraction using complements

Subtract – using 1’s complement: A = ’s complement of B = Sum = End-around carry = + 1 Answer =  Subtract – using 1’s complement: Answer = – Binary Subtraction using complements

Signed binary numbers To represent a negative binary number, the convention is to make the sign bit 1. [sign bit 0 is for positive] (unsigned binary) +9 (signed binary) (unsigned binary) – 9 (signed binary)

Arithmetic addition Negative numbers must be initially in 2’s complement form and if the obtained sum is negative, it is in 2’s complement form –  Answer = Add –6 and –13

Transfer of Information with Registers J

Binary Information Processing