{"id":377,"date":"2026-11-21T13:14:52","date_gmt":"2026-11-21T12:14:52","guid":{"rendered":"https:\/\/memristors.uib.es\/?page_id=377"},"modified":"2026-11-21T13:14:52","modified_gmt":"2026-11-21T12:14:52","slug":"fosslab","status":"publish","type":"page","link":"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/","title":{"rendered":"FOSSlab"},"content":{"rendered":"<div id=\"fosslab\" class=\"fosslab\"><nav class=\"fosslab-toc\" aria-label=\"Tutorial chapters\"><ol><li class=\"current\"><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=overview#fosslab\">The analog design flow, with free tools<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=getting-started#fosslab\">Getting started: log in and meet FOSSLab<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=schematic#fosslab\">Schematic and symbol of the op-amp<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=simulation#fosslab\">Testbenches and simulation<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=veriloga#fosslab\">A behavioural model in Verilog-A<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=layout#fosslab\">Layout with IHP PCells<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=verification#fosslab\">DRC and LVS<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=postlayout#fosslab\">Parasitic extraction and post-layout simulation<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=corners#fosslab\">Corners: the Simulation Environment<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=montecarlo#fosslab\">Monte Carlo analysis<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=va-montecarlo#fosslab\">Monte Carlo with the Verilog-A model<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=exercise#fosslab\">Exercise: a model with two poles<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=reference#fosslab\">Reference: menus and commands<\/a><\/li><li><a href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=admin#fosslab\">For teachers: install and supervise<\/a><\/li><\/ol><\/nav><article class=\"fosslab-chapter\"><p class=\"fosslab-kicker\">Chapter 1 of 14 \u00b7 about 10 min<\/p><h2 class=\"fosslab-title\">The analog design flow, with free tools<\/h2><p>This tutorial takes one circuit, a two-stage CMOS operational amplifier (the classic design of Allen &amp; Holberg, <em>CMOS Analog Circuit Design<\/em>), through the complete analog design flow: schematic, simulation, a behavioural model, layout, verification and post-layout simulation, then process corners and Monte Carlo. It is the same journey as the course's original Cadence tutorial, now made only with free and open-source software and a real, public 130&nbsp;nm process: <strong>IHP SG13G2<\/strong>.<\/p>\n\n<h3>Libraries, cells and views<\/h3>\n<p>Designs are organised as in Cadence. A <strong>library<\/strong> holds <strong>cells<\/strong> (an op-amp, a current mirror, a testbench). Each cell has several <strong>views<\/strong>, each one a different description of the same thing, edited with its own program:<\/p>\n<table>\n<tr><th>View<\/th><th>What it is<\/th><th>File<\/th><th>Program<\/th><\/tr>\n<tr><td>schematic<\/td><td>the circuit: devices and wires<\/td><td><code>cell.sch<\/code><\/td><td>xschem<\/td><\/tr>\n<tr><td>symbol<\/td><td>the box that represents the cell in a bigger schematic<\/td><td><code>cell.sym<\/code><\/td><td>xschem<\/td><\/tr>\n<tr><td>veriloga<\/td><td>a behavioural model, as equations<\/td><td><code>cell.va<\/code><\/td><td>text editor + OpenVAF<\/td><\/tr>\n<tr><td>layout<\/td><td>the drawing the factory builds from<\/td><td><code>cell.gds<\/code><\/td><td>KLayout<\/td><\/tr>\n<tr><td>extracted<\/td><td>the circuit read back from the layout (LVS)<\/td><td>generated<\/td><td>KLayout LVS<\/td><\/tr>\n<tr><td>extracted + parasitics<\/td><td>the same, with wire capacitances (PEX)<\/td><td>generated<\/td><td>Magic<\/td><\/tr>\n<\/table>\n<p>The <strong>FOSSLab Library Manager<\/strong> shows libraries, cells and views side by side and opens every view in the right program, already set up for the IHP process. From inside the schematic editor and the layout editor, a <em>FOSSLab<\/em> menu jumps to the other views of the same cell: from a schematic to its layout and back, to the whole design hierarchy, to the verification results.<\/p>\n\n<h3>From Cadence to free tools<\/h3>\n<table>\n<tr><th>Job<\/th><th>Cadence (original tutorial)<\/th><th>This tutorial<\/th><\/tr>\n<tr><td>Design manager<\/td><td>Library Manager<\/td><td>FOSSLab Library Manager<\/td><\/tr>\n<tr><td>Schematic and symbol<\/td><td>Virtuoso Schematic (Composer)<\/td><td>xschem<\/td><\/tr>\n<tr><td>Simulation<\/td><td>Spectre + ADE<\/td><td>ngspice, driven from xschem or FOSSLab<\/td><\/tr>\n<tr><td>Waveforms<\/td><td>ViVA \/ WaveScan<\/td><td>xschem graphs, gaw<\/td><\/tr>\n<tr><td>Behavioural model<\/td><td>Verilog-A in Spectre<\/td><td>Verilog-A compiled by OpenVAF, run by ngspice<\/td><\/tr>\n<tr><td>Layout<\/td><td>Virtuoso Layout (XL), PCells<\/td><td>KLayout with IHP's PCells<\/td><\/tr>\n<tr><td>DRC, LVS<\/td><td>Assura<\/td><td>KLayout with IHP's rule decks<\/td><\/tr>\n<tr><td>Parasitic extraction<\/td><td>Assura RCX<\/td><td>Magic<\/td><\/tr>\n<tr><td>Process<\/td><td>AMS 0.35&nbsp;\u00b5m (HIT-Kit)<\/td><td>IHP SG13G2 130&nbsp;nm, open PDK<\/td><\/tr>\n<\/table>\n\n<h3>The flow, step by step<\/h3>\n<ol>\n<li><strong>Schematic capture<\/strong> of the op-amp, with input\/output pins, and its <strong>symbol<\/strong>.<\/li>\n<li>A <strong>testbench<\/strong>: a separate cell that uses the op-amp's symbol, adds supplies and sources, and tells the simulator what to do. Simulate; compare with the specifications; go back to the schematic until they are met.<\/li>\n<li>A <strong>Verilog-A model<\/strong> of the op-amp, for fast system-level simulations, checked against the transistor-level circuit.<\/li>\n<li>The <strong>layout<\/strong>, with the process's parameterised cells (PCells).<\/li>\n<li><strong>DRC<\/strong> (design rule check): is it manufacturable? <strong>LVS<\/strong> (layout versus schematic): is it the same circuit?<\/li>\n<li><strong>Parasitic extraction<\/strong> and <strong>post-layout simulation<\/strong>: how much do the wires change the performance?<\/li>\n<li><strong>Corners<\/strong> and <strong>Monte Carlo<\/strong>: does it still work when the process, the supply and the temperature move?<\/li>\n<\/ol>\n\n<div class=\"fl-note\">Everything runs on the course server, inside one container image (IIC-OSIC-TOOLS) that holds every program and the IHP PDK, so all students use exactly the same versions. You only need a remote-desktop client: see the next chapter.<\/div>\n<nav class=\"fosslab-pager\"><a class=\"next\" href=\"https:\/\/memristors.uib.es\/index.php\/education\/fosslab\/?fl=getting-started#fosslab\">Getting started: log in and meet FOSSLab \u2192<\/a><\/nav><\/article><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":278,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-377","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/pages\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":1,"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/pages\/377\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/pages\/377\/revisions\/378"}],"up":[{"embeddable":true,"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/pages\/278"}],"wp:attachment":[{"href":"https:\/\/memristors.uib.es\/index.php\/wp-json\/wp\/v2\/media?parent=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}