KLayout

Installation

On Ubuntu, KLayout is available by default on the repositories, so we just have to install it:

sudo apt install klayout

Warning

IHP Open PDK needs at least KLayout 29, so you need to make sure you have a recent enough version. Before installation, you can check the version you would install with the command apt search ^klayout$. After, you can run klayout -v. If the version is not recent enough, you need to use a different way.

PDK installation for Klayout

We will link the PDK’s technology files to klayout directory:

mkdir -p  ~/.klayout/tech
ln -s ~/microelectronics/PDK/IHP/IHP-Open-PDK/ihp-sg13g2/libs.tech/klayout/tech ~/.klayout/tech/ihp-sg13g2
ln -s ~/.klayout/tech/ihp-sg13g2/sg13g2.lyp ~/.klayout/tech/
mkdir -p  ~/.klayout/python
ln -s ~/microelectronics/PDK/IHP/IHP-Open-PDK/ihp-sg13g2/libs.tech/klayout/python/* ~/.klayout/python/

Testing KLayout

We will now quickly test if KLyaout is working, and that the PDK is well installed. First open klayout:

klayout &

Once it is open you should see the technology selector in the upper toolbar:

KLayout technology selector

Click on the arrow and select ihp-sg13g2.

Now we will open a sample GDS, just to see how it looks. We will take one of the inductor used for the OpenEMS example. For this click on File > Open. Then opened the GDS located at: ~/microelectronics/PDK/IHP/IHP-Open-PDK/ihp-sg13g2/libs.tech/openems/testcase/SG13_Octagon_L2n0/gds/L_2n0.gds.

To enable the technology, click on T of the left part of technology selector. You should see the layers color and the names in the right “Layers” panel have changed.

To only show the used layers, right clik in the “Layers” pane and select “Hide Empty Layers”. Then to properly select unwanted layers, for this left clik on the “NoRCX” layer then maintain the Shift key while clicking on the “GraphBot” layer. Now right click on one of the 9 selected layers and click on “Hide”. Now you should see something like this :

Octogon inductor in Klayout