130 likes | 141 Views
Explore comparators, shifters, and multipliers in VLSI design. Learn about different adder systems and analysis of critical paths in array multipliers.
E N D
Design and Implementation of VLSI Systems (EN0160) Lecture 29: Datapath Subsystems 3/3 Prof. Sherief Reda Division of Engineering, Brown University Spring 2007 [sources: Weste/Addison Wesley – Rabaey/Pearson]
Last two lectures We talked about different kind of adders This lecture Comparators Shifters Multipliers Outline
0’s detector: A = 00…000 1’s detector: A = 11…111 Equality comparator: A = B Magnitude comparator: A < B Comparators
1’s detector: N-input AND gate 0’s detector: NOTs + 1’s detector (N-input NOR) When is this circuit structure a good idea? 1. 1’s and 0’s detectors
Check if each bit is equal (XNOR, aka equality gate) 1’s detect on bitwise equality 1. Equality comparator
1. Magnitude comparator • Compute B-A and look at sign • B-A = B + ~A + 1 • For unsigned numbers, carry out is sign bit
Shifting a data word by a constant amount is trivial A programmable shifter is more complex 2. Shifters Multibit shifter can be cascaded together
2. Barrel Shifter • Signal passes through at most one transmission gate • Total transistors = N2 • Dominated by wiring
2. Logarithmic shifter • Total shift is decomposed into stages of 2 • Speed of shifting N bits depends on log N • Number of transistor = 2(log N)* N
Array multiplier Where is the critical path?
Carry Save Multiplier The carry bits are not immediately added, but rather are “saved” for the next adder stage