Title: ECE U322 Digital Logic Design
1ECE U322Digital Logic Design
Oct 3th, 2004
- Lecture 11
- Minimization
- Design of Logic Circuits.
- Modular Combinational Logic
- Multiplexers and Binary Adders
- Reading Marcovitz 5-2, 5-5
2Anouncements
- My office hours
- Monday, 3-4 pm 334 Dana
- Wednesday, 1020-1120 am 334 Dana
- Dont forget TA office hours
- Tuesday, 12 -1 pm 232 Forsyth
3Derivation of the Truth Table
- List all possible input combinations.
- Break circuit into small single-output blocks and
label. - Obtain truth table for blocks which depend only
on input variables. - Obtain the truth table for blocks with functions
that depend on previously defined inputs and
block outputs, until the circuit outputs are
determined.
4Example Verify the operation of the following
circuit as a binary adder.
5Truth Table
6(No Transcript)
7(No Transcript)
8Design Procedure
- From the specifications, determine the required
number of inputs and outputs. Assign a symbol to
each. - Derive the truth table.
- Obtain the simplified Boolean functions.
- Draw the logic diagram.
- Verify the correctness of the design.
9Example Design a 3-input, 1-output
combinational circuit such that output
logic 1, if binary value of inputs is less
than 011 logic 0, otherwise
10(No Transcript)
11Modular Combinational Logic
- So far
- Start from Boolean equations, simplify then
implement with logic gates - Most logic functions occur over and over again
- Design them once
- Put them in a design library
- Reuse them
12Modular Combinational Logic
- Combinational logic designs we will study
- Data selectors (multiplexers)
- Decoders/Encoders
- Demultiplexers
- Binary Arithmetic Circuits
- Adders, Subtractors, Comparators
13Modular Logic Example
- Design a circuit with
- two 4-bit data inputs A and B
- a 2-bit select input s s1s0
- Value of s determines output
14Modular Logic Example
- Implement all functions of A and B in parallel,
all the time - Choose the one to go to output based on value of
s - A data selector is called a multiplexer
15Datapath for Example circuit
16In Lab 3
17Multiplexers (MUX)
- Data selector.
- Selects binary information from one of many input
lines to a single output line. - Selection inputs control which particular input
line to select. - Normally, there are 2n input lines, n selection
inputs, and one output.
18Multiplexers
- A simple multiplexer has a single bit output
- Common Multiplexers are
- 2-to-1 2 inputs __ select lines
- 4-to-1 4 inputs __ select lines
- 8-to-1 8 inputs __ select lines
- 2n-to-1 2n inputs ___select lines
19Example 2-to-1 Multiplexer
202-to-1 multiplexer
212-to-1 Mux with Enable
E S Y 0 X 0 1 0 D0 1 1
D1
224 to 1 Multiplexer
23(No Transcript)
244 2-to-1 muxes
252 4-to-1 muxes
26In Example
- Choosing one of four different functions of A and
B - Each function output is 4 bits wide
- What kind of muxes to use?
- How many?
27Build a 4-to-1 mux out of 2-to-1 muxes
28Arithmetic Circuits
- Combinational circuits that performs arithmetic
operations such as addition, subtraction,
multiplication, and division with numbers in a
binary code. - We will consider
- adders
- subtracters
- comparators
29Binary Adders
- Addition of two binary digits
- 0 0
- 0 1
- 1 0
- 1 1
30- Half Adder
- Combinational circuit the performs the addition
of two bits. - Full Adder
- Combination circuit that performs the addition of
three bits (two significant bits and a previous
carry).
31Half Adder
32Full Adder
33(No Transcript)
34