# VLSI circuit design

From a single CMOS inverter to a chip - logic levels, noise margin, dynamic power, the energy-delay trade-off and the digital design flow. A first-principles learning page.

Full page with the site theme: https://krunalpanchal1995.github.io/projects/vlsi-circuit-design/

## Figures

![A CMOS inverter flips sharply near V_DD/2, restoring logic levels, and draws current only while switching.](figures/01_cmos_inverter_vtc-1600.png)

*A CMOS inverter flips sharply near V_DD/2, restoring logic levels, and draws current only while switching.*

![Lowering the supply voltage cuts energy quadratically but slows the gates, which is the core dynamic-voltage-scaling trade-off.](figures/02_energy_delay_tradeoff-1600.png)

*Lowering the supply voltage cuts energy quadratically but slows the gates, which is the core dynamic-voltage-scaling trade-off.*

---

A learning page: standard circuit theory from the textbooks listed at the bottom, with figures computed from the formulas shown. It makes no claim of new research results, and the device parameters are illustrative.

## Intuition

Digital circuits decide between two voltages, "high" and "low", and keep deciding even when the signals are a bit noisy. The simplest decider is the inverter, which turns a high into a low and a low into a high. Chain millions of them into gates and you can compute anything. The art of design is keeping them fast, small and cool.

## School level

- A CMOS inverter has a p-type MOSFET connecting the output to the supply and an n-type connecting it to ground. A high input turns the n-type on (output low); a low input turns the p-type on (output high).
- Only one of the two conducts once the output has settled, so a CMOS gate draws almost no current at rest.
- Every time a gate switches it charges or discharges the capacitance of the wires and gates it drives, and that costs energy.

## College level

The inverter's voltage-transfer curve (figure 1) is flat at the two rails and falls sharply near V<sub>DD</sub>/2 for matched transistors. The steep middle gives the **noise margins**: how far an input can drift from a rail and still be read correctly.

**Power.** A full charge-and-discharge cycle of a node of capacitance C moves charge C V<sub>DD</sub> from the supply and dissipates energy C V<sub>DD</sub><sup>2</sup> in total, so the dynamic power of a circuit is

P<sub>dyn</sub> = α C V<sub>DD</sub><sup>2</sup> f,

with activity factor α and clock frequency f, plus leakage power.

**Delay.** The alpha-power law (Sakurai-Newton) gives gate delay t<sub>d</sub> ∝ C V<sub>DD</sub> / (V<sub>DD</sub> − V<sub>T</sub>)<sup>α</sup>, with α between 1 and 2. Lowering V<sub>DD</sub> cuts energy quadratically but slows the gates, which is the basis of **dynamic voltage and frequency scaling** (figure 2).

**Analog.** A common-source amplifier has a small-signal gain of about −g<sub>m</sub> R<sub>D</sub>, and the intrinsic gain of a single transistor is g<sub>m</sub> r<sub>o</sub>. Feedback around a high-gain amplifier makes a stable, precise operational amplifier.

## Advanced

- **Digital design flow:** specify, write RTL (hardware description language), simulate, synthesise to gates, place and route, verify timing, check power and design rules, then tape out to the foundry.
- **Timing closure:** every path from one register to the next must settle within one clock period, including variation from voltage, temperature and manufacturing.
- **Low-power design:** clock gating, power gating of idle blocks and multiple supply voltages.

## Where this shows up

- Processors, memory interfaces, sensor read-out chips and radio front ends.
- Electronic design automation tools and cell libraries.

## Check yourself

1. A circuit switches at 1 GHz with α = 0.1, C = 1 nF total and V<sub>DD</sub> = 1 V. What is its dynamic power? *Answer: 0.1 × 10<sup>-9</sup> × 1<sup>2</sup> × 10<sup>9</sup> = 0.1 W.*
2. If V<sub>DD</sub> is cut from 1.0 V to 0.7 V, by what factor does switching energy per operation fall? *Answer: to 0.7<sup>2</sup> = 0.49 of its value, about half.*
3. Why does a CMOS gate draw so little current at rest? *Answer: in each steady state one of the two transistors is off, so there is no direct path from supply to ground apart from small leakage.*

## Read next

- N. H. E. Weste and D. M. Harris, *CMOS VLSI Design*.
- B. Razavi, *Design of Analog CMOS Integrated Circuits*.
- J. M. Rabaey, A. Chandrakasan and B. Nikolić, *Digital Integrated Circuits*.
