...
Phidl is available with Python's pip
package manager. In the command line use (you will first have to have installed the python devel packages from your linux distribution):
Code Block | ||
---|---|---|
| ||
pip3 install phidl |
In addition to PHIDL, you may need maths packages to calculate your device's geometry. The most common such package is numpy
.
Note the above command requires root privileges as it will attempt to install phidl and requirements system-wide. Instead, we recommend you install into your local home directory to avoid creating issues with the system python3 packages. use the following command:
Code Block | ||
---|---|---|
| ||
pip3 install --user phidl |
You will then need to add the install directory to your PYTHONPATH. Most likely, you will need to add the directory: ~/.local/lib/python3.6/site-packages
Scripting a GDSII file
Although this page should be sufficient to get you started, it's well worth it to have a look at the full PHIDL documentation. The tutorials are a great place to learn its various functions. The geometry reference lists all inbuilt geometry types, including important aids such as text and and lithography test structures. Make sure you go through its contents: the inbuilt types can save you a large amount of time.
...