Introduction to Computer Design CMPT 150 Section: D100 9962 Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

A digital system is a system that manipulates discrete elements of information represented internally in binary form. Digital computers –general purposes.
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Data Representation in Computers
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Digital Computers and Information
Information Representation and Number Systems BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
Binary Numbers.
Mantıksal Tasarım – BBM231 M. Önder Efe
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
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.
Introduction to Digital Logic Design
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 1 – Digital Systems and Information Logic.
Computers Organization & Assembly Language
CSC212 – Computer Organization and Design
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
Chapter 3 Data Representation
Chapter 2 Computer Hardware
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Number Systems Spring Semester 2013Programming and Data Structure1.
CS151 Introduction to Digital Design
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.
Number Systems and Codes
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
Chap 1. Digital Computers and Information Fall 2003 Sang-Hoon Oh Mokwon Univ.
Data Representation, Number Systems and Base Conversions
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
AEEE2031 Data Representation and Numbering Systems.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
MECH1500 Chapter 3.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Logic Design: Part 1.
Chapter 1: Binary Systems
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.
Overview 1-1 Information Representation
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
N 3-1 Data Types  Binary information is stored in memory or processor registers  Registers contain either data or control information l Data are numbers.
Chapter 1 Digital Systems and Binary Numbers
Number Systems and Codes
Lec 3: Data Representation
Number Representation
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CHAPTER 1 : INTRODUCTION
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
Chapter 3 Data Representation
Chapter 1 Digital Systems and Binary Numbers
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Number Systems and Codes
Overview Digital Systems and Computer Systems
Numbering System TODAY AND TOMORROW 11th Edition
COMS 161 Introduction to Computing
Number Systems Lecture 2.
COMS 161 Introduction to Computing
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1 Characteristics of a Digital System is its manipulation of discrete elements into information. Digital Systems deal with signals having a finite number of discrete values. In electronic implementations, these discrete elements can be represented by voltage intervals. In Analog systems variables are measured over a continuous range of intervals.

Representation of discrete elements Discrete elements of information are represented in a digital system by physical quantities called signals. These signals use two discrete values and as a result are known to be binary. Example: High/Low True/False I/O CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 2 The set of values {0, 1} defines a "2-valued" or "binary" alphabet. A sequence of symbols from a given alphabet is called a codeword.

Comparison of numbers in different bases DecimalsBinaryOctalsHexadecimals A B C D E F CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 3

Changing from other number bases to decimal A n  1 r n  1 + A n  2 r n  2 + ……+ A 1 r 1 + A 0 r 0 + A  1 r  1 + A  2 r  2 +….+ A  m + 1 r  m A  m r  m Each coefficient A i is one of the digits of given number system. The subscript value i gives the position of the coefficient and, hence, the weight r i by which the coefficient must be multiplied. (312.4) 5 = 3 x x x x 5  1 = (82.8) 10 CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 4 Note: 2 10 = Kilo, 2 20 = Mega, 2 30 = Giga

Changing decimal integers to binary This procedure requires division of decimal integers by 2 and making a note of the remainder. The first remainder obtained is referred to as the Least Significant Digit (LSD) and the last integer is referred to as the Most Significant Digit (MSD) rem 0LSD 2 6rem 1 2 3rem 0 2 1rem 1 0 MSD CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 5

Changing the fractional part of decimals to binary If the fraction part is 0.375, then we multiply the fractional by 2 and record the integer part in each calculation. We continue to do this until we obtain a string of zeros as our fractional part or observe a repeating pattern. Note: The direction of LSD and MSD is reversed in the fractional multiplication. Integer Part 2  = MSD 2  =  = 1.0 1LSD 6 CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU

Arithmetical Operations +, ,  on Binary     CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 

Base 2 Encodings An encoding is an assignment of codewords in one alphabet to each of the symbols in a second alphabet. In the design of electrical circuits it is desirable to use a binary alphabet to maximize the voltage interval that can be associated with each symbol in an "encoding" of characters by voltage levels. CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 8 Base 2 Encoding: Each integer is represented by its corresponding value in base 2. As the value of the integer gets larger, the number of bits required gets longer. Thus the codewords vary in length.

Binary Coded Decimal (BCD) In BCD each integer into binary, only the symbols 0 through 9 are represented by their corresponding base-2 equivalents. Each binary value is extended to four characters (bits) by adding leading 0’s to any binary value with fewer than four bits. The resulting codewords are: N U MCODEWORD CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU The BCD representation of an unsigned integer is obtained by concatenating the corresponding binary codes together. For example: 9132 would be encoded as NOTE: The message is actually 16 bits long. Spaces are not part of the encoding but are used to make clear each codeword in the message.

Gray Codes The codewords for consecutive integers differ in only one bit position. There are a number of possible solutions. One such solution is displayed in the table below. N U MCODEWORD CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 10 The advantage of using Gray Codes is that the amount of switching is minimized and the reliability of the switching circuitry is improved.

Odd and Even Parity Coded information can have one of the two types of parity. For odd parity each word must have an odd number of 1’s. Likewise for even parity each word must have an even number of 1’s. In the table on the right BCD codes with even parity have been shown. The parity P is made 1 when there are an odd number of 1’s. PABCD CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 11

Alphanumeric and ASCII Codes Alphanumeric Codes consists of the 26 letters of English Alphabets, the 10 decimal digits, and some special characters. See page of text. The American Standard Code for Information Interchange (ASCII) is a 7-bit code. However, modern day computers manipulate an 8-bit quantity known as byte. See page of text. CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 12