Chapter 1. Digital Systems and Binary Numbers

Similar documents
Lecture (02) Operations on numbering systems

Korea University of Technology and Education

Lecture (03) Binary Codes Registers and Logic Gates

Digital Systems and Binary Numbers

Digital Systems and Binary Numbers

BINARY SYSTEM. Binary system is used in digital systems because it is:

Digital Systems and Binary Numbers

CS 121 Digital Logic Design. Chapter 1. Teacher Assistant. Hadeel Al-Ateeq

CHAPTER TWO. Data Representation ( M.MORRIS MANO COMPUTER SYSTEM ARCHITECTURE THIRD EDITION ) IN THIS CHAPTER

Binary Addition. Add the binary numbers and and show the equivalent decimal addition.

Computer Sc. & IT. Digital Logic. Computer Sciencee & Information Technology. 20 Rank under AIR 100. Postal Correspondence

Logic Circuits I ECE 1411 Thursday 4:45pm-7:20pm. Nathan Pihlstrom.

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

Digital Fundamentals

CHW 261: Logic Design

Computer Organization

Lecture 2: Number Systems

DIGITAL SYSTEM DESIGN

Digital Fundamentals

Number System. Introduction. Decimal Numbers

Binary Systems and Codes

Chapter 3: Number Systems and Codes. Textbook: Petruzella, Frank D., Programmable Logic Controllers. McGraw Hill Companies Inc.

SE311: Design of Digital Systems

MC1601 Computer Organization

Chapter 4. Combinational Logic

Hybrid Electronics Laboratory

Number representations

Numbering systems. Dr Abu Arqoub

MYcsvtu Notes DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

Chapter 1 Review of Number Systems

DIGITAL SYSTEM FUNDAMENTALS (ECE 421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE 422) COURSE / CODE NUMBER SYSTEM

Semester Transition Point. EE 109 Unit 11 Binary Arithmetic. Binary Arithmetic ARITHMETIC

Chap 1. Digital Computers and Information

Electronics Engineering ECE / E & T

Binary Codes. Dr. Mudathir A. Fagiri

CS & IT Conversions. Magnitude 10,000 1,

Chapter 3: part 3 Binary Subtraction

Number Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Digital Fundamentals

UNIT 7A Data Representation: Numbers and Text. Digital Data

D I G I T A L C I R C U I T S E E

A complement number system is used to represent positive and negative integers. A complement number system is based on a fixed length representation

COMP Overview of Tutorial #2

Decimal & Binary Representation Systems. Decimal & Binary Representation Systems

Review of Number Systems

Basic Definition INTEGER DATA. Unsigned Binary and Binary-Coded Decimal. BCD: Binary-Coded Decimal

CHAPTER 2 (b) : AND CODES

Logic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information

Computer Organization

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

Number Systems Base r

10.1. Unit 10. Signed Representation Systems Binary Arithmetic

EE 109 Unit 6 Binary Arithmetic

MACHINE LEVEL REPRESENTATION OF DATA

World Inside a Computer is Binary

CHAPTER 6 ARITHMETIC, LOGIC INSTRUCTIONS, AND PROGRAMS

Principles of Computer Architecture. Chapter 3: Arithmetic

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

Number Systems and Conversions UNIT 1 NUMBER SYSTEMS & CONVERSIONS. Number Systems (2/2) Number Systems (1/2) Iris Hui-Ru Jiang Spring 2010

UNIT - I: COMPUTER ARITHMETIC, REGISTER TRANSFER LANGUAGE & MICROOPERATIONS

IT 1204 Section 2.0. Data Representation and Arithmetic. 2009, University of Colombo School of Computing 1


Positional Number System

Digital Arithmetic. Digital Arithmetic: Operations and Circuits Dr. Farahmand

Part 2,Number Systems Questions

Binary. Hexadecimal BINARY CODED DECIMAL

Chapter (1) Eng. Mai Z. Alyazji

CO Computer Architecture and Programming Languages CAPL. Lecture 9

Microcomputers. Outline. Number Systems and Digital Logic Review

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes

Groups of two-state devices are used to represent data in a computer. In general, we say the states are either: high/low, on/off, 1/0,...

ECE 20B, Winter Purpose of Course. Introduction to Electrical Engineering, II. Administration

Number Systems CHAPTER Positional Number Systems

9/3/2015. Data Representation II. 2.4 Signed Integer Representation. 2.4 Signed Integer Representation

Chapter 2 Bits, Data Types, and Operations

CS/EE1012 INTRODUCTION TO COMPUTER ENGINEERING SPRING 2013 HOMEWORK I. Solve all homework and exam problems as shown in class and sample solutions

Data Representation and Binary Arithmetic. Lecture 2

Chapter 2. Data Representation in Computer Systems

Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library

Goals for this Week. CSC 2400: Computer Systems. Bits, Bytes and Data Types. Binary number system. Finite representations of binary integers

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

Chapter 2 Bits, Data Types, and Operations

Chapter 10 Binary Arithmetics

Introduction to Numbering Systems

in this web service Cambridge University Press

Signed Binary Numbers

Numeral Systems. -Numeral System -Positional systems -Decimal -Binary -Octal. Subjects:

Number Systems. Both numbers are positive

Chapter 4 Arithmetic Functions

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Binary Addition & Subtraction. Unsigned and Sign & Magnitude numbers

CHAPTER 2 Data Representation in Computer Systems

LOGIC CIRCUITS. Kirti P_Didital Design 1

CHAPTER 2 Data Representation in Computer Systems

COMPUTER ARITHMETIC (Part 1)

Ms Sandhya Rani Dash UNIT 2: NUMBER SYSTEM AND CODES. 1.1 Introduction

Basic Arithmetic (adding and subtracting)

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Transcription:

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 Binary (bit) 0 and 1 Binary codes General purpose digital computer Memory / central processing / input-output HDL Digital system = manipulate discrete quantities of information that are represented in binary form 2

1.2 Binary Numbers 3

1.3 Number-Base Conversions 4

5

1.4 Octal and Hexadecimal Numbers 6

1.5 Complements of Numbers 7

Subtraction with Complements 8

9

1.6 Signed Binary Numbers Plus / minus sign A bit at leftmost position (0 for positive, 1 for negative) Ex. 01001 9 (unsigned binary) +9 (signed binary) Ex. 11001 25 (unsigned binary) -9 (signed binary) Type of representation Signed-magnitude system 10001001 Signed-complement system 1 s complement: 11110110 2 s complement: 11110111 10

Arithmetic Addition Addition of two signed binary numbers with negative numbers represented in signed 2 s complement form Addition of the two numbers, including their sign bits Discard a carry out of the sign bit position Overflow is a problem in computers Number of bits that hold a number is finite A result that exceeds the finite value by 1 cannot be accommodated 11

Arithmetic Subtraction Take the 2 s complement of the subtrahend (including the sign bit) Add it to the minuend (including the sign bit) Discard a carry out of the sign bit position (-6)-(-13)=+7 1111 1010 1111 0011 = 1111 1010 + 0000 1101 = 1 0000 0111 12

1.7 Binary Codes Digital system Signal of two distinct values Circuit elements for two stable states Binary digits Any discrete element of information Represent with a binary code Patterns of 0 s and 1 s N bit binary code: a group of n bits that assumes up to 2 n distinct combinations of 1 s and 0 s Each combination representing one element of the set being coded Ex. (185) 10 = (0001 1000 0101) BCD = (1011 1001) 2 13

BCD Addition Maximum 9+9+1 = 19 (0001 1001)BCD 14

Decimal Arithmetic Represent sign of a decimal number with four bits to conform to the four bit code of the decimal digits To designate a plus with four 0 s and a minus with the BCD equivalent of 9, which is 1001 9 s or 10 s complement Addition by summing all digits, including the sign digit Discarding the end carry Assume that all negative numbers are in 10 s complement form 15

Other Decimal Codes BCD and 2421 code: weighted code Assign each bit position to a weighting factor Each digit can be evaluated by adding the weights of all the 1 s in the coded combination 2421 and excess 3 code: self complementing codes Obtain 9 s complement of a decimal number Directly changing 1 s to 0 s and 0 s to 1 s Excess 3: unweighted code Corresponding binary value plus 3 16

Gray Code Physical quantities are continuous Only one bit in the code group changes in going from one number to the next Normal sequence of binary numbers generated by the hardware may produce an error or ambiguity during the transition from one number to the next 0111 1000 Angular position of a shaft 17

ASCII Character Code 18

Control characters Format effectors / information separators / communication-control 19

Error-Detecting Code To detect errors in data communication and processing Add an eighth bit to the ASCII character to indicate its parity A parity bit is an extra bit included with a message to make the total number of 1 s either even or odd Leftmost position of the code to produce an even number of 1 s in the character for even parity or an odd number of 1 s in the character for odd parity Detects one, three, or any odd combination of errors in each character 20

1.8 Binary Storage and Registers Binary cell: a device that possesses two stable states and is capable of storing one bit (0 or 1) of information Register: a group of binary cells N-tuple of 1 s and 0 s Store discrete elements of information and that the same bit configuration may be interpreted differently for different types of data depending on the application Digital logic circuits Process the binary information stored in the registers 21

Register Transfer The basic elements for storing and holding the binary information 22

1.9 Binary logic 23

24

Logic Gates Electronic circuits that operate on one or more input signals to produce an output signal In a digital system, interpret voltages as two recognizable values (0 or 1) Voltage operated logic circuits: two separate voltage levels Logic 0 = 0V Logic 1 = 3V Acceptable range 25

Logic Gate Circuit Gate: block of hardware that produces the equivalent of logic 1 or logic 0 output signals if input logic requirements are satisfied Transition between logic values occur quickly, but not instantaneously 26