1 COMP541 Combinational Logic - 3 Montek Singh Jan 23, 2012.

Slides:



Advertisements
Similar presentations
COMP541 Transistors and all that… a brief overview
Advertisements

ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
ECE 272 Xilinx Tutorial. Workshop Goals Learn how to use Xilinx to: Draw a schematic Create a symbol Generate a testbench Simulate your circuit.
Lecture 1 Design Hierarchy Chapter 1. Digital System Design Flow 1.Register-Transfer Levl (RTL) – e.g. VHDL/Verilog 2.Gate Level Design 3.Circuit Level.
1 COMP541 Combinational Logic - 2 Montek Singh Jan 18, 2007.
Lab 1 Structure of a PLD Module M1.4 Experiment 1 (p. 40)
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 2 Combinational Logic Design.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Boolean Algebra and Truth Table The mathematics associated with binary number system (or logic) is call Boolean: –“0” and “1”, or “False” and “True” –Calculation.
Lab 04 :Serial Data Control Systems : Slide 2 Slide 3 Slide 4 NOR Gate: NAND Gate: NOR / NAND Alternate Symbols: Slide 5 XOR and XNOR Gate: Serial Data.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
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:
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Chapter 2: Fundamentals of Digital Electronics Dr Mohamed Menacer Taibah University
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
Documentation Standards Circuit specification. –Description of what the system is supposed to do, including a description of all inputs and outputs and.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
1 COMP541 Combinational Logic - 3 Montek Singh Jan 21, 2010.
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
1 COMP541 Combinational Logic - 4 Montek Singh Jan 30, 2012.
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
Chapter 33 Basic Logic Gates. 2 Objectives –After completing this chapter, the student should be able to: Identify and explain the function of the basic.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
Gates and Logic Dr John Cowell phones off (please)
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
Module 1.2 Introduction to Verilog
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 16, 2013 Lecture 10.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
COMP541 Arithmetic Circuits
Instructor:Po-Yu Kuo 教師:郭柏佑
Lecture 3. Combinational Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
Chapter 2 Digital Design and Computer Architecture, 2 nd Edition Chapter 2 David Money Harris and Sarah L. Harris.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Introduction to ASIC flow and Verilog HDL
ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE.
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
1 COMP541 Combinational Logic - 3 Montek Singh Jan 21, 2015.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Combinational Logic: Other Gate Types
Combinational Logic Logic gates. and, or, not Derived gates. nand, nor, xor John F. Wakerly – Digital Design. 4 th edition. Chapter 4.
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Computer Organization and Design Transistors & Logic - II Montek Singh Mon, Mar 14, 2011 Lecture 9.
Minute Paper 4/4/04 Z=50+j86.7=100
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Logic Gates Review. Logic Gates OR gate – 1 if either input is 1 – 0 if they both are 0.
Computer Organization and Design Transistors and all that… a brief overview Montek Singh Mar 21, 2016 Lecture 9 1.
Computer Architecture & Operations I
Computer Architecture & Operations I
Truth Table to Statement Form
COMP541 Combinational Logic - 3
COSC3330 Computer Architecture Lecture 2. Combinational Logic
ECE 3130 Digital Electronics and Design
Morgan Kaufmann Publishers
Transistors and Logic Circuits
COMP541 Combinational Logic - 3
Digital Signals Digital Signals have two basic states:
How Boolean logic is implemented
Combinatorial Logic Design Practices
Schematics 201 Lecture Topic: Electrical Symbols
Logic Gates.
Logic Gates.
COMP541 Combinational Logic - II
COMP541 Combinational Logic - 3
XOR Function Logic Symbol  Description  Truth Table 
Chapter 2 Digital Design and Computer Architecture, 2nd Edition
Lecture 2: Combinational Logic Design
Presentation transcript:

1 COMP541 Combinational Logic - 3 Montek Singh Jan 23, 2012

Today’s Topics 2  Quick tips on Lab #1  Other type of gates XOR, XNOR XOR, XNOR compound gates compound gates transmission gates transmission gates  Non-Boolean values “Don’t Cares”, or X values “Don’t Cares”, or X values “Floating values”, or Z values “Floating values”, or Z values

3 Lab #1 tips  Testing your circuit using a Verilog test fixture  Module module lab1_part1( module lab1_part1( input A, B, Cin, output Sum);  Ports referenced as lab1_part1 uut(X, Y, Z, T) lab1_part1 uut(X, Y, Z, T)  Also as lab1_part1 uut(.A(X),.B(Y),.Sum(T),.Cin(Z)) lab1_part1 uut(.A(X),.B(Y),.Sum(T),.Cin(Z)) Circuit to be tested (“uut”) Stimulus: initial begin … end inputs outputs Verilog test fixture

Other Types of Gates 4

Exclusive OR 5  Exclusive OR  What lay people mean by “or”  Symbol is  Plus in a circle Plus in a circle

Parity Function 6  Recall how parity works Ask class Ask class  Write truth table for two input even parity What needs to be generated for parity bit? What needs to be generated for parity bit?  What function of two inputs gives you this?

XOR Gives Odd Function 7  As many inputs as necessary  How do you get odd parity?  Design even parity generator for 3-bit signal Draw with XOR, then sum-of-products w/ NAND gates Draw with XOR, then sum-of-products w/ NAND gates  How do you design a parity detector?

Others 8

CMOS Transmission Gates 9  Act like electronic switches

XOR using Transmission Gate 10

Introduction to Circuits 11

Introduction to Circuits 12  A logic circuit is composed of: Inputs Inputs Outputs Outputs Functional specification Functional specification Timing specification Timing specification

Circuits  Nodes Inputs: A, B, C Inputs: A, B, C Outputs: Y, Z Outputs: Y, Z Internal: n1 Internal: n1  Circuit elements E1, E2, E3 E1, E2, E3 Each a circuit Each a circuit 13

Types of Logic Circuits  Combinational Logic Memoryless Memoryless Outputs determined by current values of inputs Outputs determined by current values of inputs  Sequential Logic Has memory Has memory Outputs determined by previous and current values of inputs Outputs determined by previous and current values of inputs 14

Rules of Combinational Composition Composition rules: Every circuit element is itself combinational Every circuit element is itself combinational Every node of the circuit is either designated as an input to the circuit or connects to exactly one output terminal of a circuit element Every node of the circuit is either designated as an input to the circuit or connects to exactly one output terminal of a circuit element  no output shorts The circuit contains no cyclic paths The circuit contains no cyclic paths  every path through the circuit visits each circuit node at most once (latches are made via a cyclic path) Example: Example: 15

Aside: Circuit Schematics with Style 16 Drawing style/conventions: (where possible) Inputs are on the left (or top) side of a schematic Inputs are on the left (or top) side of a schematic Outputs are on the right (or bottom) side of a schematic Outputs are on the right (or bottom) side of a schematic Gates should flow from left to right Gates should flow from left to right Straight wires are better to use than jagged wires Straight wires are better to use than jagged wires

Circuit Schematic Rules (cont.) Wire connections A dot where wires cross indicates a connection A dot where wires cross indicates a connection Wires crossing without a dot make no connection Wires crossing without a dot make no connection Wires always connect at a T junction Wires always connect at a T junction 17

Multiple Output Circuits Output asserted corresponding to most significant TRUE input 18

Example: Priority Encoder Hardware 19

Values that are not 0’s and 1’s Don’t Cares (X) Floating values (Z) 20

Don’t Cares (X) 21

Actually: Several Meanings of X 22  Don’t care  Contention (illegal input value)  Uninitialized value In a simulator In a simulator

Floating: Z  Floating, high impedance, open, high Z Floating output might be 0, 1, or somewhere in between Floating output might be 0, 1, or somewhere in between A voltmeter won’t indicate whether a node is floating A voltmeter won’t indicate whether a node is floating Allows connecting outputs Allows connecting outputs Tristate Buffer 23

Next  Wed: Full Tutorial on Verilog so you are more ready for Lab #2 so you are more ready for Lab #2  Mon next week: Combinational building blocks Combinational building blocks 24