Lecture 3 Combinational Circuits

Slides:



Advertisements
Similar presentations
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Advertisements

ECE 2110: Introduction to Digital Systems Combinational Logic Design Principles.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
EE365 Boolean algebra Combinational-circuit analysis.
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Modified from John Wakerly Lecture #2 and #3 CMOS gates at the transistor level Boolean algebra Combinational-circuit analysis.
CS 105 Digital Logic Design
1.6 Signed Binary Numbers.
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
Computers Organization & Assembly Language
Digital Systems and Logic Design
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 3.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Lecture 1 Binary Representation Topics Terminology Base 10, Hex, binary Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement.
Yuh-Jzer JoungDigital Systems1 Number Systems decimal number : 7397=7× × × ×10 0 a 4 a 3 a 2 a 1 a 0. a -1 a -2 = a 4 ×10 4 +a 3 ×10.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
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.
ECE 2110: Introduction to Digital Systems BCD, Gray, Character, Action/Event, Serial Data.
Boolean Algebra 1854, George Boole created a two valued algebraic system which is now called Boolean algebra. 1938, Claude Shannon adapted Boolean algebra.
1 Binary Codes Digital systems use 2-state devices that understand only 2 binary values (0 and 1). But we communicate using various symbols and methods.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
ECE 2110: Introduction to Digital Systems Course Review.
1 Lecture 3 ENGRE 254 1/14/09. 2 Lecture 1 review Digital signals assume two values represented by “0” and “1”. Typically a “0” represents a voltage near.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
--- outputs logical functions of inputs --- new outputs appear shortly after changed inputs (propagation delay) --- no feedback loops --- no clock Sequential.
Figure 2.6. A truth table for the AND and OR operations. 2.3 Truth Tables 1.
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
Lecture 2 Binary Arithmetic Topics Terminology Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement August 26, 2003 CSCE 211.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Chapter 1: Binary Systems
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
Lecture 2 Number Representation, Overflow and Logic Topics Adders Math Behind Excess-3 Overflow Unsigned, signed-magnitude Two’s Complement Gray Code Boolean.
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.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
KU College of Engineering Elec 204: Digital Systems Design 1 Review D: n bit binary number D = (d n-1 ∙ ∙ ∙ d 1 d 0 ) 2 If D is an unsigned binary number.
ECE 2110: Introduction to Digital Systems
Lecture 3 Boolean algebra Topics Error Correcting Codes Boolean algebra Combinational circuits Algebraic analysis, Truth tables, Logic Diagrams Sums-of-Products.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Invitation to Computer Science, C++ Version, Fourth Edition
Computer Code.
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
ECE 2110: Introduction to Digital Systems
Logic Gates and Boolean Algebra
University of Gujrat Department of Computer Science
Invitation to Computer Science, Java Version, Third Edition
Modified from John Wakerly Lecture #2 and #3
Lecture 3 Boolean algebra
Digital Electronics & Logic Design
Digital Logic & Design Lecture 05
Week 7: Gates and Circuits: PART II
Digital Systems Design
EE121 John Wakerly Lecture #3
Logic Circuits I Lecture 3.
Table 1.1 Powers of Two.
Presentation transcript:

Lecture 3 Combinational Circuits CSCE 211 Digital Design Lecture 3 Combinational Circuits Topics Basic Gates (3.1) Adders: half-adder, full-adder Gray Code (2.11) N-cube (2.14) Error Correcting codes (2.15) Boolean Algebra (4.1) Combinational-Circuit Analysis (4.2) August 28, 2003

Overview Last Time On last Time’s Slides(what we didn’t get to) New Conversion of Fractions decimal  base-r Representations of Integers Unsigned, signed magnitude, one’s complement, two’s complement Arithmetic BCD, representations of characters BCD, unicode On last Time’s Slides(what we didn’t get to) Basic gates (well almost on transparencies) Adder circuits New Boolean algebra Combinational circuits VHDL ButNot Table 4-36 page 277 History: George Boole

Basic Gates AND OR NOT

Basic Gates NAND NOR XOR

Half Adder Circuit

Full Adder

Ripple Carry Adder

Gray Code In some mechanical devices you want to encode positions as binary strings in such a way that positions close to each other are represented by strings that are close together. Gray code – adjacent position differ in only one bit 000 001 011 010 110 111 101 100 Figure 2-6 encoding disk

Construction of Gray Codes Gray Codes are reflective Algorithm for construction of Gray Codes on n-bits A 1-bit Gray code has two words 0 and 1. The first 2n words of an (n+1)-bit gray code are the words of the n-bit gray code with a leading 0 added. The next 2n words of an (n+1)-bit gray code are the words of the n-bit gray code but written in reverse order with a leading 1 added.

Construction of Gray Codes 1-bit gray code 1 2-bit gray code 00 01 11 10 3-bit gray code 0 00 0 01 0 11 0 10 1 10 1 11 1 01 1 00 4-bit gray code 0 000

Gray Code Generation Algorithm 2 The bits of an n-bit binary and n-bit Gray-code code word are numbered from right to left from 0 to n-1. Bit i of a Gray-code word is 0 if bits i and i+1 of the corresponding binary code word are the same, else bit i is 1. (When i = n-1, bit n is considered to be 0.) Example Given 0100 1010 Add fake 0 on front bit n is 0 0 0100 1010  0110 1111

Codes representing characters ASCII (American Standard Code for Information Interchange) – 8 bits = 7 + parity Unicode 16 bits

N-cubes 1-cube 2-cube 3-cube Traversing in gray-code order

Parity Bits Even parity bit – parity bit is set so that the number of ones is even Odd parity bit

Error Correcting codes For an n-bit code, consider the hypercube of dimension n Choose some subset of the nodes as code words. Suppose the distance between any two two code words is at least 3. Now consider transmission errors. Then if there is an error in transmitting just one bit then the distance from the received word to one code word is one, distances to other code words are at least two. Single error correcting, double error detecting. Such codes are called Hamming codes after their inventor Richard Hamming.

Boolean Algebra George Boole (1854) invented a two valued algebra To “give expression … to the fundamental laws of reasoning in the symbolic language of a Calculus.” 1938 Claude Shannon at Bell Labs noted that this Boolean logic could be used to describe switching circuits. (Switching Algebra) In Shannon’s view a relay had two positions open and closed and collections of relays satisfied the properties of Boolean algebra.

Boolean Algebra Axioms The axioms of a mathematical system are a minimal set of properties that are assumed to be true. Axioms of Boolean Algebra X = 0 if X != 1 X=1 if X!=0 If X = 0, then X’ = 1 if X=1 then X’=0 0 . 0 = 0 1 + 1 = 1 1 . 1 = 1 0 + 0 = 0 0 . 1 = 1 . 0 = 0 1 + 0 = 0 + 1 = 1 Axioms 1-5 and 1-5’ completely define Boolean algebra.

Boolean Algebra Theorems Proofs by perfect induction

More Theorems N.B. T8¢, T10, T11

Duality Swap 0 & 1, AND & OR Result: Theorems still true Why? Each axiom (A1-A5) has a dual (A1¢-A5¢) Counterexample: X + X × Y = X (T9) X × X + Y = X (dual) X + Y = X (T3¢) ???????????? X + (X × Y) = X (T9) X × (X + Y) = X (dual) (X × X) + (X × Y) = X (T8) X + (X × Y) = X (T3¢) parentheses, operator precedence!

N-variable Theorems Prove using finite induction Most important: DeMorgan theorems

Combinational Circuit Analysis A combinational circuit is one whose outputs are a function of its inputs and only its inputs. These circuits can be analyzed using: Truth tables Algebraic equations Logic diagrams

Truth Tables