Ch. 10 – Fundamentals of Logic Circuits So far, the circuits we’ve discussed were analog circuits, meaning that circuit parameters such as voltage and.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
Number Systems Discussion D4.1 Appendix C. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
Digital Circuit Why Digital Circuit? – Digital signals ( 0 and 1) are very easy to handle with electronic circuits only 2 states needed: Switch ON or OFF,
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
1 Binary Arithmetic, Subtraction The rules for binary arithmetic are: = 0, carry = = 1, carry = = 1, carry = = 0, carry =
Negative Numbers Module M3.3 Section 2.4. Negative Numbers Subtract by adding ’s complement Ignore carry.
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
Mantıksal Tasarım – BBM231 M. Önder Efe
1 Week 3: Data Representation: Negative Numbers READING: Chapter 3.
Programmable Logic Controllers
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Chapter 7 Arithmetic Operations and Circuits Binary Arithmetic Addition –When the sum exceeds 1, carry a 1 over to the next-more-significant column.
Logic and Digital System Design - CS 303
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Dale & Lewis Chapter 3 Data Representation. Data and computers Everything inside a computer is stored as patterns of 0s and 1s Numbers, text, audio, video,
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
Chapter 2 Number Systems + Codes. Overview Objective: To use positional number systems To convert decimals to binary integers To convert binary integers.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
1 Digital Design: Number Systems Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals of Logic.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
ECE 331 – Digital System Design
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
BR 8/99 Binary Numbers Again Recall than N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to 255.
Positional Number Systems
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
Data Representation in Computer Systems. 2 Signed Integer Representation The conversions we have so far presented have involved only positive numbers.
Two’s Complement. A system used to represent a negative number in binary A system used to represent a negative number in binary Positive numbers start.
Addition and Substraction
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Number Systems and Bitwise Operation.
Digital Systems Digital Logic and Design Dr. Musab Bassam Zghool Text Book: Mano Morris M. “ Digital Logic And Computer Design ”
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Phys 4330 Digital ElectronicsBinary System Digital circuits process signals that contain just two voltage levels or states, labeled logic "0" and logic.
CEC 220 Digital Circuit Design Binary Arithmetic & Negative Numbers Monday, January 13 CEC 220 Digital Circuit Design Slide 1 of 14.
Outline Binary Addition 2’s complement Binary Subtraction Half Adder
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
NUMBER SYSTEMS.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
©2010 Cengage Learning SLIDES FOR CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION Click the mouse to move to the next page. Use the ESC key to exit.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
1 EGR 277 – Digital Logic Syllabus Office Hours No food or drinks in the classrooms Web page (demonstration) Lecture #1 EGR 277 – Digital Logic Reading.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
Unit I From Fundamentals of Logic Design by Roth and Kinney.
Unit 1 Introduction Number Systems and Conversion.
Sistem Bilangan Oleh : Sri Heranurweni.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
Digital Systems and Binary Numbers
ECE 301 – Digital Electronics
Number Systems.
Presentation transcript:

Ch. 10 – Fundamentals of Logic Circuits So far, the circuits we’ve discussed were analog circuits, meaning that circuit parameters such as voltage and current were continuous quantities. 1

What would happen if we sample the instantaneous value at specific times? Then we would get a series of discrete values that approximate the continuous quantity. 2

Discrete values that approximate [represent] continuous functions lead to the concept of a digital circuit. The simplest digital circuits consist of two possible signal values. These circuits are binary in nature, and are represented with binary numbers. 3

Number Systems We commonly use a decimal, or Base 10, number system. Why? It turns out that the number 10 does not have very nice mathematical properties. It is rather difficult and awkward to implement a digital circuit based on the number 10. 4

Number Systems A power of the number 2 (the number of binary states) works much better. 2, 4, 8, 16, 32, 64, … We will look at two of these number systems in some detail: Base 2 (binary) and Base 16 (hexadecimal) We’ll compare/contrast them with the good old (but mathematically awkward) Base 10 (decimal) system. 5

Number Systems The decimal, binary, and hexadecimal number systems are place-valued number systems, where each digit takes on a weighting based on the place within the number that it appears. Not all number systems are place valued. Some are based on combinations of numerals. © MCMLXIV I = 1 V = 5 X = 10 L = 50 C = 100 D = 500 M =

Number Systems In Base 10, we have the following place values: s100s10s1s 1/10th 1/100th 1/1000th      = 400 = 30 = 5 = 0.6 = In Base 10, we have the digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. 7

Number Systems In Base 2, we have the following place values: s4s2s1s 1/2th 1/4th 1/8th      2 -2 = 4 = 2 = 0 = In Base 2, we have the digits: 0 and 1. 8

Number Systems In Base 16, we have the following place values: s256s16s1s 1/16th 1/256th 1/4096th. 6C3.DA 6      = 1536 = 192 = 3 = = In Base 16, we have the digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9 A, B, C, D, E, and F.

Binary to decimal conversion: –Convert to decimal Decimal to binary conversion: –Convert to binary Number Conversion

Binary to decimal conversion: –Convert to decimal –16×1 + 8×0 + 4×0 + 2×1 + 1×1 = Decimal to binary conversion: –Convert to binary –32×1 + 16×0 + 8×1 + 4×1 + 2×1 + 1×1 = Number Conversion

Converting Between Base 2 and Base 16 Since 16 = 2 4, we can group binary digits into groups of 4 binary digits (bits) and convert each group of 4 bits to hexadecimal (hex) separately =11  22 8+4=12  4+2+1=7  B 2 C 7 ( ) 2 = B2C

2 0 = 2 1 = 2 2 = 2 3 = 2 4 = 2 5 = 2 6 = 2 7 = 2 8 = 2 9 = 2 10 = 2 11 = 2 12 = 2 13 = 2 14 = 2 15 = Powers of Two

2 0 = = = = = = = = 128 Handy to memorize up to = = = = = = = = Powers of Two

Converting Between Decimal, Hexa, and Binary 15

Binary Arithmetic Addition: = = = 10 sum carry One’s Complement: Toggle each bit (make each “0” a “1” and each “1” a “0”) Number: ’s Complement: Two’s Complement: One’s Complement + 1 Number: ’s Complement: ’s Complement: Subtraction: A – B = A + (– B) = A + (2’s Complement of B) OR 1 – 0 = – 101 = 001 (Borrow) MSB of a 2’s Complement number is the sign bit (0=positive, 1=negative) 16

Binary Subtraction Example (Complement) – ’s Complement – ’s Complement Check using Decimal Subtraction: = = – ignore 111 check 17

Binary Subtraction Example (Borrow) 110 – 101 Borrow from – Subtract Check using Decimal Subtraction: = = – check 18