ITEC 352 Lecture 6 Back to binary. Binary Review Decoders 7 segment display Complexity of wiring Questions?

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Digital Fundamentals Floyd Chapter 2 Tenth Edition
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Representations Example: Numbers –145 –CVL – –91 –
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Lecture 3 Number System.
Level ISA3: Information Representation
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
ECE 331 – Digital System Design
Data Representation in Computers
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
COMP201 Computer Systems Number Representation. Number Representation Introduction Number Systems Integer Representations Examples  Englander Chapter.
Binary Number Systems.
NEGATIVE BINARY NUMBER – Digital Circuit 1 Choopan Rattanapoka.
Binary Representation and Computer Arithmetic
Number Systems - Part I CS 215 Lecture # 5.
The Binary Number System
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
CS105 INTRODUCTION TO COMPUTER CONCEPTS BINARY VALUES & NUMBER SYSTEMS Instructor: Cuong (Charlie) Pham.
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
1 Lecture 5 Floating Point Numbers ITEC 1000 “Introduction to Information Technology”
IT253: Computer Organization
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Chapter 2: The Logic of Compound Statements 2.5 Application: Number Systems and Circuits for Addition 1 Counting in binary is just like counting in decimal.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
1 Data Representation Characters, Integers and Real Numbers Binary Number System Octal Number System Hexadecimal Number System Powered by DeSiaMore.
Chapter 2 Number Systems: Decimal, Binary, and Hex.
Data Representation, Number Systems and Base Conversions
By Jariya Phongsai A two's-complement system is a system in which negative numbers are represented by the two's complement of the absolute value; this.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
ELEN 033 Lecture #5 Tokunbo Ogunfunmi Santa Clara University.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
Module 2.  In Module 1, we have learned basic number representation which include binary, octal, hexadecimal and decimal.  In digital systems, numbers.
NUMBER SYSTEMS.
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
Introduction to Digital Electronics Lecture 2: Number Systems.
Computer Organization 1 Data Representation Negative Integers.
Lecture 2: 8/29/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
DATA REPRESENTATION Data Types Complements Fixed Point Representations
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.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Lecture 4: Digital Systems & Binary Numbers (4)
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
Digital Logic & Design Dr. Waseem Ikram Lecture 02.
Positional Notation A positional or place-value notation is a numeral system in which each position is related to the next by a constant multiplier, called.
Chapter 3 Data Representation
Number Systems.
Overview Introduction Data representation Fixed Point Representation
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
Digital Logic & Design Lecture 02.
Digital Systems and Binary Numbers
Digital Logic Design (CSNB163)
Chapter 1 Number System RGGP, Narwana.
Data Representation and Organization
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

ITEC 352 Lecture 6 Back to binary

Binary Review Decoders 7 segment display Complexity of wiring Questions?

Binary Outline Homework Binary –May be short depending on what you remember from Discrete Math

Binary Questions How can you tell if a number is negative in binary? How can you tell if a number is in binary? How can you tell if a set of binary digits is a String? What do these questions lead you to believe about binary numbers?

Binary Numeral systems Numeral Vs. Number –same as difference between a word vs. the things it refers to. –numeral is a group of symbols that represents a number. E.g., 15 can be represented as: –15, Fifteen, XV (roman) What numeral system do we use everyday ?

Binary Numeral system (2) Any numeral system is characterized by the number of digits used to represent numbers. E.g., –Unary system: ? –Binary system: ? –Octal: ? –Decimal: ? The numeral system is called the base.

Binary Numeral system (3) If we had lots of numeral systems in use, things will get confusing: –E.g., What is: = ? –Is it: 30 ? 24? 12?

Binary Number Systems To make things easier for us: we use decimal number system as our base. Every number in any other base is converted to decimal for us to be able to understand. How do we do this conversion?

Binary Radix Determines the value of a number, by assigning a weight to the position of each digit. –E.g., Number 481 start all positions from 0. Position of “1” : 0; weight of position: 1 Position of “8” : 1; weight of position: 10 Position of “4” : 2; weight of position: 100 Hence number: 4* * * 1 –Weight is calculated as 10^position –Any decimal number can be represented this way. –10 is called the base or radix of the number system. We use notation () r to represent the radix. –E.g., the decimal number 481 can also be written as: (481) 10

Binary Other bases Octal Hexadecimal Does it matter that you can convert between them?

Binary Conversion Chart

Binary Basics Conversion –How do you do it? What is 10 in binary? What is 100 in binary?

Binary Adding Subtracting What is binary 1 + binary 0 = ? What about binary 1 + binary 1 = ? Addition is similar to decimal addition. –remember though that the answer will only use one of two digits: 0 or 1. How about subtraction?

Binary Subtraction 101 – 011 =

Binary Subtraction Subtraction introduces some challenges: –Answer maybe negative. How to represent negative binary numbers? –Subtraction isn’t easy: requires carry-ins… Can we make it easier? What type of subtractions are easy to implement? –Can we use the same circuit for addition and subtraction. ?

Binary Limitations TWO key limitations: It only represents positive numbers. –How do we accommodate negative numbers? What about numbers that have too many digits? –A computer is bound by its data bus in the number of digits it can handle. E.g., a 32 bit data bus, implies, the computer can store upto 32 bits for a basic data such as a byte. –Ofcourse, integers can be represented as multiple bytes, but this decreases the speed of compuration. –Solution: Floating Point Representation. Next: Representing negative numbers.

Binary Negative numbers Our goal: –We want a representation of negative numbers such that: Subtractions are as easy as additions: –Instead of subtraction we should be able to simply add. –Or –If it is a subtraction, there should be no carry. We have some facts at our disposal. The number of bits you can use to represent any number in a computer is limited.

Binary Complemen t notation. The invention of complements. –Assume our computer is limited to two digits. –Find x in the following equation (restricting answer to two digits): 54 – 45 = 54 + x –Introducing 10’s complement 10’s complement of 45 = 55 10’s complement of 99 = 1 –What is 54 + (10’s complement of 45) restricted to two digits ? –The 9’s complement for decimal digits: 9’s complement for 45 = 99 – 45 = 54 – = 108 – = 9 =

Binary One’s complement Invert all positions in the number To subtract, add the numbers If there is a carry out, add it to the first number in the result Done

Binary Question In one’s complement what are the following numbers?

Binary Questions On 3-bit architecture, what are all the positive and negative numbers that can be represented if numbers are represented in one’s complement notation? Write down the binary representations of all the numbers.

Binary Review Binary Numbering systems Addition / Subtraction One different way to represent them