Professional Documents
Culture Documents
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
CMOS logic
Pull-up network:
p-type transistors short circuit, if f (X ) = 1 open circuit, if f (X ) = 0
Pull-down network:
n-type transistors short circuit, if f (X ) = 0 open circuit, if f (X ) = 1
y = f (X )
Arithmetic circuits
Buer circuits
Complex gates
Complex gates can be realized at transistor level which is advantageous as the gate delay is smaller for one complex gate than for the series connection of several simple gates realizing the same function. Usually the number of inputs is limited to 4 (the number of transistors in series between the ground and supply is limited). The realized logic function can be any combination of the AND and NOR functions and there is always an inversion at the output: y = (A + B )C y = AB + CD y = (A + B )CD
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Next the pull-up network (PUN) is designed with p-type transistors. The PUN has to create a current path between the supply rail and the output for every logic 1 of the logic function. This can be done by creating the dual network of the PDN. In the dual network every series connection is turned into a parallel connection and vica versa.
Arithmetic circuits
Buer circuits
As the p-type transistors conduct when the input is logic 0, the function has to be inverted using the De Morgan laws. In this case: y = C (A + B ) = C + A + B = C + AB As it can now be seen, the two methods yield the same results.
Arithmetic circuits
Buer circuits
The basic inverter is able to charge a given capacitance during in a given delay time.
Along with the input capacitances of the gates connected to the output of the gate, the wires also contribute to the load capacitance that a gate has to drive. These factors determine the fan-out of a CMOS gate. Usually every gate is designed in multiple forms with 2, 4, ... times larger fan-out. In an inverter this means that the transistors have wider channels.
Arithmetic circuits
Buer circuits
This is just an approximation but the MOS channels can be approximated with resistors with a relatively good accuracy. If two n-type MOS FETs with channel sizes of W and L are connected in series and a positive voltage is applied to their gates:
the current of the transistors is proportional to W/L, ID W/L R L/W , when two FETs are connected in series, the equivalent resistances add up: R 2L/W .
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
This multiplexer would require 8 transistors in traditional CMOS design. With transfer gates only 4 FETs are needed, provided that S is at disposal (usually this is the case as ipops provide the inverted values as well).
Arithmetic circuits
Buer circuits
Both solution uses only 4 transistors instead of 8. The XOR function is used in adder circuits.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
No static current consumption, just dynamic. Number of transistors: n + 2 (instead of 2n for traditional CMOS).
Problem: the 0 output appears with a delay, as the capacitor is always charged at the beginning of the evaluation phase, thus there is a false glitch at 0 outputs.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Solution II: if the next stage is realized with an inverted logic, the positive glitch doesnt cause problems.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Monoops:
have stable and an unstable states, when set to their unstable state, they return to the stable state after a certain time, create impulses of a given width.
Bistable ops:
latches: have two transparent states a change at the input is instantly seen at the output, ipops: the output only changes at the rising or falling edge of the clock.
Arithmetic circuits
Buer circuits
latch
ipop
Arithmetic circuits
Buer circuits
Monostable circuits
They make use of the gate delays. In the circuit built of NOR gates below, there is a short positive impulse at the output when the input switches from 1 to 0.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
The SR latch
Latches can be built of logic gates. Designing at the transistor level allows for smaller and faster designs. An SR latch can be built with NOR gates. An enable input can be added using an AND gate.
Arithmetic circuits
Buer circuits
D latch
D latches are used much more often than SR latches. A D latch can be created using an SR latch:
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Master-slave ipops
Master-slave ipops are created of two latches connected in series, and the enable signal (clock) inverted for one of them.
Arithmetic circuits
Buer circuits
Dynamic D ipop
When CP = 1: T G1 is open, T G2 is closed. The value of D is stored in the parasitic capacitance shown in blue. When CP = 0: T G1 is closed, T G2 is open. The logic value of the master is copied to the slave.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Full adder I.
Full adder FA: Inputs: A, B , CIN (carry in) Outputs: S (sum), COU T
Logic functions of the full adder COU T = AB + CIN (A + B ) S = ABCIN + (A + B + CIN )COU T
Arithmetic circuits
Buer circuits
A full adder can be realized with two complex gates, but COU T is computed in 1 gate delay, while S in 2. An other problem is that the outputs of the complex gates are inverted, so extra inverters are needed.
Arithmetic circuits
Buer circuits
Arithmetic circuits
Buer circuits
Problems: In order to compute bit #1, COU T 0 has to be computed. In order to compute bit #2, COU T 1 has to be computed. The entire computation takes n tCOU T time.
Arithmetic circuits
Buer circuits
This solution is faster, but every second sum bit is inverted. An even faster way of adding is to calculate the carries in advance this is done by the carry look-ahead architecture.
Arithmetic circuits
Buer circuits
Multipliers I.
Arithmetic circuits
Buer circuits
Multipliers II.
The circuit realizing the algorithm above:
Arithmetic circuits
Buer circuits
Multipliers IV.
An other subcircuit that appears in the multiplier:
Arithmetic circuits
Buer circuits
Buers I.
Long lines impose large capacitive loads on the drivers. Thus driving circuits need to have large output currents. Tristate outputs needed to enable several drivers on the same bus.
Arithmetic circuits
Buer circuits
Buers II.
Buers can be realized using the series connection of inverters that have an increasing W/L ratio.
Tarnsistors of large W/L ratios have large output currents, but their input capacitance is large as well, so normal inverters can not drive them. This is why the W/L ratio has to be increased step-by-step.
Arithmetic circuits
Buer circuits
Tristate buer
Arithmetic circuits
Buer circuits
I/O circuits I.
Output circuits Usually tristate buers complemented with D ipops to store the output value. Input circuits They protect the circuit from high voltages, that would harm the devices. This is called ESD protection due to the fact, that MOS transistors are very sensitive to electrostatic discharges the oxide breaks down at high voltages. The gates of the input transistors are protected using resistors and diodes.
Arithmetic circuits
Buer circuits