Logic Circuits I ECE 1411 Thursday 4:45pm-7:20pm. Nathan Pihlstrom.
|
|
- Elizabeth Craig
- 5 years ago
- Views:
Transcription
1 Logic Circuits I ECE 1411 Thursday 4:45pm-7:20pm Nathan Pihlstrom
2 My Background B.S.E.E. from Colorado State University M.S.E.E. from Colorado State University M.B.A. from UCCS Ford Microelectronics, Inc./Visteon Intel Corp Marvell Hittite Microwave Covidien LSI/Avago present UCCS Fall Semester 2013 ECE4280/5280 UCCS Spring Semester 2014 ECE4211/5211 UCCS Fall Semester 2014 ECE4280/2411
3 Chapter 1
4 1.2 Binary Numbers In general, a decimal number with a decimal point is represented by a series of coefficients: a 5 a 4 a 3 a 2 a 1 a 0.a -1 a -2 a -3 where the coefficients a j are any of the 10 digits (0, 1, 2, 3, 9) and the subscript value j give the place value. Thus for a base (or radix) 10 number: 10 5 a a a a a a a a a -3 For example: 7, = 7x x x x x x10-2
5 1.2 Binary Numbers The modern binary system was discovered by the German mathematician and philosopher Gottfried Liebniz in The binary number system has only two possible values: 0 and 1. Each coefficient is multiplied by a power of the radix and the result added to obtain the decimal equivalent of the number. Thus for a base (or radix) 2 number: 2 5 a a a a a a a a a -3 For example: = 1x x x x x x x2-2 = = 26.75
6 1.2 Binary Numbers In general, a number expressed in a base-r system has coefficients (a j ) multiplied by powers of r: a n r n + a n-1 r n a 2 r 2 + a 1 r 1 + a 0 r 0 + a -1 r -1 + a -2 r a -m r -m To distinguish between numbers of different bases, the coefficients are enclosed in parentheses with a subscript equal to the based used: (4021.2) 5 = 4x x x x x5-1 = (511.4) 10 Note: The coefficients for base 5 can only be 0, 1, 2, 3, and 4.
7 1.2 Binary Numbers Octal numbers: A base-8 system that has coefficients of: 0, 1, 2, 3, 4, 5, 6, and 7. Note that 8 and 9 are not part of the set. (127.4) 8 = 1x x x x8-1 = (87.5) 10 Hexadecimal: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15 (B65F) 16 = 11x x x x16 0 = (46,687) 10 For number bases greater than 10, the letters of the alphabet are used to supplement the 10 decimal digits.
8 1.2 Binary Numbers The digits in a binary number are called bits. When a bit is 0, it does not contribute to the sum during conversion. Thus, the conversion from binary to decimal can be obtained by adding only the numbers with powers of two corresponding to the bits that are equal to 1: (110101) 2 = = (53) 10
9 1.2 Binary Numbers Arithmetic operations with numbers in base r follow the same rules as for decimal base numbers. Be careful to only use r-allowable digits when working in bases other than 10. The sum of two binary numbers is calculated by the same rules as in decimal, except that the digits of the sum in any significant position can only be 0 or 1. The rules for binary subtraction are the same as decimal except that the borrow in any given significant position adds 2 to a minuend digit. Multiplier digits are always 1 or 0. The partial products are equal either to a shifted (left) copy of the multiplicand or to 0. augend: minuend: multiplicand: 1011 addend: subtrahend: multiplier: x 101 sum: difference: partial products: 1011 product:
10 Powers of Two: n 2n (bits) 1.2 Binary Numbers (bytes) n 2n (bits) (bytes) n 2n (bits) (bytes) 0 1 n/a n/a n/a * (1Kb) (1Mb) (1KB) (1MB) 30 1Gb 33 1GB 40 1Tb * = nibble 43 1TB
11 1.3 Number-Base Conversions As shown previously, the conversion of a number in base r to decimal is done by expanding the number in a power series and adding up all the terms. The conversion of a decimal number to a number in base r is done by dividing the number and all successive quotients by r and accumulating the remainders. If the decimal number contains a radix (decimal) point, it is necessary to separate the number into an integer part and a fraction part.
12 1.3 Number-Base Conversions Example 1.1: Convert (41) 10 to binary Integer Quotient Remainder Coefficient 41/2 = 20 + ½ a 0 = 1 20/2 = a 1 = 0 10/2 = a 2 = 0 5/2 = 2 + ½ a 3 = 1 2/2 = a 4 = 0 1/2 = 0 + 1/2 a 5 = 1 Therefore (41) 10 = (a 5 a 4 a 3 a 2 a 1 a 0 ) = (101001) 2
13 1.3 Number-Base Conversions Example 1.3: Convert (0.6875)10 to binary Integer Fraction Coefficient x 2 = a -1 = x 2 = a -2 = x 2 = a -3 = x 2 = a -4 = 1 Therefore (0.6875) 10 = (0.a -1 a -2 a -3 a -4 ) = (0.1011) 2
14 1.4 Octal and Hexadecimal Numbers Shorter patterns of hex characters are easier to recognize than log patterns of 1 s and 0 s. Conversion to binary to octal/hexadecimal is easily accomplished by partitioning the number into groups of three/four digits, starting from the binary point and proceeding from the left and right. Given: ) 2 (10_110_001_101_ _100_000_110) 2 = ( ) 8 (10_1100_0110_ _0000_0110) 2 = (2C6B.F06) 16
15 1.4 Octal and Hexadecimal Numbers
16 1.4 Octal and Hexadecimal Numbers Microsoft Windows calculator has ability to convert decimal/binary/octal/hexadecimal Calculator -> View -> Programmer Note: Grouping of bit in fours as hex is more popular and octal is rarely used
17 1.5 Complement of Numbers Number complements are used to simplify subtraction operation and logical manipulation in digital computers. Two types of complements for each base-r system: Radix complement Referred to the r s complement 2 s complement for binary 10 s complement for decimal Diminished radix complement r-1 complement 1 s complement for binary 9 s complement for decimal
18 1.5 Complement of Numbers Diminished Radix Complement: Defined as (r n 1) N where: N is a given number n is the number of 0 s following a single 1 r is the base, 10 for decimal, 2 for binary Diminished» 10 1 = 9 for decimal» 2 1 = 1 for binary Examples: 9 s complement of is (10 6 1) = s complement of is (10 6 1) = s complement of 101_1000 is (2 7 1) 101_1000 = 010_0111 Where (2 7 1) = (1000_0000 1) = 0111_ s complement of 010_1101 is (2 7 1) 010_1101 = 101_0010 Where (2 7 1) = (1000_0000 1) = 0111_1111 Or for binary, simply change all 1 s to 0 s and all 0 s to 1 s (invert).
19 1.5 Complement of Numbers Radix complement: Defined as r n 1 for N!= 0 and 0 for N = 0 n is the number of 0 s following a single 1 r is the base, 10 for decimal, 2 for binary r s complement is obtained by adding 1 to the (r-1) s complement Examples: 10 s complement of 012_398 is (10 6 1) 012_ _000_ _398 = 987_ s complement of 246_700 is (10 6 1) 012_ _000_ _700 = 753_300 2 complement of 110_ 1100 is (2 7 1) 110_ _ _1100 = 001_ complement of 011_ 0111 is (2 7 1) 011_ _ _ 0111 = 100_1001 Or for binary, leave all least significant 0 s and the first 1 unchanged and invert all other higher significant digits.
20 1.5 Complement of Numbers Subtraction with Complements 10 s complement M = 72532, N = 3250 M N: M = 72_ s Complement of N = + 96_750 Sum = 169_282 Discard end carry 10 5 = -100_000 Answer = 69_282 M = 3250, N = M N: M = 03_ s Complement of N = + 27_468 Sum = 30_718 No end carry, therefore the answer is -(10 s complement of 30_718) = -69_ _000 3_250 = 96_ _000 72_532 = 27_468
21 1.5 Complement of Numbers Subtraction with Complements 2 s complement Given X = 101_0100 and Y = 100_0011 X Y: X = 101_ s Complement of Y = + 011_1101 Sum = 1001_0001 Discard end carry 2 7 = -1000_0000 Answer = 001_0001 Y - X: Y = 100_ s Complement of X = + 010_1100 Sum = 110_1111 No end carry, therefore the answer is -(2 s complement of 110_1111) = -001_0001
22 1.5 Complement of Numbers Subtraction with Complements 1 s complement Given X = 101_0100 and Y = 100_0011 X Y: X = 101_ s Complement of Y = + 011_1100 Sum = 1001_0000 End around carry = +0000_0001 Answer = 001_0001 Y - X: Y = 100_ s Complement of X = + 010_1011 Sum = 110_1110 No end carry, therefore the answer is -(1 s complement of 110_1110) = -001_0001
23 1.6 Signed Binary Numbers In ordinary numbers, a negative number is indicated with a minus sign. Computers however, must represent everything with a 1 or a 0. It is customary to represent the sign with a bit placed in the leftmost position of the number 0 for positive 1 for negative The users determine whether the number is signed or unsigned Binary Value Signed Decimal Unsigned Decimal 0_ _
24 1.6 Signed Binary Numbers Consider -9 represented as a byte value: Signed magnitude 1_0000_1001 Signed-1 s complement 1111_0110 Signed-2 s complement 1111_0111 where the 1 s and 2 s complements are obtained using all bits, including the sign bit
25 1.6 Signed Binary Numbers Changing a positive number to a negative is easily done by taking the 2 s complement of the positive.
26 1.6 Signed Binary Numbers Arithmetic Addition The addition of two signed binary numbers with negative numbers represented in a signed-2 s complement form is obtained from the addition of the two numbers, including their sign bits. A carry out of the sign-bit position is discarded Negative results are automatically in 2 s complement form _ _ _ _ _ _ _ s complement of 6 -> _ _0011 < - 2 s complement of 13 -> _ _1001 < - 2 s complement of 7 overflow 2 s complement of 19 -> _1101
27 1.6 Signed Binary Numbers Arithmetic Subtraction Take the 2 s complement of the subtrahend (including the sign bit) and add to the minuend (including the sign bit). A carry out of the sign-bit is discarded. (+A) (+B) = (+A) + (-B) (+A) (-B) = (+A) + (+B) Remember: minuend subtrahend difference _ s complement of 6 -> _1010 -(+13) 1111_0011 < - 2 s complement of 13 -> -(+13) 1111_ _1001 < - 2 s complement of 7 overflow 2 s complement of -19 -> -19 1_1110_ _ s complement of 6 -> _1010 -(-13) 0000_1101 -(-13) 0000_ _ _0111
28 1.7 Binary Codes Binary-Coded Decimal Code (BCD) A number with k decimal digits will require 4k bits in BCD The binary combinations 1010 through 1111 are not used and have no meaning BCD numbers are decimal number and not binary numbers, although they use bits in their representation (396) 10 = ( ) BCD = (1_1000_1100) 2 (185) 10 = ( ) BCD = (1011_1001) 2 (15) 10 = ( ) BCD = (1111) 2 (10) 10 = ( ) BCD = (1010) 2
29 BCD Addition 1.7 Binary Codes Since each digit does not exceed 9, the sum cannot be greater than = 19 When binary sum is <= 1001 (w/o carry), the BCD sum is correct When binary sum is > 1001, add, 6 = (0110) 2 to correct BCD and produce carry Invalid BCD -> _0001 <- Invalid BCD Add (0110) 2 -> <- Add (0110) 2 1_0010 1_0111
30 1.7 Binary Codes BCD Addition (cont.) The addition of two n-digit unsigned BCD numbers follows the same procedure: BCD Binary Sum _ Add BCD Sum
31 Other Decimal Codes Binary codes for decimal digits require a minimum of four digits Excess-3 is an un-weighted code in which each coded combination is obtained from the corresponding binary value plus 3 The 2421 and excess-3 codes are examples of self complementing codes 9 s complement of a decimal number is obtained by complementing each bit of the code 1.7 Binary Codes
32 Gray Code 1.7 Binary Codes Only one bit in the code group changes in going from one number to the next Used for optical rotary encoders Q Binary Q Q Q Gray Q Q
33 ASCII Character Code 1.7 Binary Codes American Standard Code of Information Interchange Uses seven bits to code 128 characters As most computer manipulate bytes, ASCII characters are most often stored one per byte The extra bit is used to indicate other symbols (additional 128 available)
34 1.7 Binary Codes
35 1.7 Binary Codes Error-Detecting Code Parity bit is an extra bit included with a message to make the total number of 1 s either even or odd. Note: detects error only. Error Correcting Code (ECC) covered in Logic Circuits II With even parity With odd parity ASCII A = 100_ _ _0001 ASCII T = 101_ _ _0100
36 1.8 Binary Storage and Registers Register Most commonly device to hold data A register is group of binary cells. Nibble: 4-bits Byte: 8-bits Word: 2-Bytes/16 bits Dword: 2-Words/32-bits Qword: 2-Dwords/64-bits A 16-bit register can be in one of 2 16 (64k) states and can store any binary number from 0 to
37 1.9 Binary Logic Definition of Binary Logic AND: Represented by a dot or by the absence of an operator x y = z or xy = z OR: Represented by a plus sign x+y = z NOT: Represented by a prime _ or sometimes an over-bar x = z or x = z
38 Logic Gates 1.9 Binary Logic
39 1.9 Binary Logic Maximum output high voltage = V OH Minimum output low voltage = V OL Input voltages <= V IL are considered low Input voltages >= V IH are considered high N MH = V OH V IH N ML = V IL -V OL
40 Homework 10 points each:
Digital Systems and Binary Numbers
Digital Systems and Binary Numbers Prof. Wangrok Oh Dept. of Information Communications Eng. Chungnam National University Prof. Wangrok Oh(CNU) 1 / 51 Overview 1 Course Summary 2 Binary Numbers 3 Number-Base
More informationBINARY SYSTEM. Binary system is used in digital systems because it is:
CHAPTER 2 CHAPTER CONTENTS 2.1 Binary System 2.2 Binary Arithmetic Operation 2.3 Signed & Unsigned Numbers 2.4 Arithmetic Operations of Signed Numbers 2.5 Hexadecimal Number System 2.6 Octal Number System
More informationKorea University of Technology and Education
MEC52 디지털공학 Binary Systems Jee-Hwan Ryu School of Mechanical Engineering Binary Numbers a 5 a 4 a 3 a 2 a a.a - a -2 a -3 base or radix = a n r n a n- r n-...a 2 r 2 a ra a - r - a -2 r -2...a -m r -m
More informationLecture (02) Operations on numbering systems
Lecture (02) Operations on numbering systems By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I Complements of a number Complements are used in digital computers to simplify
More informationChapter 1. Digital Systems and Binary Numbers
Chapter 1. Digital Systems and Binary Numbers Tong In Oh 1 1.1 Digital Systems Digital age Characteristic of digital system Generality and flexibility Represent and manipulate discrete elements of information
More informationDigital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes
Digital Fundamentals CHAPTER 2 Number Systems, Operations, and Codes Decimal Numbers The decimal number system has ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 The decimal numbering system has a base of
More informationDigital Systems and Binary Numbers
Digital Systems and Binary Numbers ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Spring, 2018 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Outline
More informationLecture 2: Number Systems
Lecture 2: Number Systems Syed M. Mahmud, Ph.D ECE Department Wayne State University Original Source: Prof. Russell Tessier of University of Massachusetts Aby George of Wayne State University Contents
More informationComputer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence
GATE Postal Correspondence Computer Sc. & IT 1 Digital Logic Computer Sciencee & Information Technology (CS) 20 Rank under AIR 100 Postal Correspondence Examination Oriented Theory, Practice Set Key concepts,
More informationDigital Systems and Binary Numbers
Digital Systems and Binary Numbers Mano & Ciletti Chapter 1 By Suleyman TOSUN Ankara University Outline Digital Systems Binary Numbers Number-Base Conversions Octal and Hexadecimal Numbers Complements
More informationCS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq
CS 121 Digital Logic Design Chapter 1 Teacher Assistant Hadeel Al-Ateeq Announcement DON T forgot to SIGN your schedule OR you will not be allowed to attend next lecture. Communication Office hours (8
More informationBinary Systems and Codes
1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010
More informationLecture (03) Binary Codes Registers and Logic Gates
Lecture (03) Binary Codes Registers and Logic Gates By: Dr. Ahmed ElShafee Binary Codes Digital systems use signals that have two distinct values and circuit elements that have two stable states. binary
More informationNumber Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010
Contents Number systems and conversion Binary arithmetic Representation of negative numbers Addition of two s complement numbers Addition of one s complement numbers Binary s Readings Unit.~. UNIT NUMBER
More informationChap 1. Digital Computers and Information
Chap 1. Digital Computers and Information Spring 004 Overview Digital Systems and Computer Systems Information Representation Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion
More informationCHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER
1 CHAPTER TWO Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER 2-1 Data Types 2-2 Complements 2-3 Fixed-Point Representation 2-4 Floating-Point Representation
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Decimal Numbers The position of each digit in a weighted
More informationBinary Addition. Add the binary numbers and and show the equivalent decimal addition.
Binary Addition The rules for binary addition are 0 + 0 = 0 Sum = 0, carry = 0 0 + 1 = 0 Sum = 1, carry = 0 1 + 0 = 0 Sum = 1, carry = 0 1 + 1 = 10 Sum = 0, carry = 1 When an input carry = 1 due to a previous
More informationDIGITAL SYSTEM DESIGN
DIGITAL SYSTEM DESIGN UNIT I: Introduction to Number Systems and Boolean Algebra Digital and Analog Basic Concepts, Some history of Digital Systems-Introduction to number systems, Binary numbers, Number
More informationBinary Codes. Dr. Mudathir A. Fagiri
Binary Codes Dr. Mudathir A. Fagiri Binary System The following are some of the technical terms used in binary system: Bit: It is the smallest unit of information used in a computer system. It can either
More informationDIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) COURSE / CODE NUMBER SYSTEM
COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) NUMBER SYSTEM A considerable subset of digital systems deals with arithmetic operations. To understand the
More informationCHW 261: Logic Design
CHW 261: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed14 http://bu.edu.eg/staff/ahmedshalaby14# Slide 1 Slide 2 Slide 3 Digital Fundamentals CHAPTER
More informationCS & IT Conversions. Magnitude 10,000 1,
CS & IT Conversions There are several number systems that you will use when working with computers. These include decimal, binary, octal, and hexadecimal. Knowing how to convert between these number systems
More informationD I G I T A L C I R C U I T S E E
D I G I T A L C I R C U I T S E E Digital Circuits Basic Scope and Introduction This book covers theory solved examples and previous year gate question for following topics: Number system, Boolean algebra,
More informationElectronics Engineering ECE / E & T
STUDENT COPY DIGITAL ELECTRONICS 1 SAMPLE STUDY MATERIAL Electronics Engineering ECE / E & T Postal Correspondence Course GATE, IES & PSUs Digital Electronics 2015 ENGINEERS INSTITUTE OF INDIA. All Rights
More informationNumber Systems Base r
King Fahd University of Petroleum & Minerals Computer Engineering Dept COE 2 Fundamentals of Computer Engineering Term 22 Dr. Ashraf S. Hasan Mahmoud Rm 22-44 Ext. 724 Email: ashraf@ccse.kfupm.edu.sa 3/7/23
More informationNumbering systems. Dr Abu Arqoub
Numbering systems The decimal numbering system is widely used, because the people Accustomed (معتاد) to use the hand fingers in their counting. But with the development of the computer science another
More informationComputer Organization
Computer Organization Register Transfer Logic Number System Department of Computer Science Missouri University of Science & Technology hurson@mst.edu 1 Decimal Numbers: Base 10 Digits: 0, 1, 2, 3, 4, 5,
More informationLogic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information
Logic and Computer Design Fundamentals Chapter 1 Digital Computers and Information Overview Digital Systems and Computer Systems Information Representation Number Systems [binary, octal and hexadecimal]
More informationNumeral Systems. -Numeral System -Positional systems -Decimal -Binary -Octal. Subjects:
Numeral Systems -Numeral System -Positional systems -Decimal -Binary -Octal Subjects: Introduction A numeral system (or system of numeration) is a writing system for expressing numbers, that is a mathematical
More informationCOE 202: Digital Logic Design Number Systems Part 2. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
COE 0: Digital Logic Design Number Systems Part Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: -34 Objectives Arithmetic operations: Binary number system Other number systems Base Conversion
More informationUNIT 7A Data Representation: Numbers and Text. Digital Data
UNIT 7A Data Representation: Numbers and Text 1 Digital Data 10010101011110101010110101001110 What does this binary sequence represent? It could be: an integer a floating point number text encoded with
More informationSE311: Design of Digital Systems
SE311: Design of Digital Systems Lecture 3: Complements and Binary arithmetic Dr. Samir Al-Amer (Term 041) SE311_Lec3 (c) 2004 AL-AMER ١ Outlines Complements Signed Numbers Representations Arithmetic Binary
More informationLecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee
١ Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee Digital systems Digital systems are used in communication, business transactions, traffic control, spacecraft guidance, medical
More informationMC1601 Computer Organization
MC1601 Computer Organization Unit 1 : Digital Fundamentals Lesson1 : Number Systems and Conversions (KSB) (MCA) (2009-12/ODD) (2009-10/1 A&B) Coverage - Lesson1 Shows how various data types found in digital
More informationIT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1
IT 1204 Section 2.0 Data Representation and Arithmetic 2009, University of Colombo School of Computing 1 What is Analog and Digital The interpretation of an analog signal would correspond to a signal whose
More informationPositional Number System
Positional Number System A number is represented by a string of digits where each digit position has an associated weight. The weight is based on the radix of the number system. Some common radices: Decimal.
More informationMACHINE LEVEL REPRESENTATION OF DATA
MACHINE LEVEL REPRESENTATION OF DATA CHAPTER 2 1 Objectives Understand how integers and fractional numbers are represented in binary Explore the relationship between decimal number system and number systems
More informationCHAPTER V NUMBER SYSTEMS AND ARITHMETIC
CHAPTER V-1 CHAPTER V CHAPTER V NUMBER SYSTEMS AND ARITHMETIC CHAPTER V-2 NUMBER SYSTEMS RADIX-R REPRESENTATION Decimal number expansion 73625 10 = ( 7 10 4 ) + ( 3 10 3 ) + ( 6 10 2 ) + ( 2 10 1 ) +(
More informationExcerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997
Excerpt from: Stephen H. Unger, The Essence of Logic Circuits, Second Ed., Wiley, 1997 APPENDIX A.1 Number systems and codes Since ten-fingered humans are addicted to the decimal system, and since computers
More informationNumber System. Introduction. Decimal Numbers
Number System Introduction Number systems provide the basis for all operations in information processing systems. In a number system the information is divided into a group of symbols; for example, 26
More informationElectronic Data and Instructions
Lecture 2 - The information Layer Binary Values and Number Systems, Data Representation. Know the different types of numbers Describe positional notation Convert numbers in other bases to base 10 Convert
More informationChapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.
Chapter 3: Number Systems and Codes Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc., 5 th edition Decimal System The radix or base of a number system determines
More informationECE 20B, Winter Purpose of Course. Introduction to Electrical Engineering, II. Administration
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II Instructor: Andrew B Kahng (lecture) Email: abk@eceucsdedu Telephone: 858-822-4884 office, 858-353-0550 cell Office: 3802 AP&M Lecture: TuThu
More informationChapter 1 Review of Number Systems
1.1 Introduction Chapter 1 Review of Number Systems Before the inception of digital computers, the only number system that was in common use is the decimal number system which has a total of 10 digits
More informationCHAPTER 2 (b) : AND CODES
DKT 122 / 3 DIGITAL SYSTEMS 1 CHAPTER 2 (b) : NUMBER SYSTEMS OPERATION AND CODES m.rizal@unimap.edu.my sitizarina@unimap.edu.my DECIMAL VALUE OF SIGNED NUMBERS SIGN-MAGNITUDE: Decimal values of +ve & -ve
More informationLecture (01) Introduction Number Systems and Conversion (1)
Lecture (01) Introduction Number Systems and Conversion (1) By: Dr. Ahmed ElShafee ١ Digital systems Digital systems are used in communication, business transactions, traffic control, spacecraft guidance,
More informationMoodle WILLINGDON COLLEGE SANGLI. ELECTRONICS (B. Sc.-I) Introduction to Number System
Moodle 1 WILLINGDON COLLEGE SANGLI ELECTRONICS (B. Sc.-I) Introduction to Number System E L E C T R O N I C S Introduction to Number System and Codes Moodle developed By Dr. S. R. Kumbhar Department of
More informationThe type of all data used in a C++ program must be specified
The type of all data used in a C++ program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values There are
More informationChapter 2. Data Representation in Computer Systems
Chapter 2 Data Representation in Computer Systems Chapter 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers. Master the skill of converting
More information9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation
Data Representation II CMSC 313 Sections 01, 02 The conversions we have so far presented have involved only unsigned numbers. To represent signed integers, computer systems allocate the high-order bit
More informationMs Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES. 1.1 Introduction
Ms Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES Structure 2.1 Introduction 2.2 Objectives 2.3 Binary Numbers 2.3.1 Binary-to-Decimal conversion 2.3.2 Decimal-to-Binary Conversion 2.4 Octal Numbers
More informationEE 109 Unit 6 Binary Arithmetic
EE 109 Unit 6 Binary Arithmetic 1 2 Semester Transition Point At this point we are going to start to transition in our class to look more at the hardware organization and the low-level software that is
More informationSemester Transition Point. EE 109 Unit 11 Binary Arithmetic. Binary Arithmetic ARITHMETIC
1 2 Semester Transition Point EE 109 Unit 11 Binary Arithmetic At this point we are going to start to transition in our class to look more at the hardware organization and the low-level software that is
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 2 2009 Pearson Education, Upper 2008 Pearson Saddle River, Education NJ 07458. All Rights Reserved Quiz 2 Agenda Lecture: Chapter 2 (2-7 through 2-11):
More informationELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-278: Digital Logic Design Fall Notes - Unit 4. hundreds.
ECE-78: Digital Logic Design Fall 6 UNSIGNED INTEGER NUMBERS Notes - Unit 4 DECIMAL NUMBER SYSTEM A decimal digit can take values from to 9: Digit-by-digit representation of a positive integer number (powers
More informationModule 2: Computer Arithmetic
Module 2: Computer Arithmetic 1 B O O K : C O M P U T E R O R G A N I Z A T I O N A N D D E S I G N, 3 E D, D A V I D L. P A T T E R S O N A N D J O H N L. H A N N E S S Y, M O R G A N K A U F M A N N
More informationELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.
UNSIGNED INTEGER NUMBERS Notes - Unit 4 DECIMAL NUMBER SYSTEM A decimal digit can take values from to 9: Digit-by-digit representation of a positive integer number (powers of ): DIGIT 3 4 5 6 7 8 9 Number:
More informationDigital Fundamentals
Digital Fundamentals Tenth Edition Floyd Chapter 1 Modified by Yuttapong Jiraraksopakun Floyd, Digital Fundamentals, 10 th 2008 Pearson Education ENE, KMUTT ed 2009 Analog Quantities Most natural quantities
More information10.1. Unit 10. Signed Representation Systems Binary Arithmetic
0. Unit 0 Signed Representation Systems Binary Arithmetic 0.2 BINARY REPRESENTATION SYSTEMS REVIEW 0.3 Interpreting Binary Strings Given a string of s and 0 s, you need to know the representation system
More informationUNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES
UNIT 2 NUMBER SYSTEM AND PROGRAMMING LANGUAGES Structure 2.0 Introduction 2.1 Unit Objectives 2.2 Number Systems 2.3 Bits and Bytes 2.4 Binary Number System 2.5 Decimal Number System 2.6 Octal Number System
More informationDLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 1 DLD P VIDYA SAGAR
UNIT I Digital Systems: Binary Numbers, Octal, Hexa Decimal and other base numbers, Number base conversions, complements, signed binary numbers, Floating point number representation, binary codes, error
More informationReview of Number Systems
Review of Number Systems The study of number systems is important from the viewpoint of understanding how data are represented before they can be processed by any digital system including a digital computer.
More informationDigital Logic. The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer.
Digital Logic 1 Data Representations 1.1 The Binary System The Binary System is a way of writing numbers using only the digits 0 and 1. This is the method used by the (digital) computer. The system we
More informationCO Computer Architecture and Programming Languages CAPL. Lecture 9
CO20-320241 Computer Architecture and Programming Languages CAPL Lecture 9 Dr. Kinga Lipskoch Fall 2017 A Four-bit Number Circle CAPL Fall 2017 2 / 38 Functional Parts of an ALU CAPL Fall 2017 3 / 38 Addition
More informationBinary. Hexadecimal BINARY CODED DECIMAL
Logical operators Common arithmetic operators, like plus, minus, multiply and divide, works in any number base but the binary number system provides some further operators, called logical operators. Meaning
More informationLevel ISA3: Information Representation
Level ISA3: Information Representation 1 Information as electrical current At the lowest level, each storage unit in a computer s memory is equipped to contain either a high or low voltage signal Each
More informationNumber Systems CHAPTER Positional Number Systems
CHAPTER 2 Number Systems Inside computers, information is encoded as patterns of bits because it is easy to construct electronic circuits that exhibit the two alternative states, 0 and 1. The meaning of
More informationPositional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal
Positional notation Ch.. /continued Conversions between Decimal and Binary Binary to Decimal - use the definition of a number in a positional number system with base - evaluate the definition formula using
More informationChapter 2: Number Systems
Chapter 2: Number Systems Logic circuits are used to generate and transmit 1s and 0s to compute and convey information. This two-valued number system is called binary. As presented earlier, there are many
More informationChapter 4 Arithmetic Functions
Logic and Computer Design Fundamentals Chapter 4 Arithmetic Functions Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Overview Iterative combinational
More informationCHAPTER 2 Data Representation in Computer Systems
CHAPTER 2 Data Representation in Computer Systems 2.1 Introduction 37 2.2 Positional Numbering Systems 38 2.3 Decimal to Binary Conversions 38 2.3.1 Converting Unsigned Whole Numbers 39 2.3.2 Converting
More informationCHAPTER 2 Data Representation in Computer Systems
CHAPTER 2 Data Representation in Computer Systems 2.1 Introduction 37 2.2 Positional Numbering Systems 38 2.3 Decimal to Binary Conversions 38 2.3.1 Converting Unsigned Whole Numbers 39 2.3.2 Converting
More informationNumber representations
Number representations Number bases Three number bases are of interest: Binary, Octal and Hexadecimal. We look briefly at conversions among them and between each of them and decimal. Binary Base-two, or
More informationDIGITAL ARITHMETIC: OPERATIONS AND CIRCUITS
C H A P T E R 6 DIGITAL ARITHMETIC: OPERATIONS AND CIRCUITS OUTLINE 6- Binary Addition 6-2 Representing Signed Numbers 6-3 Addition in the 2 s- Complement System 6-4 Subtraction in the 2 s- Complement
More informationGet Free notes at Module-I One s Complement: Complement all the bits.i.e. makes all 1s as 0s and all 0s as 1s Two s Complement: One s complement+1 SIGNED BINARY NUMBERS Positive integers (including zero)
More informationin this web service Cambridge University Press
978-0-51-85748- - Switching and Finite Automata Theory, Third Edition Part 1 Preliminaries 978-0-51-85748- - Switching and Finite Automata Theory, Third Edition CHAPTER 1 Number systems and codes This
More informationChapter 2. Positional number systems. 2.1 Signed number representations Signed magnitude
Chapter 2 Positional number systems A positional number system represents numeric values as sequences of one or more digits. Each digit in the representation is weighted according to its position in the
More informationMYcsvtu Notes DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes
DATA REPRESENTATION Data Types Complements Fixed Point Representations Floating Point Representations Other Binary Codes Error Detection Codes Hamming Codes 1. DATA REPRESENTATION Information that a Computer
More informationLOGIC DESIGN. Dr. Mahmoud Abo_elfetouh
LOGIC DESIGN Dr. Mahmoud Abo_elfetouh Course objectives This course provides you with a basic understanding of what digital devices are, how they operate, and how they can be designed to perform useful
More informationDigital Arithmetic. Digital Arithmetic: Operations and Circuits Dr. Farahmand
Digital Arithmetic Digital Arithmetic: Operations and Circuits Dr. Farahmand Binary Arithmetic Digital circuits are frequently used for arithmetic operations Fundamental arithmetic operations on binary
More informationChapter 3: part 3 Binary Subtraction
Chapter 3: part 3 Binary Subtraction Iterative combinational circuits Binary adders Half and full adders Ripple carry and carry lookahead adders Binary subtraction Binary adder-subtractors Signed binary
More informationCOMPUTER ARITHMETIC (Part 1)
Eastern Mediterranean University School of Computing and Technology ITEC255 Computer Organization & Architecture COMPUTER ARITHMETIC (Part 1) Introduction The two principal concerns for computer arithmetic
More information1010 2?= ?= CS 64 Lecture 2 Data Representation. Decimal Numbers: Base 10. Reading: FLD Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
CS 64 Lecture 2 Data Representation Reading: FLD 1.2-1.4 Decimal Numbers: Base 10 Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Example: 3271 = (3x10 3 ) + (2x10 2 ) + (7x10 1 ) + (1x10 0 ) 1010 10?= 1010 2?= 1
More informationMicrocomputers. Outline. Number Systems and Digital Logic Review
Microcomputers Number Systems and Digital Logic Review Lecture 1-1 Outline Number systems and formats Common number systems Base Conversion Integer representation Signed integer representation Binary coded
More informationThe type of all data used in a C (or C++) program must be specified
The type of all data used in a C (or C++) program must be specified A data type is a description of the data being represented That is, a set of possible values and a set of operations on those values
More informationFinal Labs and Tutors
ICT106 Fundamentals of Computer Systems - Topic 2 REPRESENTATION AND STORAGE OF INFORMATION Reading: Linux Assembly Programming Language, Ch 2.4-2.9 and 3.6-3.8 Final Labs and Tutors Venue and time South
More informationDecimal & Binary Representation Systems. Decimal & Binary Representation Systems
Decimal & Binary Representation Systems Decimal & binary are positional representation systems each position has a value: d*base i for example: 321 10 = 3*10 2 + 2*10 1 + 1*10 0 for example: 101000001
More informationCPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS
CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS Aleksandar Milenković The LaCASA Laboratory, ECE Department, The University of Alabama in Huntsville Email: milenka@uah.edu Web:
More informationAgenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010
// 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?
More informationCPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS
CPE 323 REVIEW DATA TYPES AND NUMBER REPRESENTATIONS IN MODERN COMPUTERS Aleksandar Milenković The LaCASA Laboratory, ECE Department, The University of Alabama in Huntsville Email: milenka@uah.edu Web:
More informationBits, Words, and Integers
Computer Science 52 Bits, Words, and Integers Spring Semester, 2017 In this document, we look at how bits are organized into meaningful data. In particular, we will see the details of how integers are
More informationCHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS
CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS Addition of Unsigned Numbers The instruction ADD is used to add two operands Destination operand is always in register A Source operand can be a register,
More informationNUMBER SYSTEMS AND CODES
C H A P T E R 69 Learning Objectives Number Systems The Decimal Number System Binary Number System Binary to Decimal Conversion Binary Fractions Double-Dadd Method Decimal to Binary Conversion Shifting
More informationUNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS
UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS (09 periods) Computer Arithmetic: Data Representation, Fixed Point Representation, Floating Point Representation, Addition and
More informationECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals
University of Wisconsin - Madison ECE/Comp Sci 352 Digital Systems Fundamentals Charles R. Kime Section 2 Fall 2001 Chapter 3 Combinational Logic Design Part 4 Charles Kime & Thomas Kaminski Complements
More informationDigital Systems COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals
Digital Systems COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Welcome to COE 202 Course Webpage: http://faculty.kfupm.edu.sa/coe/mudawar/coe202/ Lecture
More informationCOMP Overview of Tutorial #2
COMP 1402 Winter 2008 Tutorial #2 Overview of Tutorial #2 Number representation basics Binary conversions Octal conversions Hexadecimal conversions Signed numbers (signed magnitude, one s and two s complement,
More informationIntroduction to Computers and Programming. Numeric Values
Introduction to Computers and Programming Prof. I. K. Lundqvist Lecture 5 Reading: B pp. 47-71 Sept 1 003 Numeric Values Storing the value of 5 10 using ASCII: 00110010 00110101 Binary notation: 00000000
More informationCS/EE1012 INTRODUCTION TO COMPUTER ENGINEERING SPRING 2013 HOMEWORK I. Solve all homework and exam problems as shown in class and sample solutions
CS/EE2 INTRODUCTION TO COMPUTER ENGINEERING SPRING 23 DUE : February 22, 23 HOMEWORK I READ : Related portions of the following chapters : È Chapter È Chapter 2 È Appendix E ASSIGNMENT : There are eight
More information