CENG 241 Digital Design 1 Lecture 5

Slides:



Advertisements
Similar presentations
CS 121 Digital Logic Design
Advertisements

CENG 241 Digital Design 1 Lecture 6 Amirali Baniasadi
Combinational Circuits
CENG 241 Digital Design 1 Lecture 11
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
CENG 241 Digital Design 1 Lecture 8 Amirali Baniasadi
DPSD This PPT Credits to : Ms. Elakya - AP / ECE.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Combinational Logic Chapter 4.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Chapter 3 Combinational Logic Design
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
CS 105 Digital Logic Design
ECE 3130 – Digital Electronics and Design Lab 3 Multiplexers, Parity Generators, and Boolean functions using MUX Fall 2012 Allan Guan.
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
Combinational Logic Design CS341 Digital Logic and Computer Organization F2003.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Functions of Combinational Logic
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Combinational Logic Chapter 4. Digital Circuits Combinational Circuits Logic circuits for digital system Combinational circuits the outputs are.
Combinational Logic. Outline 4.1 Introduction 4.2 Combinational Circuits 4.3 Analysis Procedure 4.4 Design Procedure 4.5 Binary Adder- Subtractor 4.6.
Digital Components and Combinational Circuits Sachin Kharady.
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
CENG 241 Digital Design 1 Lecture 5 Amirali Baniasadi
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CENG 241 Digital Design 1 Lecture 10 Amirali Baniasadi
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
CS 1110 Digital Logic Design
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 8 Arithmetic.
Universal college of engineering & technology. .By Harsh Patel)
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
Combinational Circuits
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
Logic Design (CE1111 ) Lecture 4 (Chapter 4) Combinational Logic Prepared by Dr. Lamiaa Elshenawy 1.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
Combinational Logic Design
Combinational Logic Design. 2 Combinational Circuits A combinational logic circuit has: ♦ A set of m Boolean inputs, ♦ A set of n Boolean outputs ♦ n.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Combinational Circuits
Multiplexer.
Part 4 Combinational Logic.
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Combinational Circuit Design
Combinational Logic Circuits
Combinational Circuits
Computer Architecture CST 250
Reference: Moris Mano 4th Edition Chapter 4
FIGURE 4.1 Block diagram of combinational circuit
EET107/3 DIGITAL ELECTRONICS 1
King Fahd University of Petroleum and Minerals
Week 7: Gates and Circuits: PART II
Ch 4. Combinational logic
Number Systems and Circuits for Addition
Combinational Circuits
XOR Function Logic Symbol  Description  Truth Table 
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Presentation transcript:

CENG 241 Digital Design 1 Lecture 5 Amirali Baniasadi amirali@ece.uvic.ca

This Lecture HW 2 Announced.

Three-input XOR Function F = A XOR B XOR C Multiple input XOR is 1 only if the number of 1 variables is odd: ODD function

ODD Function Implementation

Four-input XOR Function F detects odd number of 1s, F’ detects even number of 1’s

Parity Generation and Checking Parity bit: extra bit to ensure correct transmission of data Parity bit is included in the message to make the number of 1s either odd (odd parity) or even (even parity). We can use XOR to see if the number of 1’s is odd. We can use XOR-invert to see if the number of 1’s is even. We include the XOR output in the message Later at receiver we check the number of 1 bits to see if the transmission is correct.

Parity Generation and Checking circuits

Combinational Logic Combinational Logic: Output only depends on current input Sequential Logic:Output depends on current and previous inputs

Design Procedure 1.The number of inputs and outputs? 2.Derive the truth table 3.Obtain the Boolean Function 4.Draw the logic diagram, verify correctness

Design Procedure example Binary Adder-Subtractor Basic block is a half adder. Half Adder Design: 1.needs 2 inputs 2 outputs 2. Truth Table: x y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 3. S=x’y+xy’ C=xy

Half Adder circuit

Full Adder? Truth Table: x y z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1

Full Adder Map

Full Adder Circuit

Full Adder Circuit Half adder ?

4-bit Adder Circuit But this is slow...

Binary Subtractor Subtraction is done by using complements A’s 2’s Complement = A’+1 A-B= A + B’+1

4-bit adder subtractor

Binary Multiplier Binary mult. Is done the same way of decimal mult. Multiplicand is multiplied by each bit of the multiplier.

Binary Multiplier

4-bit by 3-bit Binary Multiplier B3 B2 B1 B0 A2 A1 A0 A0B3 A0B2 A0B1 A0B0 A1B3 A1B2 A1B1 A1B0 A2B3 A2B2 A2B1 A2B0

HW 2 Homework 2: Chapter 4: problems 5, 6(a), 9, 20(a)