Major Numeric Data Types Unsigned Integers Signed Integers Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.

Slides:



Advertisements
Similar presentations
Fixed Point Numbers The binary integer arithmetic you are used to is known by the more general term of Fixed Point arithmetic. Fixed Point means that we.
Advertisements

Introduction to Digital Systems By Dr. John Abraham UT-Panam.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
COMP3221: Microprocessors and Embedded Systems Lecture 14: Floating Point Numbers Lecturer: Hui Wu Session 2, 2004.
Logic Circuits Another look at Floating Point Numbers Common Combinational Logic Circuits Timing Sequential Circuits Note: Multiplication & Division in.
ASCII Code Table (7 bit) UNICODE (16 bit) - UTF-8 provides a 16 bit superset of ASCII.
Major Numeric Data Types Unsigned Integers Signed Integer Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.
TCSS 371A Machine Organization. Getting Started Get acquainted Review syllabus Understand purpose, scope, and expectations of the course Discuss personal.
Number Systems Standard positional representation of numbers:
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
Integer Arithmetic Floating Point Representation Floating Point Arithmetic Topics.
Faculty of Computer Science © 2006 CMPUT 229 Digital Logic From Switches to Memories.
University College Cork IRELAND Number Systems, Data Types, Codes Logic Gates: An Introduction.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 2 Bits, Data Types & Operations Integer Representation Floating-point Representation.
ECE 331 – Digital System Design Transistor Technologies, and Realizing Logic Gates using CMOS Circuits (Lecture #23)
Simple Data Type Representation and conversion of numbers
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Computer Architecture Lecture 3: Logical circuits, computer arithmetics Piotr Bilski.
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
2-1 Chapter 2 - Data Representation Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Chapter Contents.
Computing Systems Basic arithmetic for computers.
Binary Arithmetic & Data representation
Data Representation and Computer Arithmetic
Computer Science Engineering B.E.(4 th sem) c omputer system organization Topic-Floating and decimal arithmetic S ubmitted to– Prof. Shweta Agrawal Submitted.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
9.4 FLOATING-POINT REPRESENTATION
Digital Logic Structures MOS transistors logic gates functional units of a computer.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Integer and Fixed Point P & H: Chapter 3
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
Instructor:Po-Yu Kuo 教師:郭柏佑
CEC 220 Digital Circuit Design Binary Codes
Binary Arithmetic.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
1. Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 2.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Introduction to Computing Systems and Programming Digital Logic Structures.
CMOS Logic Gates. NMOS transistor acts as a switch 2 When gate voltage is 0 V No channel is formed current does not flow easily “open switch” When gate.
Chapter 3 Digital Logic Structures
CMPUT Computer Organization and Architecture I1 CMPUT229 - Fall 2002 Topic 2: Digital Logic Structure José Nelson Amaral.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
Bits, Data types, and Operations: Chapter 2 COMP 2610 Dr. James Money COMP
Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 1.
COSC2410: LAB 2 BINARY ARITHMETIC SIGNED NUMBERS FLOATING POINT REPRESENTATION BOOLEAN ALGEBRA 1.
Floating Point Numbers
Floating Point Representations
Invitation to Computer Science, C++ Version, Fourth Edition
Chapter 4 Operations on Bits.
Number Systems and Binary Arithmetic
Data Representation Binary Numbers Binary Addition
NxN Crossbar design for Barrel Shifter
Instructor:Po-Yu Kuo 教師:郭柏佑
Floating Point Number system corresponding to the decimal notation
IEEE floating point format
Chapter 6 Floating Point
Invitation to Computer Science, Java Version, Third Edition
Lecture 10: Floating Point, Digital Design
Topic 3d Representation of Real Numbers
Chapter 2 Bits, Data Types & Operations Integer Representation
Number Representations
Data Representation Data Types Complements Fixed Point Representation
Digital Logic & Design Lecture 03.
Instructor:Po-Yu Kuo 教師:郭柏佑
Overview Fractions & Sign Extension Floating Point Representations
Number Representations
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

Major Numeric Data Types Unsigned Integers Signed Integers Alphanumeric Data – ASCII & UNICODE Floating Point Numbers

Signed Binary Integers:

2’s Complement Arithmetic Addition Subtraction Multiplication, Division

Overflow Adding two numbers which results In a sum that is too large to store: A + B A - B

Alphanumeric Data Representation: ASCII Code Table (7 bit) Packed? Unpacked? UNICODE (16 bit) - UTF-8 provides a 16 bit superset of ASCII

Floating Point Numbers Example: x Sign Fraction Exponent

Single Precision Floating Point Numbers IEEE Standard 32 bit Single Precision Floating Point Numbers are stored as: S EEEEEEEE FFFFFFFFFFFFFFFFFFFFFFF S: Sign – 1 bit E: Exponent – 8 bits F: Fraction – 23 bits The value V: If E=255 and F is nonzero, then V= NaN ("Not a Number") If E=255 and F is zero and S is 1, then V= - Infinity If E=255 and F is zero and S is 0, then V= Infinity If 0<E<255 then V= (-1)**S * 2 ** (E-127) * (1.F) (exponent range = -127 to +128) If E=0 and F is nonzero, then V= (-1)**S * 2 ** (-126) * (0.F) ("unnormalized" values”) If E=0 and F is zero and S is 1, then V= - 0 If E=0 and F is zero and S is 0, then V = 0 Note: 255 decimal = in binary (8 bits)

Double Precision Floating Point Numbers IEEE Standard 64 bit Double Precision Floating Point Numbers are stored as: S EEEEEEEEEEE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF S: Sign – 1 bit E: Exponent – 11 bits F: Fraction – 52 bits The value V: If E=2047 and F is nonzero, then V= NaN ("Not a Number") If E=2047 and F is zero and S is 1, then V= - Infinity If E=2047 and F is zero and S is 0, then V= Infinity If 0<E<2047 then V= (-1)**S * 2 ** (E-1023) * (1.F) (exponent range = to +1024) If E=0 and F is nonzero, then V= (-1)**S * 2 ** (-1022) * (0.F) ("unnormalized" values) If E=0 and F is zero and S is 1, then V= - 0 If E=0 and F is zero and S is 0, then V= 0 Note: 2047 decimal = in binary (11 bits)

Underflow A calculation in floating point that results in a result that is “essentially” zero, i.e. too small to represent in floating point notation.

Round off Errors Errors due to inherent imprecision of computers / computation

Chapter 3 Digital Logic Structures The Transistor CMOS Devices Implementing Logic with CMOS Devices Combinational Logic Circuits Decoders Mux’s Full Adder PLA’s

Introduction to MOS MOS = Metal Oxide Semiconductor technology NMOS =N-Type MOS device (N Channel transistor) PMOS = P-Type MOS device (P Channel transistor) CMOS = Complementary MOS device N-type MOS: 2.5 to 5 volt supply (battery) ground A logic 1 (battery voltage) on the “Gate” turns on the light

Basic Logic Gate Symbols

N-Type MOS Devices

P-Type MOS Devices

CMOS Device - Inverter p channel device n channel device CMOS Inverter 3-5 volts

CMOS NOR Gate NOR Gate

CMOS OR Gate OR Gate

CMOS AND Gate AND Gate

Basic Logic Gate Symbols Note: NAND and NOR gates are “universal” gates. AND, OR, NOT gates can all be created by either NAND or NOR gates.

DeMorgan’s Theorem/Law (NOT A) and (NOT B) = NOT (A or B) (NOT A) or (NOT B) = NOT (A and B) Prove DeMorgan’s with truth tables A or B = NOT( (NOT A) and (NOT B) ) NOT (A or B) = (NOT A) and (NOT B)