ADVANCED VLSI CHAP6-1
-
Upload
kirtesh-tiwari -
Category
Documents
-
view
220 -
download
0
Transcript of ADVANCED VLSI CHAP6-1
-
7/28/2019 ADVANCED VLSI CHAP6-1
1/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Topics
Shifters.
Adders and ALUs.
-
7/28/2019 ADVANCED VLSI CHAP6-1
2/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Combinational shifters
Useful for arithmetic operations, bit field
extraction, etc.
Latch-based shift register can shift only one
bit per clock cycle.
A multiple-shift shifter requires additional
connectivity.
-
7/28/2019 ADVANCED VLSI CHAP6-1
3/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter
Can perform n-bit shifts in a single cycle.
Efficient layout.
Does require transmission gates and long
wires.
-
7/28/2019 ADVANCED VLSI CHAP6-1
4/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter structure
Accepts 2n data inputs and n control signals,
producing n data outputs.
data
1
data
2
n bits
n bits
out
put
n bits
-
7/28/2019 ADVANCED VLSI CHAP6-1
5/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter operation
Selects arbitrary contiguous n bits out of2n
input buts.
Examples:
right shift: data into top, 0 into bottom;
left shift: 0 into top, data into bottom;
rotate: data into top and bottom.
-
7/28/2019 ADVANCED VLSI CHAP6-1
6/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter layout
Two-dimensional array of2n vertical Xn
horizontal cells.
Input data travels diagonally upward.
Output wires travel horizontally.
Control signals run vertically. Exactly one
control signal is set to 1, turning on alltransmission gates in that column.
-
7/28/2019 ADVANCED VLSI CHAP6-1
7/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter cell
-
7/28/2019 ADVANCED VLSI CHAP6-1
8/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Barrel shifter in action
-
7/28/2019 ADVANCED VLSI CHAP6-1
9/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Analysis
Large number of cells, but each one is
small.
Delay is large, considering long wires and
transmission gates.
-
7/28/2019 ADVANCED VLSI CHAP6-1
10/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Adders
Adder delay is dominated by carry chain.
Carry chain analysis must consider
transistor, wiring delay.
Modern VLSI favors adder designs which
have compact carry chains.
-
7/28/2019 ADVANCED VLSI CHAP6-1
11/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Full adder
Computes one-bit sum, carry:
si = ai XOR bi XOR ci
ci+1 = aibi + aici + bici
Ripple-carry adder: n-bit adder built from
full adders.
Delay of ripple-carry adder goes through all
carry bits.
-
7/28/2019 ADVANCED VLSI CHAP6-1
12/25
-
7/28/2019 ADVANCED VLSI CHAP6-1
13/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Carry-lookahead expansion
Can recursively expand carry formula:
ci+1 = Gi + Pi(Gi-1 + Pi-1ci-1)
ci+1 = Gi + PiGi-1 + PiPi-1 (Gi-2 + Pi-1ci-2)
Expanded formula does not depend on
intermerdiate carries.
Allows carry for each bit to be computed
independently.
-
7/28/2019 ADVANCED VLSI CHAP6-1
14/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Depth-4 carry-lookahead
-
7/28/2019 ADVANCED VLSI CHAP6-1
15/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Analysis
Deepest carry expansion requires gates with
large fanin: large, slow.
Carry-lookahead unit requires complexwiring between adders and lookahead
unitvalues must be routed back from
lookahead unit to adder. Layout is even more complex with multiple
levels of lookahead.
-
7/28/2019 ADVANCED VLSI CHAP6-1
16/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Carry-skip adder
Looks for cases in which carry out of a set
of bits is identical to carry in.
Typically organized into m-bit stages.
Ifai= b
ifor every bit in stage, then bypass
gate sends stages carry input directly to
carry output.
-
7/28/2019 ADVANCED VLSI CHAP6-1
17/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Two-bit carry-skip structure
-
7/28/2019 ADVANCED VLSI CHAP6-1
18/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Carry-select adder
Computes two results in parallel, each for
different carry input assumptions.
Uses actual carry in to select correct result.
Reduces delay to multiplexer.
-
7/28/2019 ADVANCED VLSI CHAP6-1
19/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Carry-select structure
-
7/28/2019 ADVANCED VLSI CHAP6-1
20/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Manchester carry chain
Precharged carry chain which uses P and G
signals.
Propagate signal connects adjacent carrybits.
Generate signal discharges carry bit.
Worst-case discharge path goes through
entire carry chain.
-
7/28/2019 ADVANCED VLSI CHAP6-1
21/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Manchester carry chain circuit
-
7/28/2019 ADVANCED VLSI CHAP6-1
22/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Serial adder
May be used in signal-processing arithmetic
where fast computation is important but
latency is unimportant. Data format (LSB first):
0 1 1 0
LSB
-
7/28/2019 ADVANCED VLSI CHAP6-1
23/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Serial adder structure
LSB control signal clears the carry shift
register:
-
7/28/2019 ADVANCED VLSI CHAP6-1
24/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
ALUs
ALU computes a variety of logical and
arithmetic functions based on opcode.
May offer complete set of functions of twovariables or a subset.
ALU built around adder, since carry chain
determines delay.
-
7/28/2019 ADVANCED VLSI CHAP6-1
25/25
Modern VLSI Design 4e: Chapter 6 Copyright 2008 Wayne Wolf
Mux-based ALU