EE292: Fundamentals of ECE

Similar documents
Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

EE 109 Midterm Review

Chapter 1: Digital logic

DESIGN OF 4 BIT BINARY ARITHMETIC CIRCUIT USING 1 S COMPLEMENT METHOD

Lecture 2. Digital Basics

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

INTRODUCTION TO DIGITAL CONCEPT

EE100Su08 Lecture #16 (August 1 st 2008)

Lecture 2: Data Representation

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

Chapter 1 Binary Systems

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Unit 3. Logic Design

IES Digital Mock Test

Digital Circuits Introduction

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

UNIT-IV Combinational Logic

Analog to digital and digital to analog converters

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero.

DESIGN OF MODIFIED AND UNERRING FOUR BIT BINARY SIGNED SUBTRACTOR

Design IV. E232 Fall 07

= (2 3 ) = c LAMC Beginners Circle September 29, Oleg Gleizer. Warm-up

BCD Adder. Lecture 21 1

Data Acquisition: A/D & D/A Conversion

Computer Architecture Lab Session

Lecture #1. Course Overview

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Chapter 10 Error Detection and Correction 10.1

Digital Integrated CircuitDesign

DIGITAL LOGIC CIRCUITS

Chapter 8. Chapter 9. Chapter 6. Chapter 10. Chapter 11. Chapter 7

DIGITAL ELECTRONICS QUESTION BANK

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Propagation Delay, Circuit Timing & Adder Design. ECE 152A Winter 2012

Propagation Delay, Circuit Timing & Adder Design

EECS 452 Midterm Exam Winter 2012

EE482: Digital Signal Processing Applications

Electronics. Digital Electronics

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

4:Combinational logic circuits. 3 July

Lecture 02: Digital Logic Review

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Abstract. 1. Introduction. Department of Electronics and Communication Engineering Coimbatore Institute of Engineering and Technology

Introduction (concepts and definitions)

ECE 124 Digital Circuits and Systems Winter 2011 Introduction Calendar Description:

Course Outline Cover Page

Computer Arithmetic (2)

EE19D Digital Electronics. Lecture 1: General Introduction

LogicBlocks & Digital Logic Introduction

Lecture 11 Digital Circuits (I) THE INVERTER

Lab 5. Binary Counter

UNIT III. Designing Combinatorial Circuits. Adders

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Lab 6. Binary Counter

TIP551. Optically Isolated 4 Channel 16 Bit D/A. Version 1.1. User Manual. Issue December 2009

Lessons In Electric Circuits, Volume IV Digital. By Tony R. Kuphaldt

Digital. Design. R. Ananda Natarajan B C D

Logic diagram: a graphical representation of a circuit

Combinational Logic Circuits. Combinational Logic

LogicBlocks & Digital Logic Introduction a

EECS 452 Midterm Exam (solns) Fall 2012

Introduction. BME208 Logic Circuits Yalçın İŞLER

Gujarat University B. Sc. Electronics Semester I: ELE (Effective from: )

Lecture 12 - Digital Circuits (I) The inverter. October 20, 2005

EE521 Analog and Digital Communications

DISCUSSION #8 FRIDAY MAY 25 TH Sophie Engle (Teacher Assistant) ECS20: Discrete Mathematics

Positive and Negative Logic

Appendix C. LW400-09A Digital Output Option

EXPERIMENT NO 1 TRUTH TABLE (1)

Bellwork Teacher selected Prior Knowledge Over the last few days we have been working with exponents and also learning about scientific notation.

C SC 483 Chess and AI: Computation and Cognition. Lecture 3 September 10th

Lecture 11 Circuits numériques (I) L'inverseur

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010

TABLE 3-2 Truth Table for Code Converter Example

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

COMBINATIONAL CIRCUIT

A/D Converter An electronic circuit that transforms an analog signal into a digital form that can be used by a computer or other digital circuits.

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

DIGITAL LOGIC DESIGN (ELE 241)

Designing Information Devices and Systems II Fall 2017 Note 1

CS302 - Digital Logic Design Glossary By

*************************************************************************

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Unit level 4 Credit value 15. Introduction. Learning Outcomes

What is Digital Logic? Why's it important? What is digital? What is digital logic? Where do we see it? Inputs and Outputs binary

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

Digital Imaging Rochester Institute of Technology

EE 42/100 Lecture 23: CMOS Transistors and Logic Gates. Rev A 4/15/2012 (10:39 AM) Prof. Ali M. Niknejad

F2-04AD-2, F2-04AD-2L 4-Channel Analog Voltage Input

Module 3: Physical Layer

NZQA registered unit standard version 1 Page 1 of 6

Digital Logic Circuits

Electrical Engineering 40 Introduction to Microelectronic Circuits

Digital Electronics Course Objectives

The Problem. Tom Davis December 19, 2016

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

Transcription:

EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 21 121113 http://www.ee.unlv.edu/~b1morris/ee292/

2 Outline Chapter 7 - Logic Circuits Binary Number Representation Binary Arithmetic Combinatorial Logic

3 Logic Circuits Analog signal signal of continuous time variable with a continuous range of outputs The signal has an infinite range of values at any time E.g. a speech signal Digital signal a signal with discrete time variable and only a few restricted amplitude values

4 Digital Signals Computers are examples of digital circuits They operate on digital signals Binary signals are the most common type of signal The output of a binary signal takes only two possible values The two output values are often given logical values of a 1 or 0 Often digital signals often come from physical analog processes The analog signal is converted into a digital form for processing in a computer

5 Digital Noise Advantage Digital signals are robust to noise The exact signal value is not required Rely on logic values Today it is possible to manufacture large numbers of digital logic circuits on integrated circuits because of this simplification

6 Positive Logic Logical 1 The higher amplitude value in a binary system E.g. 5 volts Also known as high, true, or on Logical 0 The lower amplitude in a binary system E.g. 0 volts Also known as low, false, or off Logic variables signals in logic systems that switch between high and low Will be denoted by uppercase letters (E.g. A, B, C)

7 Logic Ranges and Noise Margins Logic circuits are designed to have a range of input voltages map to a logical high or low V IL - largest input value for logic 0 at input V IH - smallest input value for logic 1 at input V OL - largest output value for logic 0 at input V OH - smallest output value for logic 1 at input Input and output have different logical ranges due to noise The difference is known as the noise margin

8 Digital Words Bit a single binary digit Smallest amount of information that can be represented in a digital system Represents a yes/no for a digital variable E.g. R = 0, represents not raining while R = 1, represents raining In order to represent more complex information, bits can be combined into digital words A byte is 8 bits and a nibble is 4 bits (used often in computers, e.g. a byte to represent each key on a keyboard) Example RWS R for rain, W for wind, S for sunny RWS = 110 indicates it is raining, with winds, and cloudy (e.g. not sunny)

9 Representation of Numerical Data Digital words allow representation of more complex values by concatenating digital variables Only binary yes/no results were allowed RWS allowed 2 3 different combinations of weather conditions Need a way to represent the wide range of values encountered in the physical world Must be able to convert real numbers into a binary form for computation in a digital fashion

10 Decimal Representation of Numbers Consider a decimal number (base 10) This is what we as humans are familiar with Example 743.2 10 This is interpreted as 7 10 2 + 4 10 1 + 3 10 0 + 2 10 1 Each digit is a multiplier by 10 d d is the digit location Positive to the left of decimal point and negative to the right

11 Binary Representation of Numbers Use the same technique as for decimal but instead use base 2 numbers Example 1101.1 2 1 2 3 + 1 2 2 + 0 2 1 + +1 2 0 + 1 2 1 1 2 3 = 8 1 2 2 = 4 1 2 0 = 1 1 2 1 = 0.5 1101.1 = 13.5 Notice the subscript is used to indicate what the base to use for the number interpretation

12 Numerical Binary Words Enumerate all combinations of values for binary word An N bit word can represent 2 N different numbers Let N = 4, then there are 2 4 = 16 different values that can be represented Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 The leading zeros are presented in binary form because the digital circuits typically operate on fixed size words

13 Positional Notation for Numbers Base B number B symbols per digit Base 10 (Decimal): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Base 2 (binary) 0, 1 Number representation d 31 d 30 d 2 d 1 d 0 is 32 digit number Value = d 31 B 31 + d 30 B 30 + + d 1 B 1 + d 0 B 0 Examples (Decimal): 90 = 9 10 1 + 0 10 0 (Binary): 1011010 = 1 2 6 + 0 2 5 + 1 2 4 + 1 2 3 + 0 2 2 + 1 2 1 + 0 2 0 = 64 + 16 + 8 + 2 = 90 7 binary digits needed for 2 digit decimal number

14 Hexadecimal Number: Base 16 More human readable than binary Base with easy conversion to binary Any multiple of 2 base could work (e.g. octal) Hexadecimal digits Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Hex (16) 0 1 2 3 4 5 6 7 8 9 A B C D E F octal (8) 0 1 2 3 4 5 6 7 1 hex digit represents 16 decimal values or 4 binary digits Will use 0x to indicate hex digit

15 Hex/Binary Conversion Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 hex 0 1 2 3 4 5 6 7 8 9 A B C D E F Convert between 4-bits and a hex digit using the conversion table above Examples 1010 1100 0101 (binary) = 0xAC5 10111 (binary) = 0001 0111 (binary) = 0x17 0x3F9 = 0011 1111 1001 (binary) = 11 1111 1001 (binary)

16 Signed Numbers N bits represents 2 N values Unsigned integers Range [0, 2 32-1] How can negative values be indicated? Use a sign-bit Boolean indicator bit (flag)

17 Sign and Magnitude 16-bit numbers +1 (decimal) = 0000 0000 0000 0001 = 0x0001-1 (decimal) = 1000 0000 0000 0001 = 0x8001 Problems Two zeros 0x0000 0x8000 Complicated arithmetic Special steps needed to handle when signs are same or different (must check sign bit)

18 Ones Complement Complement the bits of a number +1 (decimal) = 0000 0000 0000 0001 = 0x0001-1 (decimal) = 1111 1111 1111 1110 = 0xFFFE Positive number have leading zeros Negative number have leading ones Arithmetic not too difficult Still have two zeros

19 Two s Complement Subtract large number from a smaller one Borrow from leading zeros Binary Result has leading ones 0011 3 0100 4 Unbalanced representation 1111-1 Leading zeros for positive 2 N-1 non-negatives Leading ones for negative number 2 N-1 negative number One zero representation First bit is sign-bit (must indicate width) Value = d 31-2 31 + d 30 2 30 + + d 1 2 1 + d 0 2 0 Negative value for sign bit Decimal

20 Two s Complement Negation Shortcut = invert bits and add 1 Number + complement = 0xF..F = -1 x + x = 1 x + 1 = x Example x 1111 1110 x 0000 0001 x + 1 0000 0010

21 Two s Complement Sign Extension Machine s have fixed width (e.g. 32-bits) Real numbers have infinite width (invisible extension) Positive has infinite 0 s Negative has infinite 1 s Replicate sign bit (msb) of smaller container to fill new bits in larger container Example 1111 1111 1111 1110 1111 1111 1111 1111 1111 1111 1111 1110

22 Overflow Fixed bit width limits number representation Occurs if result of arithmetic operation cannot be represented by hardware bits Example 8-bit: 127 + 127 Binary Decimal 0111 1111 127 0111 1111 127 1111 1110-2 (254)