Cmos Layout
Cmos Layout
Cmos Layout
Introduction
CMOS Layout Design Rules
CMOS Inverter Layout Design
Layout of CMOS NAND and NOR Gates
Complex CMOS Logic Gates
3.1 Introduction
In this chapter, the basic mask layout design guidelines for CMOS logic gates will be presented.
The design of physical layout is very tightly linked to overall circuit performance (area, speed,
power dissipation) since the physical structure directly determines the transconductances of the
transistors, the parasitic capacitances and resistances, and obviously, the silicon area which is used
for a certain function. On the other hand, the detailed mask layout of logic gates requires a very
intensive and time-consuming design effort, which is justifiable only in special circumstances where
the area and/or the performance of the circuit must be optimized under very tight constraints.
Therefore, automated layout generation (e.g., standard cells + computer-aided placement and
routing) is typically preferred for the design of most digital VLSI circuits. In order to judge the
physical constraints and limitations, however, the VLSI designer must also have a good
understanding of the physical mask layout process.
Mask layout drawings must strictly conform to a set of layout design rules as described in Chapter
2, therefore, we will start this chapter with the review of a complete design rule set. The design of a
simple CMOS inverter will be presented step-by-step, in order to show the influence of various
design rules on the mask structure and on the dimensions. Also, we will introduce the concept of
stick diagrams, which can be used very effectively to simplify the overall topology of layout in the
early design phases. With the help of stick diagrams, the designer can have a good understanding of
the topological constraints, and quickly test several possibilities for the optimum layout without
actually drawing a complete mask diagram.
The physical (mask layout) design of CMOS logic gates is an iterative process which starts with the
circuit topology (to realize the desired logic function) and the initial sizing of the transistors (to
realize the desired performance specifications). At this point, the designer can only estimate the
total parasitic load at the output node, based on the fan-out, the number of devices, and the expected
length of the interconnection lines. If the logic gate contains more than 4-6 transistors, the
topological graph representation and the Euler-path method allow the designer to determine the
optimum ordering of the transistors. A simple stick diagram layout can now be drawn, showing the
locations of the transistors, the local interconnections between the transistors and the locations of
the contacts.
After a topologically feasible layout is found, the mask layers are drawn (using a layout editor tool)
according to the layout design rules. This procedure may require several small iterations in order to
accommodate all design rules, but the basic topology should not change very significantly.
Following the final DRC (Design Rule Check), a circuit extraction procedure is performed on the
finished layout to determine the actual transistor sizes, and more importantly, the parasitic
capacitances at each node. The result of the extraction step is usually a detailed
Figure-3.1: The typical design flow for the production of a mask layout.
SPICE input file, which is automatically generated by the extraction tool. Now, the actual
performance of the circuit can be determined by performing a SPICE simulation, using the extracted
net-list. If the simulated circuit performance (e.g., transient response times or power dissipation) do
not match the desired specifications, the layout must be modified and the whole process must be
repeated. The layout modifications are usually concentrated on the (W/L) ratios of the transistors
(transistor re-sizing), since the width-to-length ratios of the transistors determine the device
transconductance and the parasitic source/drain capacitances. The designer may also decide to
change parts or all of the circuit topology in order to reduce the parasitics. The flow diagram of this
iterative process is shown in Fig. 3.1.
Figure-3.3: Design rule constraints which determine the dimensions of a minimum-size transistor.
features (active areas, polysilicon lines, metal lines) are represented by constant width rectangles or
simple sticks. The purpose of the stick diagram is to provide the designer a good understanding of
the topological constraints, and to quickly test several possibilities for the optimum layout without
actually drawing a complete mask diagram. In the following, we will examine a series of stick
diagrams which show different layout options for the CMOS inverter circuit.
The first two stick diagram layouts shown in Fig. 3.6 are the two most basic inverter configurations,
with different alignments of the transistors. In some cases, other signals must be routed over the
inverter. For instance, if one or two metal lines have to be passed through the middle of the cell
from left to right, horizontal metal straps can be used to access the drain terminals of the transistors,
which in turn connect to a vertical Metal-2 line. Metal-1 can now be used to route the signals
passing through the inverter. Alternatively, the diffusion areas of both transistors may be used for
extending the power and ground connections. This makes the inverter transistors transparent to
horizontal metal lines which may pass over.
The addition of a second metal layer allows more interconnect freedom. The second- level metal
can be used for power and ground supply lines, or alternatively, it may be used to vertically strap the
input and the output signals. The final layout example in Fig. 3.6 shows one possibility of using a
third metal layer, which is utilized for routing three signals on top.
Figure-3.7: Sample layouts of a CMOS NOR2 gate and a CMOS NAND2 gate.
Figure-3.8: Major steps required for generating the mask layout of a CMOS NOR2 gate.
Figure-3.9: Major steps required for generating the mask layout of a CMOS NAND2 gate.
Figure-3.10: A complex CMOS logic gate realizing a Boolean function with 5 input variables.
Now, we will investigate the problem of constructing a minimum-area layout for the complex
CMOS logic gate. Figure 3.11 shows the stick-diagram layout of a first-attempt, using an
arbitrary ordering of the polysilicon gate columns. Note that in this case, the separation between the
polysilicon columns must be sufficiently wide to allow for two metal-diffusion contacts on both
sides and one diffusion-diffusion separation. This certainly consumes a considerable amount of
extra silicon area.
If we can minimize the number of active-area breaks both for the nMOS and for the pMOS
transistors, the separation between the polysilicon gate columns can be made smaller. This, in turn,
will reduce the overall horizontal dimension and the overall circuit layout area. The number of
active-area breaks can be minimized by changing the ordering of the polysilicon columns, i.e., by
changing the ordering of the transistors.
Figure-3.11: Stick diagram layout of the complex CMOS logic gate, with an arbitrary ordering of
the polysilicon gate columns.
A simple method for finding the optimum gate ordering is the Euler-path method: Simply find a
Euler path in the pull-down network graph and a Euler path in the pull-up network graph with the
identical ordering of input labels, i.e., find a common Euler path for both graphs. The Euler path is
defined as an uninterrupted path that traverses each edge (branch) of the graph exactly once. Figure
3.12 shows the construction of a common Euler path for both graphs in our example.
Figure-3.12: Finding a common Euler path in both graphs for the pull-down and pull-up net
provides a gate ordering that minimizes the number of active-area breaks. In both cases, the Euler
path starts at (x) and ends at (y).
It is seen that there is a common sequence (E-D-A-B-C) in both graphs. The polysilicon gate
columns can be arranged according to this sequence, which results in uninterrupted active areas for
nMOS as well as for pMOS transistors. The stick diagram of the new layout is shown in Fig. 3.13.
In this case, the separation between two neighboring poly columns must allow only for one metaldiffusion contact. The advantages of this new layout are more compact (smaller) layout area, simple
routing of signals, and correspondingly, smaller parasitic capacitance.
Figure-3.13: Optimized stick diagram layout of the complex CMOS logic gate.
It may not always be possible to construct a complete Euler path both in the pull-down and in the
pull-up network. In that case, the best strategy is to find sub-Euler-paths in both graphs, which
should be as long as possible. This approach attempts to maximize the number of transistors which
can be placed in a single, uninterrupted active area.
Finally, Fig. 3.14 shows the circuit diagram of a CMOS one-bit full adder. The circuit has three
inputs, and two outputs, sum and carry_out. The corresponding mask layout of this circuit is given
in Fig. 3.15. All input and output signals have been arranged in vertical polysilicon columns. Notice
that both the sum-circuit and the carry-circuit have been realized using one uninterrupted active area
each.