CMOS Newton’s Method Engine

ENEE640, Spring 2026. Transistor-level design in Cadence Virtuoso, verified in Spectre. TSMC 0.25 µm, 3 V.

Newton’s method, which underlies gradient-based optimizers, requires a division at every step:

xn+1 = xn − f(xn) / f′(xn)

Over the semester I built a hardware implementation of this update in static CMOS, starting with a divider, then the iteration loop, then a register file. Each design was evaluated on its position on the power-delay Pareto front.

Top-level diagram: A and B inputs, a zero checker on B, a 4-bit non-restoring divider with worst-case bypass, zero-extension of the quotient, a 5-bit subtractor, and a 5-bit register whose output feeds back as x_n

Divider

The 4-bit unsigned divider uses a non-restoring array instead of a restoring one. In a restoring divider, each row has to finish its borrow ripple before feeding the result back as a mux select across the row. In the non-restoring version, the previous row’s quotient bit selects add or subtract through an XOR that settles while that row is still rippling, so each row’s critical path is only the carry chain. The internal data path was extended to 5 bits to prevent sign overflow for divisors of 8 or more. Edge cells with unused outputs were trimmed (the top-row cells drop from 28 to 16 transistors), a correction row adds the divisor back when the final remainder is negative, and a zero checker built from a single NOR3 and OR substitutes a divisor of 1 for 0. Because the specification measured delay on one defined worst-case transition, I added a bypass that detects that input in three gate delays and drives the outputs directly. The design passed all 64 test vectors at 244 µW average power and 266 ps worst-case delay.

Non-restoring array divider: four rows of five XOR plus mirror full adder cells, quotient bits from each row controlling the next row, trimmed edge cells, and a remainder correction row

Iteration loop and register file

The divider feeds a 5-bit two’s-complement ripple subtractor built from mirror full adders, and a 5-bit transmission-gate master-slave register with synchronous reset stores xn between clock edges. The final stage was a 4×4-bit static CMOS register file. Write enable is merged into the address decoder’s AND gates to remove a gate level, and each flip-flop retains its value through a feedback mux rather than clock gating, which avoids glitches on the clock. Reads are asynchronous through transmission-gate multiplexers. All stages passed their test vectors, and the register file operated correctly in simulation up to about 2 GHz.