Lecture 1: Introduction and Numbers

Slides:



Advertisements
Similar presentations
التصميم المنطقي Second Course
Advertisements

Chapter 1 Digital Systems and Numbers System
Chapter 1 Binary Systems 1-1. Digital Systems
Computer ArchitectureFall 2008 © August 25, CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (1)
Computer ArchitectureFall 2007 © August 29, 2007 Karem Sakallah CS 447 – Computer Architecture.
Mantıksal Tasarım – BBM231 M. Önder Efe
Number Systems Lecture 02.
+ CS 325: CS Hardware and Software Organization and Architecture Exam 1: Study Guide.
CS 105 Digital Logic Design
Arithmetic for Computers
Logic and Digital System Design - CS 303
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.
1 Digital Convergence! Smart Phone: IT + Telecommunication + Consumer Electronics + Entertainment Analog vs Digital system Ex: Watch, LP vs CD, Camera.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
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.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
Number Systems ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
1 Dr. Mohamed Abdur Rahman Office hours Sunday: 10:00- 12:00 & Tuesday: 3:00 - 3:50 Course website: Has been created
Digital Systems Digital Logic and Design Dr. Musab Bassam Zghool Text Book: Mano Morris M. “ Digital Logic And Computer Design ”
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ECE 2110: Introduction to Digital Systems
ECE DIGITAL LOGIC LECTURE 15: COMBINATIONAL CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 10/20/2015.
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)
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
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.
Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.
Unit I From Fundamentals of Logic Design by Roth and Kinney.
CS2100 Computer Organisation
Unit 1 Introduction Number Systems and Conversion.
Chapter 1 Digital Systems and Binary Numbers
Chap 3. Combinational Logic Design
디지털 로직 및 CAD 실습 Fundamentals of Logic Design (6e) Charles H. Roth, Jr.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CS2100 Computer Organisation
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Logic and Computer Organization
Lecture No. 4 Number Systems
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Chapter 2 Data Types and Representations
Logistics Always read the Calendar at
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
SICS 154 DIGITAL COMPUTER FUNDAMENTAL
Chapter 1 Digital Systems and Binary Numbers
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Chapter 1 Number Systems, Number Representations, and Codes
INTRODUCTION TO LOGIC DESIGN Chapter 1 Digital Systems and Binary Numbers gürtaçyemişçioğlu.
Data Representation Data Types Complements Fixed Point Representation
Digital Electronics & Logic Design
Digital Logic & Design Lecture 03.
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
Data Representation in Computer Systems
ECEG-3202 Computer Architecture and Organization
Data Representation – Chapter 3
Digital Systems and Binary Numbers
Overview Part 1 – Design Procedure Part 2 – Combinational Logic
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
2’s Complement form 1’s complement form 2’s complement form
ECE 331 – Digital System Design
Lecture 2: Number Systems
Chapter 1 Introduction.
Presentation transcript:

Lecture 1: Introduction and Numbers In this lecture, we will briefly introduce the scope of the class, concept of layered abstractions, and the number systems. Chap 1

In the beginning, Logic Gates AND, OR, NOT

Introduction Digital signals Analog signals Quantization Signals with discrete values. Analog signals Signals varying continuously over a specified range. Quantization A process to quantify an analog value into a digital value. Limits of accuracy imposed by the digital number system. (Length of bits used) Chap 1

Level of Abstractions Chap 1

Abstraction: lower level Abstraction (from the Latin abs, meaning away from and trahere, meaning to draw) is the process of taking away or removing characteristics from something in order to reduce it to a set of essential characteristics. Logic Course NAND Microelectronics VLSI Layout CMOSNAND CMOS NAND layout

Abstraction: somewhere in the middle Computer organization Operating system instruction set software hardware Instruction set architecture Processor of 600MHz, 1GHz, 2GHz, etc Processor of Non-pipelined Pipelined Superscalar OOO, etc ADD r2, r3, r4 Ripple adder Carry lookahead adder

Layer of Digital System Design Level of abstraction CAD A = B + C If A > 0, C = B/A . Algorithm level Adder Controller Memory Functional System design High level synthesis Logic gates/ net Logic synthesis Gate level (logic level) Logic design Circuit level Transistors Circuit design Geometric level Metal/silicon Physical synthesis Layout design Chap 1 VLSI fabrication

Switching Network Primary Inputs and Primary output Combinational network Sequential network Switching Network X1 Xm Y1 Yn Inputs Outputs Chap 1

Combinational Network Output values depend on the present value of the inputs and not on the past values Representation: Table, algebraic logic equations Simplification methodology: Karnaugh map, Quine-McCluskey procedure, Boolean algebra Yi = f(X1,.. Xm),e.g., ALU Combinational Network X1 Xm Y1 Inputs Outputs Yn Chap 1

Sequential Network Output values depend on the present value of the inputs and on the past input values Feedback signals Synchrnous logic (Wait for CLK) v.s. asynchronous logic (Does not wait for CLK.) Representation: timing diagram, state table, logic equations Simplification: techniques used in COM, state minimization Combinational Network PIs POs FF/Delay Register Chap 1

Number System Decimal Binary Weighted number system A decimal number: 123.5 = 1 x 102 + 2 x 101 + 3 x 100 + 5 x 10 -1 Binary A binary number: 0101 = 0 x 23 + 1 x 22 + 0 x 21 + 1 x 20 Weighted number system Wi is the weight assigned to digit in the ith position, Xi Wi is the ith power of a fixed integer R (R is the radix or base of the number system ) Chap 1

Number System: representation If R is the radix, then R digits (0, 1, 2, …R-1) are used. For example, N = (d4d3d2d1d0.d-1d-2) R = d4 x R4 +d3 x R3 + d2 x R2 + d1 x R1 + d0 x R0 + d-1 x R-1 + d-2 x R-2 , where di is the coeffieient of Ri and 0=< di =< R-1 Chap 1

Number System Examples 234.78 = 2 x 82 + 3 x 81 + 4 x 80 + 7 x 8-1 Hexdecimal number 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. AD0516 = A x 163 + D x 162 + 0 x 161 + 5 x 160. Chap 1

Typical Number System Binary, Decimal, Hexadecimal Why bothers? Chap 1

Number System Conversion Convert a decimal integer to base R? Example Convert 5310 to binary. 5310 = 1101012 53 26 1 13 6 3 Chap 1

Number System Conversion Convert a decimal integer to base R? N10 = (a n a n-1 .. a 0)R =an Rn + a n-1 R n-1 + … + a 1 R 1 + a0 R0 ={...{an R + a n-1 }R .....+a3}R + a 2}R + a 1 }R + a0 Therefore a0 can be found by N/R since a0 is the remainder. So does a1 to an. Chap 1

Number System Conversion cont. Convert a decimal fraction to base R? Example: Convert .62510 to binary. .62510= 0.1012 .625 x 2 1.250 .25 x 2 0.5 .5 1.0 a-1 = 1 a-2 = 0 a-3 = 1 Chap 1

Number System Conversion cont. Convert a decimal fraction to base R? F10 = (.a -1 a -2 .. a -m)R =a-1 R-1 + a -2 R -2 + … + a -m R -m =R-1{a-1 + R-1 {a -2 + R-1 {a-3 + …}}} Therefore a-1 can be found by F × R . (Remember that the goal is to find the coefficients.) The conversion process does not always terminate! Chap 1

Number System Conversion cont. Conversion between two bases other than decimal. Example 233.24 to base 7 Covert 233.24 to decimal first, then Use division by 7 to find the integer part and use multiplication by 7 to find the fraction part. Chap 1

Number System Conversion cont. Conversion between base 2 and base 8 (binary to octal) or binary and hexadecimal. Example 11000.110112 = 30.668 11000.110112 = 18.D816 Chap 1

Binary Arithmetic Addition Example: 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 0 + 1 = 1 1 + 0 = 1 1 + 1 = 0 (and carry 1 to the next column) Example: 1101 + 1011 1 1000 Chap 1

Binary Arithmetic cont. Subtraction 0 - 0 = 0 0 - 1 = 1 (borrow 1 from the next column) 1 - 0 = 1 1 - 1 = 0 Example: 1101 - 1011 0010 Chap 1

Binary Arithmetic Multiplication Example: 13 x 11 0 x 0 = 0 0 x 1 = 0 13: multiplicand 11: multiplier 1101 x 1011 0000 product 10001111 Chap 1

Binary Arithmetic Division Example: 145/11(Dividend/divisor) Quotient 10010001 1011 1110 1101 10 Quotient remainder Chap 1

Binary Codes for Decimal Digits (Table1-1) These codes are different from that obtained by conversion. Binary-coded-decimal (BCD, 8-4-2-1 BCD) Weighted code 6-3-1-1 code Excess-3 code (8-4-2-1) value + 3 2-out-of-5 code Exactly 2 out of the 5 bits are 1 Gray code Successive decimal digits differs in one bit. Chap 1

Binary Codes for Decimal Digits Why bothers? Implementation? Chap 1

Mirror method Generate reflective Gray code Prefix with 0 Chap 1

ASCII code America Standard Code for Information Interchange. Chap 1

7-segment display Seven-segment code Chap 1

Complement What is 2’s complement? 1’s complement Definition N* : 2’s complement of N ( a positive number of n bits) N* = 2n - N 1’s complement N# = (2n - 1) - N N* = 2n - N= (2n- 1- N) + 1= N# + 1 Chap 1

Negative Number 2’s complement for negative number Example: Use 4 bits and 2’s complement to represent -3 = 1101 why? 1101 MSB LSB b0 b3 Most significant bit Chap 1

Representation of Signed Number Use 4 bits to represent a signed number. +7 0111 0111 0111 +6 0110 0110 0110 +5 0101 0101 0101 +4 0100 0100 0100 +3 0011 0011 0011 +2 0010 0010 0010 +1 0001 0001 0001 +0 0000 0000 0000 -0 1000 1111 0000 -1 1001 1110 1111 -2 1010 1101 1110 -3 1011 1100 1101 -4 1100 1011 1100 -5 1101 1010 1011 -6 1110 1001 1010 -7 1111 1000 1001 -8 NA NA 1000 Decimal Signed 1’s C 2’s C bit Chap 1

Representation of Signed Number cont. Three signed number representations: Signed magnitude Use a sign bit: +22 = 010110, use 6-bit representation. -22 = 110110 You have +0 and –0. Radix complement representation (RC = 2’S) Diminished radix complement (DRC = 1’S) +0 = 000000 -0 = 111111 Chap 1

Overflow issues Unsigned overflow (usually called carry) If numbers are unsigned, then overflow occurs when the sum of the two numbers being added exceeds the number range of the word size. That is, if the most significant carry bit = 1, then overflow occurs. Signed overflow (2’s complement) CSBP: carry bit into the sign bit position CSBP+1: carry bit out of the sign bit position. If CSBP = CSBP+1, then no signed overflow If CSBP not equal to CSBP+1, then signed overflow occurs. Signed number is different from both (+) or both (-) Chap 1

Additions Addition 2’s complement 1’s complement Throw the last carry away. -3 1101 -4 1100 1 1001 1’s complement End-around carry + -3 1100 -4 1011 1 0111 1 1000 + Chap 1

DAC and ADC Digital to Analog Converter Chap 1

D2A Example: MP3 MP3, MPEG-1 or MPEG-2 Audio Layer III, is an encoding format for digital audio which uses a form of lossy data compression. Chap 1