Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Complex Combinational Logic Blocks ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions from Logic Gates We've already seen how to implement truth tables using AND, OR, and NOT -- an example of combinational logic. Combinational Logic Circuit output depends only on the current inputs Stateless Quick review + example Then examples of some useful combinational circuits
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-3 Review: Building AND/OR/NOT Logic Circuit Can implement ANY truth table with AND, OR, NOT. ABCD AND combinations that yield a "1" in the truth table. 2. OR the results of the AND gates.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-4 Decoder n inputs, 2 n outputs exactly one output is 1 for each possible input pattern 2-bit decoder
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Example: 7-Segment Display Decoder 3-5 ABCDs1s2s3s4s5s6s s2 s5 s1 s3 s6 s7 s4 4:16 Decoder A B C D s5
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-6 Full Adder Add two bits and carry-in, produce one-bit sum and carry-out. ABC in SC out
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-7 Four-bit Ripple-Carry Adder
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-8 Multiplexer (MUX) n-bit selector and 2 n inputs, one output output equals one of the inputs, depending on selector 4-to-1 MUX
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. LC-3 Arithmetic/Logic Unit (ALU) bit Adder16-bit AND16-bit NOT Left OperandRight Operand Result Mux ctrl: 00 – Add 01 – AND 10 – NOT 11 – N/A
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Summary Building AND/OR/NOT Logic Functions Useful Complex Logic Blocks Decoder Full Adder Ripple-carry Adder Multiplexer LC-3 Arithmetic-Logic Unit (ALU)