BR 8/991 Combinational Building Blocks 2/1 Multiplexor (MUX) I0 I1 Y S if S = 0, then Y = I0 if S = 1, then Y = I1 Y = I0 S’ + I1 S I0 I1 Y S A[3:0] B[3:0]

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

Modular Combinational Logic
Functions and Functional Blocks
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
30 September 2004Comp 120 Fall September 2004 Chapter 4 – Logic Gates Read in Chapter 4 pages , , section 4.8 through top of page.
ECE 301 – Digital Electronics
Combinational circuits
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Chapter 4 Register Transfer and Microoperations
Adders, subtractors, ALUs
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
XOR, XNOR, and Binary Adders
Calculator Lab Overview Note: Slides Updated 10/8/12
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Adders and Multipliers Review. ARITHMETIC CIRCUITS Is a combinational circuit that performs arithmetic operations, e.g. –Addition –Subtraction –Multiplication.
Combinational Logic Design
Binary Numbers.
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
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.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Adders, subtractors, ALUs.
V 0.11 Combinational Logic Review Digital Devices was a LONG, LONG time ago in a galaxy FAR, FAR, AWAY for many of you. We don’t expect you to remember.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
Basic Addition Review Basic Adders and the Carry Problem
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Computer Architecture
B1000 ALU ENGR xD52 Eric VanWyk Fall Today Review Timing with Adders Construct Adder/Subtractor Construct ALU.
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
1 Combinational Logic EE 208 – Logic Design Chapter 4 Sohaib Majzoub.
Cpu control.1 2/14 Datapath Components for Lab The Processor! ( th ed)
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
BR 8/99 Arithmetic Operations We will review the arithmetic building blocks we have previously used, and look at some new ones. –Addition –incrementer.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
Basic Addition Review Basic Adders and the Carry Problem Carry Propagation Speedup Speed/Cost Tradeoffs Two-operand Versus Multi-operand Adders.
1 The ALU l ALU includes combinational logic. –Combinational logic  a change in inputs directly causes a change in output, after a characteristic delay.
Mu.com.lec 11.  Used not only to perform addition but also to perform subtraction, multiplication and division  The most basic of the adders is the.
Presented by A. Maleki Fall Semester, 2010
Mantıksal Tasarım – BBM231 M. Önder Efe
Combinational Circuits
Digital Electronics Multiplexer
Lecture 11: Hardware for Arithmetic
Homework Reading Machine Projects Labs
Basics of digital systems
Digital Electronics Multiplexer
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
XOR, XNOR, and Binary Adders
EEL 3705 / 3705L Digital Logic Design
Basics Combinational Circuits Sequential Circuits
CSE 140: Discussion #4 Nima Mousavi.
XOR, XNOR, & Binary Adders
Programmable Logic Devices (PLDs)
Programmable Configurations
Lecture 11: Hardware for Arithmetic
Homework Reading Machine Projects Labs
COMS 361 Computer Organization
XOR, XNOR, and Binary Adders
Combinational Circuits
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
XOR Function Logic Symbol  Description  Truth Table 
XOR, XNOR, and Binary Adders
Computer Architecture
Lecture 2: Combinational Logic Design
Presentation transcript:

BR 8/991 Combinational Building Blocks 2/1 Multiplexor (MUX) I0 I1 Y S if S = 0, then Y = I0 if S = 1, then Y = I1 Y = I0 S’ + I1 S I0 I1 Y S A[3:0] B[3:0] D[3:0] Muxes often use to select groups of bits arranged in busses.

BR 8/992 What Good are Muxes ?? Sometimes want to have a bus be driven from multiple blocks, where only one block is driving the bus at a time. Logic A Logic B Logic C Logic D I0 I1 Y S[1:0] I2 I3 2 N to 1 mux will select 1 source; Select bus needs to be log2(N). Note that only ONE input can be selected at a time! 4/1 Mux

BR 8/993 Higher Order Muxes I0 I1 Y S[1:0] I2 I3 4/1 Mux 2 if S = “00”, then Y = I0 if S = “01”, then Y = I1 if S = “10”, then Y = I2 if S = “11”, then Y = I3 I0 I1 Y S[2:0] I2 I3 8/1 Mux 3 I4 I5 I6 I7 Y = I0 S1’ S0’ + I1 S1’ S0 + I2 S1 S0’ + I3 S1 S0

BR 8/994 Logic for 2/1, 4/1 Muxes I0 Y = I0 S’ + I1 S S’ I1 S Y Y = I0 S1’ S0’ + I1 S1’ S0 + I2 S1 S0’ + I3 S1 S0 I0 S0’ S1’ I1 S0 S1’ I2 S0’ S1 I3 S0 S1 Y S[1:0] 2 These are called COMBINATIONAL muxes.

BR 8/995 Tri State Buffer There is another way to drive a line or bus from multiple sources. Use a TRISTATE buffer. A Y EN When EN = 1, then Y = A. When EN = 0, then Y = ?????? Y is undriven, this is called the high impedance state. Designate high impedance by a ‘Z’. When EN = 0, then Y = ‘Z’ (high impedance) AY EN

BR 8/996 Using TriState Buffers Can use tristate buffers instead of a combinational 2/1 mux Must make sure that ENA, ENB are not both ‘1’ at same time, or Y will be driven from multiple sources A Y ENA B ENB

BR 8/997 Using TriState Buffers (cont) Only A or B is enabled at a time. A Y B S Implements 2/1 Mux function If S=0 then Y = A If S=1 then Y = B

BR 8/998 Using TriState Buffers (cont) A Y B S0’ C D S1’ S0 S1’ S0’ S1 S0 S1 S[1:0] 2 Y is driven by A, B, C or D; only one source is enabled at a time. Implements 4/1 MUX function.

BR 8/999 Decoders Logic common to both of the previous mux implementations was the decoder function. Y0 Y1 S Y0 = S’ Y1 = S 1 to 2 decoder Y0 Y1 S[1:0] Y0 = S1’S0’ Y1 = S1’S0 2 to 4 decoder Y2 Y3 Y2 = S1 S0’ Y3 = S1S0

BR 8/9910 Logic for 4/1 Combinational Mux Y 2 Y0 Y1 S[1:0] Y2 Y3 I0 I1 I2 I3 2 to 4 decoder

BR 8/9911 4/1 Mux using Decoder + TSBs A Y B C D 2 Y0 Y1 S[1:0] 2 to 4 decoder Y2 Y3

BR 8/ to 8 Decoder A[2:0] Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 if A= 000 then Y0=1 else Y0=0; if A= 001 then Y1=1 else Y1=0; if A= 010 then Y2=1 else Y2=0; if A= 011 then Y3=1 else Y3=0; if A= 100 then Y4=1 else Y4=0; if A= 101 then Y5=1 else Y5=0; if A= 110 then Y6=1 else Y6=0; if A= 111 then Y7=1 else Y7=0;

BR 8/9913 N-Bit Wide Elements To build a 2/1 mux for 4- bit wide busses, need four 1-bit 2/1 muxes. I0 I1 Y S A[3:0] B[3:0] D[3:0] I0 I1 Y S I0 I1 Y S I0 I1 Y S I0 I1 Y S A0 B0 A1 B1 A2 B2 A3 B3 Y0 Y1 Y2 Y3 S

BR 8/9914 Review of Memory example F (A,B,C) = A xor B xor C G = AB + AC + BC A B C F G Recall that Exclusive OR (xor) is A B Y Y = A  B = A xor B A0 A1 A2 8 x 2 Memory A B C DO G LookUp Table (LUT) D1 F A[2:0] is 3 bit address bus, D[1:0] is 2 bit output bus. Location 0 has “00”, Location 1 has “10”, Location 2 has “10”, etc….

BR 8/9915 Binary Adder F (A,B,C) = A xor B xor C G = AB + AC + BC These equations look familiar. These define a Binary Full Adder : AB S CiCo Cin AB Cout Sum Sum = A xor B xor Cin Cout = AB + Cin A + Cin B = AB + Cin (A + B) Full Adder (FA)

BR 8/ Bit Ripple Carry Adder AB S CiCo AB S CiCo AB S CiCo AB S CiCo Cin A(0) Cout B(0)A(1)B(1)A(2)B(2)A(3)B(3) C(0)C(1)C(2)C(3)C(4) Sum(0)Sum(1)Sum(2)Sum(3) A[3:0] B[3:0] SUM[3:0] +

BR 8/9917 Incrementer A(0) A(1)A(2)A(3) EN Y(0)Y(1)Y(2) Y(3) A[3:0] EN Y[3:0] inc If EN = 1 then Y = A + 1 If EN = 0 then Y = A xor

BR 8/9918 What do You have to know? Structures for Muxes, Decoders, Ripple Carry adder, Incrementer What a tristate buffer is How to build muxes from all combinational logic or from combinational logic + tristate buffers Bus naming convention How to build N-bit wide elements from 1-bit wide elements