TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

Logic Synthesis: What It Is and How It Developed

The Editor's Desk
by
0
Share Facebook X LinkedIn WhatsApp Email

Logic synthesis is the step that turns a description of what a circuit should do, usually register transfer level (RTL) code or a higher-level behavioral description, into a netlist of real logic gates. Tools aimed at programmable devices such as PALs and FPGAs produce a configuration for the device; tools aimed at ASICs produce a gate-level netlist built from a cell library. It is one of the core steps of electronic design automation (EDA), and this post, first written in 2006, explains what it does and how it developed.

What synthesis does, in outline

A designer writes what the circuit should compute, clock cycle by clock cycle. The synthesis tool works out how to build it from gates. It does this in three broad stages:

  1. Translate: read the HDL and build a generic network of Boolean logic and registers.
  2. Optimize, independent of technology: simplify that network, removing redundant logic and sharing common terms, without yet caring which gates are available.
  3. Map to the technology: cover the network with the actual cells in the target library, choosing sizes and gate types that meet the timing, area and power goals.

The result is a netlist that placement and routing tools can then lay out on silicon.

How it developed

The foundations are older than computers. George Boole (1815 to 1864) gave us the algebra of true and false, and in 1938 Claude Shannon showed that this two-valued algebra describes switching circuits. Early logic design was done by hand with truth tables and Karnaugh maps, which work well for up to about four to six variables and become unmanageable beyond that.

The first step toward automation was the Quine-McCluskey method, an exact way to minimize a two-level (sum of products) function that a computer can run. It introduced prime implicants and minimum-cost covers, ideas that still underpin two-level minimization. Early research also tackled state minimization and state encoding for finite state machines, a task designers found painful. Because the main application was computer design, IBM and Bell Labs played a large part. When programmable logic arrays (PLAs) arrived, two-level minimization mattered even more, since fewer product terms meant a smaller PLA.

Most VLSI logic, though, uses many levels of gates, not two. IBM's LSS was an early multi-level synthesis system that improved logic with local transformations, and work on LSS and the Yorktown Silicon Compiler drove rapid progress in the 1980s. Universities published their tools: MIS from the University of California, Berkeley, and BOLD from the University of Colorado, Boulder, were among the best known. Within about a decade the technology moved into commercial products from EDA companies. Wikipedia's article on logic synthesis gives a longer account of this history.

Behavioral synthesis, one level higher

Behavioral (or high-level) synthesis starts from an algorithm written in an HDL and produces RTL, which then goes through ordinary logic synthesis. Its job is to decide when each operation happens and which piece of hardware does it. Its cost estimates are rough, based on the number of functional units, registers and states, but they let a designer try several architectures quickly.

Tools in 2006

When this post was written, the main ASIC synthesis tools were Design Compiler from Synopsys and BuildGates from Cadence Design Systems. FPGA synthesis tools included Synplify from Synplicity, Leonardo and Precision from Mentor Graphics, and BlastFPGA from Magma Design Automation.

Deep dive: the numbers and details

This part holds worked examples of each synthesis step, a timeline and what happened to the tools. Skip it if the overview is all you need.

Two-level minimization: a worked example

Take f(a, b, c) = Σm(1, 3, 5, 6, 7), a function that is 1 for five of the eight input combinations.

Minterma b c
10 0 1
30 1 1
51 0 1
61 1 0
71 1 1

Quine-McCluskey combines terms that differ in one bit. 001 and 011 give 0-1; 101 and 111 give 1-1; those two then combine into --1, which is c. Separately, 110 and 111 give 11-, which is ab. Nothing combines further, so the prime implicants are c and ab, and both are needed:

Canonical form: a'b'c + a'bc + ab'c + abc' + abc    (15 literals)
Minimized:      c + ab                              (3 literals)

The exact method grows quickly with the number of inputs, which is why practical tools use heuristic minimizers for large functions.

Multi-level optimization: counting literals

Technology-independent optimization usually measures cost as the number of literals in the factored form, which tracks area well. Factoring pulls out common terms:

f = ac + ad + bc + bd + e      9 literals, two levels
f = (a + b)(c + d) + e         5 literals, three levels

The factored version uses fewer gates but has one more level of logic. Synthesis tools trade the two against each other: they factor aggressively off the critical path and keep logic flatter where timing is tight.

Technology mapping

Mapping replaces the generic network with library cells. For the factored function above, a library with complex gates might build it as:

y  = OAI22(a, b, c, d)    // y = !((a + b)(c + d))
en = INV(e)
f  = NAND2(y, en)         // f = !(y * !e) = (a + b)(c + d) + e

Three cells instead of the two ORs, one AND and one OR of a naive mapping. Once real cells are chosen, the simple literal count gives way to real numbers: each cell's area, delay as a function of load and input slew, and power, taken from the library. Mapping is limited by the functions the library offers and by the drive strengths available.

Behavioral synthesis: scheduling and allocation

Compute y = a·b + c·d. Scheduling assigns operations to clock cycles; allocation assigns them to hardware units.

ResourcesCycle 1Cycle 2Cycle 3Latency
1 multiplier, 1 addera·bc·dadd3 cycles
2 multipliers, 1 addera·b and c·dadd2 cycles

The first schedule saves a multiplier but needs a register to hold a·b and a multiplexer to share the multiplier's inputs, which is the state machine and datapath that behavioral synthesis then writes out as RTL.

Milestones

WhenDevelopment
Boole's lifetime (1815 to 1864)Boolean algebra
1938Shannon links two-valued Boolean algebra to switching circuits
Early automationQuine-McCluskey exact two-level minimization; work on FSM state minimization and encoding
PLA eraTwo-level minimization becomes central, since fewer product terms mean a smaller PLA
1980sIBM LSS and the Yorktown Silicon Compiler spur rapid progress in multi-level synthesis; universities publish MIS (Berkeley) and BOLD (Colorado)
1992Berkeley releases SIS: A System for Sequential Circuit Synthesis, built on top of MIS-II (technical report UCB/ERL M92/41)
Within about a decadeThe research moves into commercial EDA synthesis products

What happened next

  • 2008: Synopsys agreed in March 2008 to acquire Synplicity, maker of Synplify, for $8 per share in cash, a gross value of about $227 million, as reported on March 25, 2008.
  • 2012: Synopsys completed its acquisition of Magma Design Automation for about $523 million net of cash, or $7.35 per Magma share, as reported on February 23, 2012.
  • Today: the commercial tools section of Wikipedia's article names Synopsys, Cadence and Siemens as the leading providers of logic synthesis tools.

Related posts on this blog

The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!