Combinational circuits

Similar documents
Two-level logic using NAND gates

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

CSE140: Components and Design Techniques for Digital Systems

Sistemas Digitais I LESI - 2º ano

Understanding Logic Design

Combinational Logic Design

3.Basic Gate Combinations

COMBINATIONAL CIRCUITS

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Binary Adders: Half Adders and Full Adders

Boolean Algebra Part 1

Logic in Computer Science: Logic Gates

Memory unit. 2 k words. n bits per word

Unit 3 Boolean Algebra (Continued)

Gates, Circuits, and Boolean Algebra

5 Combinatorial Components. 5.0 Full adder. Full subtractor

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Logic Reference Guide

Boolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

C H A P T E R. Logic Circuits

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

Simplifying Logic Circuits with Karnaugh Maps

Combinational-Circuit Building Blocks

2.0 Chapter Overview. 2.1 Boolean Algebra

CHAPTER 3 Boolean Algebra and Digital Logic

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

CH3 Boolean Algebra (cont d)

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

Gates, Plexers, Decoders, Registers, Addition and Comparison

Figure 8-1 Four Possible Results of Adding Two Bits

Philadelphia University Faculty of Information Technology Department of Computer Science Semester, 2007/2008.

RAM & ROM Based Digital Design. ECE 152A Winter 2012

Lecture 4: Binary. CS442: Great Insights in Computer Science Michael L. Littman, Spring I-Before-E, Continued

SOLUTIONS MANUAL DIGITAL DESIGN FOURTH EDITION M. MORRIS MANO California State University, Los Angeles MICHAEL D.

Chapter 9 Computer Design Basics!

A Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN

Course Requirements & Evaluation Methods

Counters and Decoders

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

ASYNCHRONOUS COUNTERS

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

Using Logic to Design Computer Components

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Boolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010

CSE140: Midterm 1 Solution and Rubric

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

DEPARTMENT OF INFORMATION TECHNLOGY

Copyright Peter R. Rony All rights reserved.

Online EFFECTIVE AS OF JANUARY 2013

COMPUTER SCIENCE. Paper 1 (THEORY)

Memory Systems. Static Random Access Memory (SRAM) Cell

Click on the links below to jump directly to the relevant section

Upon completion of unit 1.1, students will be able to

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Counters are sequential circuits which "count" through a specific state sequence.

To Evaluate an Algebraic Expression

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Let s put together a Manual Processor

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, The Binary Adder

BINARY CODED DECIMAL: B.C.D.

BOOLEAN ALGEBRA & LOGIC GATES

The components. E3: Digital electronics. Goals:

Basic Logic Gates Richard E. Haskell

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

MICROPROCESSOR AND MICROCOMPUTER BASICS

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Lab 1: Study of Gates & Flip-flops

BEGINNING ALGEBRA ACKNOWLEDMENTS

Operating Manual Ver.1.1

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

Logic gates. Chapter. 9.1 Logic gates. MIL symbols. Learning Summary. In this chapter you will learn about: Logic gates

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

COURSE SYLLABUS. PRE-REQUISITES: Take CETT-1303(41052); Minimum grade C, CR.

The string of digits in the binary number system represents the quantity

Systems I: Computer Organization and Architecture

Programming Logic controllers

Systems I: Computer Organization and Architecture

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

DESIGN OF GATE NETWORKS

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

CpE358/CS381. Switching Theory and Logical Design. Class 10

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

CM2202: Scientific Computing and Multimedia Applications General Maths: 2. Algebra - Factorisation

Chapter 7 Memory and Programmable Logic

Interfacing To Alphanumeric Displays

LOGICOS SERIE Precios sujetos a variación. Ref. Part # Descripción Precio Foto Ref. Quad 2-Input NOR Buffered B Series Gate / PDIP-14

Quantum Computing Lecture 7. Quantum Factoring. Anuj Dawar

PRIMARY CONTENT MODULE Algebra I -Linear Equations & Inequalities T-71. Applications. F = mc + b.

Transcription:

Combinational circuits Combinational circuits are stateless The outputs are functions only of the inputs Inputs Combinational circuit Outputs 3 Thursday, September 2, 3

Enabler Circuit (High-level view) Enabler circuit has 2 inputs data (can be several bits, but bit examples for now) enable/disable (i.e., on/off) Enable circuit on : output = data, Enable circuit off : output is zeroed (e.g., output signal is all s) (enabled) (disabled) Enable/Disable Enable/Disable DATA DATA DATA 4 Thursday, September 2, 3

MUX Circuit (High-level) k Data values enter as input Selector chooses which one comes out 2 DATA DATA DATA2 DATA2 DATA3 5 Thursday, September 2, 3

Decoder Circuit (high-level view) No DATA inputs 2 k -bit outputs Selector input chooses which output =, all other outputs = 2 out out out2 out3 6 Thursday, September 2, 3

Building big circuits: Hierarchical design 3-4 A N MX B Big Circuit A B MX N ME E A 2 B 2 A 3 B 3 MX MX N 2 N 3 (a) Design small circuits to be used in a bigger circuit A i Smaller Circuits B i MX N i N N N 2 N 3 ME E (b) (c) 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 7 Thursday, September 2, 3

Notation: Emulating a k-input gate via 2-input Each stage in the circuit cuts # of gates by half k input gate emulated with log2 k depth 2-input gate circuits Same process works for OR, XOR as well 8 Thursday, September 2, 3

Enabler circuits: bit Data input A 3-5 Abbreviated truth table (input listed in the output) XA EN (a) F EN F A EN 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e XA (b) For both enabler circuits above, output is enabled (F=X) only when input ENABLE signal is asserted (EN=). Note the different output when DISABLED F EN F A 9 Thursday, September 2, 3

Decoder-based circuits Converts n-bit input to m-bit output, where n <= m <= 2 n A B C 3:8 decoder Standard Decoder: i th output =, all others =, where i is the binary representation of the input () Thursday, September 2, 3

Decoder-based circuits Converts n-bit input to m-bit output, where n <= m <= 2 n e.g., = (i=5) A B 3:8 decoder C Standard Decoder: i th output =, all others =, where i is the binary representation of the input () Thursday, September 2, 3

Decoder (:2) Internal Design 3-7 A D D D A A D A (a) (b) 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 2 Thursday, September 2, 3

Decoder (2:4) 3-8 A A A D D D 2 D 3 A D A A D A A (a) D 2 A A (b) D 3 A A Standard Decoder: i th output =, all others =, where i is the binary representation of the input 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 3 Thursday, September 2, 3

Hierarchical design of decoder (2:4 decoder) b :2 decoder 'b b 'b'a 'ba a :2 decoder 'a a b'a ba 2:4 decoder Can build 2:4 decoder out of two :2 decoders (and some additional circuitry) 4 Thursday, September 2, 3

Decoder (3:8) Hierarchical design: use small decoders to build bigger decoder 3-9 4 2-input ANDs 8 2-input ANDs A D D A D 2 2-to-4-Line decoder D 3 D 4 A 2 -to-2-line decoders D 5 D 6 D 7 Note: A2 selects whether the 2-to-4 line decoder is active in the top half (A2=) or the bottom (A2=) 3-to-8 Line decoder 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 5 Thursday, September 2, 3

Encoders 6 Inverse of a decoder: converts m-bit input to n-bit output, where n <= m <= 2 n 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e T 3-7 TABLE 3-7 Truth Table for Octal-to-Binary Encoder Inputs Outputs D 7 D 6 D 5 D 4 D 3 D 2 D D A 2 A A Thursday, September 2, 3

Decoders and encoders n{ Decoder }2 n BCD values One-hot encoding n{ n Encoder }2 Note: for Encoders - input is assumed to be just one, the rest s 7 Thursday, September 2, 3

Priority Encoder T 3-8 Designed for any combination of inputs TABLE 3-8 Truth Table of Priority Encoder Inputs Outputs D 3 D 2 D D A A V X X X X X X X X 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 8 Thursday, September 2, 3

General code conversion: a circuit that coverts some inputs to outputs 3-3 a f b e g d c (a) Segment designation (b) Numeric designation for display 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 9 Thursday, September 2, 3

Code conversion Input Output a f e g d b c Va W X Y Z a b c d e f g l 2 3 4 5 6 7 8 9 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 2 Thursday, September 2, 3

f e Code conversion a b g c d e.g., what outputs lights up when input V=4? Input Output Va W X Y Z a b c d e f g l 2 3 4 5 6 7 8 9 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 2 Thursday, September 2, 3

{ Code conversion Input Output a f e b g c d W= For what values does output f light up for? { X X X X X X { Z= Y= { X= Va W X Y Z a b c d e f g l 2 3 4 5 6 7 8 9 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 22 Thursday, September 2, 3

{ Algebra and Circuit for f Y= f = W + YZ + XZ + XY = W + (X+Y)Z + XY W= { X X X X X X { X= { Z= W X f Y Z 23 Thursday, September 2, 3

Multiplexers Combinational circuit that selects binary information from one of many input lines and directs it to one output line n 2 inputs output n selection bits indicate (in binary) which input feeds to the output 24 Thursday, September 2, 3

Multiplexer example I I I2 I3 I 4 I5 I6 I7 I5 25 Thursday, September 2, 3

Multiplexers & Demultiplexers n{ 2 Mux 2^n inputs n { n-bit BCD value output a x x x x x x x a x b x x x x x x b x x c x x x x x c x x x d x x x x d x x x x e x x x e x x x x x f x x f x x x x x x g x g x x x x x x x h h 26 Thursday, September 2, 3

Muxes and demuxes called steering logic Mux Demux merge fork 27 Thursday, September 2, 3

Demultiplexers Demux n }2 n { input n-bit BCD value 2^n outputs a a b b c c d d e e f f g g h h 28 Thursday, September 2, 3

Internal mux organization 3-26 Selector Logic (selects which input flows through ) S Decoder Enabler logic (takes inputs) S 4 2 AND-OR S Decoder S I I Y Or gate passes through the nonzeroed out Ii Y I 2 Only AND gate passes through I 3 AND gates zero out unselected Ii 28 Pearson Education, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e 29 Thursday, September 2, 3

Representing Functions with Decoders and MUXes e.g., F = AC + BC A B C minterm F A BC 3-to-8 Decoder 8-to- MUX Decoder: OR minterms for which F should evaluate to A B C MUX: Feed in the value of F for each minterm 3 Thursday, September 2, 3

A Slick MUX trick Can use a smaller MUX with a little trick e.g., F = AC + BC Note for rows paired below, A&B have same values, C iterates between & For the pair of rows, F either equals,, C or C A B C minterm F } } } } F = F = C F = C F = C 4-to- MUX AB AB AB AB A B 3 Thursday, September 2, 3

Slick MUX trick: Example e.g., F = AC + BC + AC A B C minterm F } } } F = F = C F = C } F = C C 4-to- MUX AB AB AB AB A B 32 Thursday, September 2, 3