Digital Circuits Introduction

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

EE100Su08 Lecture #16 (August 1 st 2008)

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

EE 330 Lecture 5. Basic Logic Circuits Complete Logic Family Other Logic Styles. Improved Device Models. complex logic gates pass transistor logic

Combinational Logic Gates in CMOS

EE 330 Lecture 5. Basic Logic Circuits Complete Logic Family Other Logic Styles. complex logic gates

EEC 118 Lecture #11: CMOS Design Guidelines Alternative Static Logic Families

I. Digital Integrated Circuits - Logic Concepts

CPE/EE 427, CPE 527 VLSI Design I CMOS Inverter. CMOS Inverter: A First Look

Chapter # 1: Introduction

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

EE241 - Spring 2002 Advanced Digital Integrated Circuits

De Morgan s second theorem: The complement of a product is equal to the sum of the complements.

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

Chapter 1: Digital logic

ELEC 350L Electronics I Laboratory Fall 2012

Digital Microelectronic Circuits ( ) CMOS Digital Logic. Lecture 6: Presented by: Adam Teman

EE292: Fundamentals of ECE

Lecture 02: Logic Families. R.J. Harris & D.G. Bailey

In this lecture: Lecture 8: ROM & Programmable Logic Devices

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

Chapter 6 DIFFERENT TYPES OF LOGIC GATES

ECE/CoE 0132: FETs and Gates

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

Synthesis of Combinational Logic

Digital Logic Circuits

Reading. Lecture 17: MOS transistors digital. Context. Digital techniques:

Lecture 11 Digital Circuits (I) THE INVERTER

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Digital Integrated CircuitDesign

University of Technology

EE 330 Lecture 5. Other Logic Styles Improved Device Models Stick Diagrams

Designing Information Devices and Systems II Fall 2017 Note 1

Computer Organization and Components

Digital Fundamentals

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

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

Lecture 16. Complementary metal oxide semiconductor (CMOS) CMOS 1-1

EE 330 Lecture 5. Other Logic Styles. Improved Device Models. complex logic gates pass transistor logic

Computer Hardware Engineering (IS1200) Computer Organization and Components (IS1500) Fall 2017 Lecture 7: Combinational Logic

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

Digital Fundamentals

ECE 471/571 Combinatorial Circuits Lecture-7. Gurjeet Singh

SYNTHESIS OF COMBINATIONAL CIRCUITS

2-Bit Magnitude Comparator Design Using Different Logic Styles

Chapter 6 DIFFERENT TYPES OF LOGIC GATES

Session 10: Solid State Physics MOSFET

General Structure of MOS Inverter

Gates and Circuits 1

Lecture 13 - Digital Circuits (II) MOS Inverter Circuits. October 25, 2005

Digital Fundamentals 9/4/2017. Summary. Summary. Floyd. Chapter 3. The Inverter

First Optional Homework Problem Set for Engineering 1630, Fall 2014

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

Propagation Delay, Circuit Timing & Adder Design

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

Lecture #1. Course Overview

EXPERIMENT 4 CMOS Inverter and Logic Gates

Topic 6. CMOS Static & Dynamic Logic Gates. Static CMOS Circuit. NMOS Transistors in Series/Parallel Connection

Digital Fundamentals 8/29/2016. Summary. Summary. Floyd. Chapter 3 A X. The Inverter

Satish Chandra, Assistant Professor, P P N College, Kanpur 1

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Combinational Circuits DC-IV (Part I) Notes

Chapter 3 Digital Logic Structures

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ Grading scheme. Review.

Chapter # 1: Introduction

Digital Microelectronic Circuits ( ) Pass Transistor Logic. Lecture 9: Presented by: Adam Teman

Lecture Summary Module 1 Switching Algebra and CMOS Logic Gates

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

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

EE241 - Spring 2006 Advanced Digital Integrated Circuits. Notes. Lecture 7: Logic Families for Performance

EEE 301 Digital Electronics

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

Gates and and Circuits

DIGITAL ELECTRONICS QUESTION BANK

Integrated Circuits & Systems

Unit level 4 Credit value 15. Introduction. Learning Outcomes

VLSI Logic Structures

Integrated Circuits -- Timing Behavior of Gates

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

Logic diagram: a graphical representation of a circuit

Lecture 13. Biasing and Loading Single Stage FET Amplifiers. The Building Blocks of Analog Circuits - III

Logic Design I (17.341) Fall Lecture Outline

LECTURE 7. OPERATIONAL AMPLIFIERS (PART 2)

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

VLSI Design. Static CMOS Logic

EE 330 Lecture 43. Digital Circuits. Other Logic Styles Dynamic Logic Circuits

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

CMOS VLSI Design (A3425)

ENG2410 Digital Design CMOS Technology. Fall 2017 S. Areibi School of Engineering University of Guelph

Digital Integrated Circuits Designing Combinational Logic Circuits. Fuyuzhuo

Lecture 02: Digital Logic Review

The CMOS Inverter. Lecture 3a Static properties (VTC and noise margins)

PREVIEW COPY. Digital Logic Systems. Table of Contents. Digital Logic Fundamentals...3. Logic Building Blocks Medium- and Large-Scale ICs...

Improved Inverter: Current-Source Pull-Up. MOS Inverter with Current-Source Pull-Up. What else could be connected between the drain and V DD?

Digital Electronics Course Objectives

Chapter 4 Logic Functions and Gates

Lecture 15 Analysis of Combinational Circuits

CS302 - Digital Logic Design Glossary By

A-data new-a. Data here. B-data new-b. Digital Circuits V CC. ECGR2181 Chapter 3 Notes 3-1. Logic System Design I

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Transcription:

Lecture #6 OUTLINE Logic inary representations Combinatorial logic circuits Chap 7-7.5 Reading EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu Digital Circuits Introduction nalog: signal amplitude is continuous with time. Digital: signal amplitude is represented by a restricted set of discrete numbers. inary: only two values are allowed to represent the signal: High or low (i.e. logic or ). Digital word: Each binary digit is called a bit series of bits form a word yte is a word consisting of 8-bits dvantages of digital signal Digital signal is more resilient to noise can more easily differentiate high () and low () Transmission Parallel transmission over a bus containing n wires. aster but short distance (internal to a computer or chip) Serial transmission (transmit bits sequentially) Longer distance EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 2

inary Representation N bit can represent 2 N values: typically from to 2 N - 3-bit word can represent 8 values: e.g.,, 2, 3, 4, 5, 6, 7 Conversion Integer to binary raction to binary (3.5 =. 2 and.392 =. 2 ) Octal and hexadecimal EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 3 Logic Gates and Memories Logic gates Combine several logic variable inputs to produce a logic variable output Memory Memoryless: output at a given instant depends the input values of that instant. Momory: output depends on previous and present input values. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 4 2

oolean algebras are algebraic structures which "capture the essence" of the logical operations ND, OR and NOT as well as the corresponding set theoretic operations intersection, union and complement. They are named after George oole, an English mathematician at University College Cork, who first defined them as part of a system of logic in the mid 9th century. Specifically, oolean algebra was an attempt to use algebraic techniques to deal with expressions in the propositional calculus. Today, oolean algebras find many applications in electronic design. They were first applied to switching by Claude Shannon in the 2th century. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 5 oolean algebras The operators of oolean algebra may be represented in various ways. Often they are simply written as ND, OR and NOT. In describing circuits, NND (NOT ND), NOR (NOT OR) and XOR (exclusive OR) may also be used. Mathematicians often use for OR and for ND (since in some ways those operations are analogous to addition and multiplication in other algebraic structures) and represent NOT by a line drawn above the expression being negated. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 6 3

oolean lgebra NOT operation (inverter) g = = ND operation g = g = g= g = g ( g) gc = g( gc) OR operation = = = = ( ) C = ( C) EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 7 Graphic Representation g = = ull square = complete set = Yellow part = NOT() = White circle = EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 8 4

Graphic Representation = = ( ) g( ) = g Exclusive OR=yellow and blue part intersection/overlap part =exactly when only one of the input is true EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 9 oolean lgebra Distributive Property g( C) = g gc ( ) gc = ( ) g( C) De Morgan s laws = g g = n excellent web site to visit http://en.wikipedia.org/wiki/oolean_algebra EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 5

Examples = C C (CD) (DE) = C (DE) D E EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu Logic unctions, Symbols, & Notation TRUTH NME SYMOL NOTTION TLE NOT = OR = ND = EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 2 6

7 EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 3 Logic unctions, Symbols, & Notation 2 NOR = NND = XOR (exclusive OR) = EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 4 Circuit Realization ( ) ( ) = = = g g

an in/an out Complex digital operations are formed with a variety of gates interconnected to yield the desired logic function. Sometimes a number of inputs are connected to one gate input and output of a gate may be connected to a number of gates. an-in: the maximum number of logic gates that can be connected at the input of a gate without altering its performance. an-out: the maximum number of logic gates that can be connected to the output of a gate without altering its performance. Typical fan-in and fan-out numbers are 3. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 5 Inverter = NOT Gate V in V out Ideal Transfer Characteristics V out V/2 V V in EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 6 8

NMOS Resistor Pull-Up Circuit: Voltage-Transfer Characteristic v OUT R D i D v IN i D v DS = v OUT v IN = V T v IN /R D v GS = v in V T increasing v GS = v IN > V T v DS EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 7 Disadvantages of NMOS Logic Gates Large values of R D are required in order to achieve a low value of V OL keep power consumption low Large resistors are needed, but these take up a lot of space. One solution is to replace the resistor with an NMOSET that is always on. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 8 9

The CMOS Inverter: Intuitive Perspective CIRCUIT SWITCH MODELS G S D R p D V OL = V V OH = G S R n Low static power consumption, since one MOSET is always off in steady state = = V EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 9 CMOS Inverter Voltage Transfer Characteristic N: sat P: sat N: off P: lin C G S D N: sat P: lin D E G D S N: lin P: sat N: lin P: off EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 2

CMOS Inverter Load-Line nalysis = V GSp V GSp = - I Dn =-I Dp = V DSp increasing = V = V DSp = - I Dn =-I Dp increasing V DSp = - V DSp = =V DSn EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 2 CMOS Inverter Load-Line nalysis: Region V Tn I Dn =-I Dp V GSp = - V DSp = - I Dn =-I Dp =V DSn EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 22

CMOS Inverter Load-Line nalysis: Region V DD /2 > > V Tn V GSp = - I Dn =-I Dp V DSp = - I Dn =-I Dp =V DSn EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 23 CMOS Inverter Load-Line nalysis: Region D V DD V Tp > > /2 V GSp = - I Dn =-I Dp V DSp = - I Dn =-I Dp =V DSn EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 24 2

CMOS Inverter Load-Line nalysis: Region E V IN > V Tp V GSp = - I Dn =-I Dp V DSp = - I Dn =-I Dp =V DSn EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 25 eatures of CMOS Digital Circuits The output is always connected to or GND in steady state ull logic swing; large noise margins Logic levels are not dependent upon the relative sizes of the devices ( ratioless ) There is no direct path between and GND in steady state no static power dissipation EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 26 3

The CMOS Inverter: Current low during Switching N: sat P: sat i N: off P: lin C G i S D D N: sat P: lin D E G S N: lin P: sat N: lin P: off EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 27 Power Dissipation due to Direct-Path Current G S v IN : -V T v IN i D v OUT V T D I peak G S i: t sc time Energy consumed per switching period: E = t dp sc V DD I peak EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 28 4

NMOS NND Gate Output is low only if both inputs are high R D Truth Table EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 29 NMOS NOR Gate Output is low if either input is high R D Truth Table EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 3 5

N-Channel MOSET Operation n NMOSET is a closed switch when the input is high X Y X Y Y = X if and Y = X if or NMOSETs pass a strong but a weak EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 3 P-Channel MOSET Operation PMOSET is a closed switch when the input is low X Y X Y Y = X if and = ( ) Y = X if or = () PMOSETs pass a strong but a weak EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 32 6

Pull-Down and Pull-Up Devices In CMOS logic gates, NMOSETs are used to connect the output to GND, whereas PMOSETs are used to connect the output to. n NMOSET functions as a pull-down device when it is turned on (gate voltage = ) PMOSET functions as a pull-up device when it is turned on (gate voltage = GND) input signals 2 N 2 N Pull-up network Pull-down network PMOSETs only (, 2,, N ) NMOSETs only EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 33 CMOS NND Gate EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 34 7

CMOS NOR Gate EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 35 CMOS Pass Gate X Y Y = X if EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 36 8

Combinational Logic Circuits Logic gates combine several logic-variable inputs to produce a logic-variable output. Combinational logic circuits are memoryless because their output value at a given instant depends only on the input values at that instant. Next time, we will study sequential logic circuits that possess memory because their present output value depends on previous as well as present input values. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 37 Logical Sufficiency of NND Gates If the inputs to a NND gate are tied together, an inverter results rom De Morgan s laws, the OR operation can be realized by inverting the input variables and combining the results in a NND gate. Since the basic logic functions (ND, OR, and NOT) can be realized by using only NND gates, NND gates are sufficient to realize any combinational logic function. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 38 9

Logical Sufficiency of NOR Gates Show how to realize the ND, OR, and NOT functions using only NOR gates Since the basic logic functions (ND, OR, and NOT) can be realized by using only NOR gates, NOR gates are sufficient to realize any combinational logic function. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 39 Synthesis of Logic Circuits Suppose we are given a truth table for a logic function. Is there a method to implement the logic function using basic logic gates? nswer: There are lots of ways, but one simple way is the sum of products implementation method: ) Write the sum of products expression based on the truth table for the logic function 2) Implement this expression using standard logic gates. We may not get the most efficient implementation this way, but we can simplify the circuit afterwards EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 4 2

Logic Synthesis Example: dder Input C Output S S S using sum-of-products: ) ind where S is 2) Write down each product of inputs which create a C C C C 3) Sum all of the products C C C C 4) Draw the logic circuit EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 4 NND Gate Implementation De Morgan s law tells us that is the same as y definition, is the same as ll sum-of-products expressions can be implemented with only NND gates. EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 42 2

Creating a etter Circuit What makes a digital circuit better? ewer number of gates ewer inputs on each gate multi-input gates are slower Let s see how we can simplify the sum-ofproducts expression for S, to make a better circuit Use the oolean algebra relations EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 43 Karnaugh Maps Graphical approach to minimizing the number of terms in a logic expression:. Map the truth table into a Karnaugh map (see below) 2. or each, circle the biggest block that includes that 3. Write the product that corresponds to that block. 4. Sum all of the products 2-variable Karnaugh Map 3-variable Karnaugh Map C 4-variable Karnaugh Map CD EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 44 22

Karnaugh Map Example Input C Output S S Simplification of expression for S : EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 45 C C C C S = C C urther Comments on Karnaugh Maps The algebraic manipulations needed to simplify a given expression are not always obvious. Karnaugh maps make it easier to minimize the number of terms in a logic expression. Terminology: 2-cube: 2 squares that have a common edge (-> product of 3 variables) 4-cube: 4 squares with common edges (-> product of 2 variables) In locating cubes on a Karnaugh map, the map should be considered to fold around from top to bottom, and from left to right. Squares on the right-hand side are considered to be adjacent to those on the left-hand side. Squares on the top of the map are considered to be adjacent to those on the bottom. Example: The four squares in the map corners form a 4-cube CD EE4 Summer 25: Lecture 6 Instructor: Octavian lorescu 46 23