IIC-OSIC-TOOLS (Integrated Infrastructure for Collaborative Open Source IC Tools) is an all-in-one Docker/Podman container for open-source-based integrated circuit designs for analog and digital circuit flows. The CPU architectures x86_64/amd64 and aarch64/arm64 are natively supported based on Ubuntu 24.04 LTS (since release 2025.01). This collection of tools is curated by the Department for Integrated Circuits (ICD), Johannes Kepler University (JKU).
- IIC-OSIC-TOOLS
- Table of Contents
- 1. How to Use These Open-Source (and Free) IC Design Tools
- 2. Installed PDKs
- 3. Installed Tools
- 4. Quick Launch for Designers
- 5. Using the Container with
- 6. Support with Issues/Problems/Bugs
- 7. Contributors
For great step-to-step instructions of installation and operation of our tool collection, please check out Kwantae Kim's Setting Up Open Source Tools with Docker!
It supports multiple modes of operation:
- Using a complete desktop environment (XFCE) in
Xvnc(a VNC server), either directly accessing it with a VNC client of your choice or the integrated noVNC server that runs in your browser. - Using a local X11 server and directly showing the application windows on your desktop.
- Using a Jupyter Notebook running inside the container, opened on the hosts browser.
- Using it as a development container in Visual Studio Code (or other IDEs)
If you just want to get going on a fresh machine, the repository ships with an
interactive installer that takes care of the prerequisites (Git, Docker /
Docker Desktop or Podman, WSL2 on Windows, XQuartz on macOS) and clones this
repository for you. Every action is gated behind a [y/N] confirmation prompt.
Linux and macOS (Bash, curl required):
curl -fsSL https://osic.tools/install.sh | bashWindows 10 / 11 (PowerShell, run as Administrator for WSL2):
powershell -c "irm https://osic.tools/install.ps1 | iex"If you would rather review the script first (recommended), download it and run it locally:
curl -fsSLO https://osic.tools/install.sh && less install.sh && bash install.shor on Windows, after cloning the repository, simply double-click install.bat (a thin shim around install.ps1).
The installer is idempotent — re-running it will skip components that are
already installed. It refuses to run as root on Linux/macOS and refuses to
clone into system directories. If you prefer a manual installation, follow
the three steps below instead.
Use the green Code button, and either download the zip file or do a
git clone --depth=1 https://github.com/iic-jku/iic-osic-tools.gitSee instructions on how to do this in the section Quick Launch for Designers further down in this README.
Enter the directory of this repository on your computer, and use one of the methods described in the section Quick Launch for Designers to start up and run a Docker container based on our image. The easiest way is probably to use the VNC mode.
If you do this the first time, or we have pushed an updated image to DockerHub, this can take a while since the image is pulled (loaded) automatically from DockerHub. Since this image is ca. 4 GB, this takes time, depending on your internet speed. Please note that this compressed image will be extracted on your drive, so please provide at least 20 GB of free drive space. If, after a while, the consumed space gets larger, this may be due to unused images piling up. In this case, delete old ones; please consult the internet for instructions on operating Docker.
If you know what you are doing and want full root access without a graphical interface, please use
./start_shell.shThis mode is deliberately shell-only: it forwards no X11/Wayland socket and no X authority cookie, so GUI tools started from that shell fall back to text mode. Use ./start_x.sh or ./start_vnc.sh for graphical work.
As of the 2022.12 tag, the following open-source process-development kits (PDKs) are pre-installed, and the table shows how to switch by setting environment variables (you can do this per project by putting this into .designinit as explained below):
SkyWater Technologies sky130A |
|---|
export PDK=sky130A
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=sky130_fd_sc_hd
export SPICE_USERINIT_DIR=$PDKPATH/libs.tech/ngspice
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutGlobal Foundries gf180mcuD |
|---|
export PDK=gf180mcuD
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=gf180mcu_fd_sc_mcu7t5v0
export SPICE_USERINIT_DIR=$PDKPATH/libs.tech/ngspice
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutNext to the two 5V libraries gf180mcu_fd_sc_mcu7t5v0 and gf180mcu_fd_sc_mcu9t5v0, gf180mcuD ships the 3.3V 7-track standard-cell library gf180mcu_as_sc_mcu7t3v3 of Avalon Semiconductors, with a LibreLane configuration. Select it with export STD_CELL_LIBRARY=gf180mcu_as_sc_mcu7t3v3 or sak-pdk gf180mcuD gf180mcu_as_sc_mcu7t3v3. Its Liberty files cover the corners tt_025C_3v30, ss_125C_3v00 and ff_n40C_3v60.
gf180mcuD also ships the rest of the 3.3V set of the wafer.space template: the split-voltage IO library gf180mcu_ocd_io, whose core supply pads (vdd, vss) are separate from the IO supply pads (dvdd, dvss), selected in LibreLane with --pad gf180mcu_ocd_io, and the 3.3V SRAM gf180mcu_ocd_ip_sram (64x8, 256x8, 512x8 and 1024x8, Liberty at the same three corners). The SRAM's Verilog models are still copies of gf180mcu_fd_ip_sram with timing not yet revised for 3.3V, as their headers say.
IHP Microelectronics ihp-sg13g2 |
|---|
export PDK=ihp-sg13g2
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=sg13g2_stdcell
export SPICE_USERINIT_DIR=$PDKPATH/libs.tech/ngspice
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutThe image also ships ETH Zurich's EZ130 8T
8-track standard-cell library (v1.1, 220 cells) next to sg13g2_stdcell in
$PDK_ROOT/ihp-sg13g2/libs.ref/ez130_8t (Liberty, LEF, GDS, Verilog, CDL, datasheets).
Use it together with its own technology LEF lef/ez130_sg13g2_tech.lef, not the
stock sg13g2_tech.lef, as the routing pitches differ. There is no LibreLane
configuration for it yet, so STD_CELL_LIBRARY=ez130_8t does not work in LibreLane.
IHP Microelectronics ihp-sg13cmos5l |
|---|
export PDK=ihp-sg13cmos5l
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=sg13cmos5l_stdcell
export SPICE_USERINIT_DIR=$PDKPATH/libs.tech/ngspice
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutICsprout ics55 (digital-only) |
|---|
export PDK=ics55
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=ICsprout55_SC9T_BASIC_SVT
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutics55 is the ICsprout 55 nm open PDK (55LLULP 1P6M) for digital designs only, in its v2 data set (1.2 V core, 2.5 V IO), which ICsprout requires from the next shuttle on: the 9-track standard cells ICsprout55_SC9T_BASIC_SVT (default), ICsprout55_SC9T_BASIC_HVT and ICsprout55_SC9T_BASIC_LVT, the GPIO library ICsprout_55LLULP1225_IO_0901, a LibreLane configuration, the community KLayout DRC ics55_klayout_drc and a digital-only KLayout LVS (sak-drc -k, sak-lvs -k). ICsprout publishes no SPICE models and no extraction rules, and there is no Magic setup. Neither deck is foundry sign-off. The PDK is a preview release, limited to education and research tapeouts. Commercial mass production is prohibited. $PDK_ROOT/ics55/README.md lists the LibreLane settings a design needs.
ASU and Arm Research asap7 (predictive, not manufacturable) |
|---|
export PDK=asap7
export PDKPATH=$PDK_ROOT/$PDK
export STD_CELL_LIBRARY=asap7sc7p5t
export SPICE_USERINIT_DIR=$PDKPATH/libs.tech/ngspice
export KLAYOUT_PATH=$PDKPATH/libs.tech/klayoutASAP7 is a 7 nm FinFET predictive PDK for teaching and research. It is not tied to a foundry and cannot be manufactured. The PDK and its libraries are BSD-3-Clause licensed, the BSIM-CMG model ECL-2.0, the KLayout DRC deck BSD-2-Clause (details in $PDK_ROOT/asap7/README.md). Its Calibre DRC, LVS and PEX decks are not redistributable and are not part of the image, the open decks below replace them. $PDK_ROOT/asap7 contains:
- The 7.5-track standard cells
asap7sc7p5t(asap7sc7p5t_28) in the flavors RVT, LVT, SLVT and SRAM: LEF, GDS (1x, no 4x scaling needed), NLDM Liberty (gzipped), CDL, Verilog. For LibreLane selectSTD_CELL_LIBRARY=asap7sc7p5t(RVT),asap7sc7p5t_lvtorasap7sc7p5t_slvt. The LibreLane setup follows the OpenROAD-flow-scripts platformasap7. The example inlibs.tech/librelane/exampleshows the settings every design needs (no Magic steps,CLOCK_PERIODin ps). The 6-track libraryasap7sc6t_26is not installed. - BSIM-CMG models for the corners
tt,ffandssof the devicesnmos_{lvt,rvt,slvt,sram}andpmos_{lvt,rvt,slvt,sram}(subcircuits with the parameterslandnfin) for ngspice, Xyce and VACASK, e.g..lib $PDK_ROOT/asap7/libs.tech/ngspice/models/asap7.lib tt. Xyce runs the original cards (BSIM-CMG 107) and matches the per-fin currents of the ASAP7 paper. ngspice and VACASK use BSIM-CMG 111.2.1 compiled with OpenVAF, which reads 2 % to 8 % lower Idsat and up to 45 % lower Ioff on LVT and SLVT devices. - Passive devices for analog design, added by IIC-OSIC-TOOLS and not part of ASAP7 (which defines FinFETs only): metal resistors
rm1torm9, a TiN thin-film resistorrtfrwith assumed parameters, woven MOM capacitorscmom_m<bot>m<top>on M1 to M7 and MOS capacitor symbols. They come with models for the three simulators, xschem symbols and KLayout LVS and DRC rules. The assumptions are listed in$PDK_ROOT/asap7/README.md. - The KLayout PCell library
ASAP7with a PCell for every device that has a model (nmos,pmos,ncap,pcap,rm,rtfr,cmom) and the body contactsptapandntap.libs.tech/klayout/python/asap7_layout.pywrites the same cells from the command line.mm=1on a FinFET or onrtfradds mismatch (assumed coefficients). - More for analog design, all IIC-OSIC-TOOLS additions with assumed parameters: gate lengths of 24, 28, 36, 60 and 80 nm next to the 20 nm of ASAP7, the 1.8 V IO FinFETs
nmos18_rvtandpmos18_rvt(80, 160 or 240 nm, targets from the Intel 22 nm SoC process), LVS with body nets (-rd body=true), a netlist with wire capacitances and resistances for simulation (-rd pex=<file>,-rd pex_res=true), a pad plate, the junction diodesndioandpdioand the vertical PNPpnp(for bandgap references and ESD diodes), and the routed examplelibs.tech/klayout/python/asap7_example.py. - xschem symbols in
libs.tech/xschem/asap7with inverter testbenches for ngspice and Xyce, and a VACASK example inlibs.tech/vacask/examples. - A KLayout technology, the DRC deck of ASAP7_for_KLayout (
libs.tech/klayout/drc/asap7.lydrc) and an LVS deck written for the image (libs.tech/klayout/lvs/asap7.lvs). The LVS deck compares FinFETs by gate length and fin count, and top-level pins by name. In a design the standard cells are compared at transistor level, except a list of cells whose layouts split or reorder transistor stacks against their CDL, which KLayout does not reduce. Those are compared as black boxes. There is no Magic technology, sosak-drc.sh -kandsak-lvs.sh -krun the KLayout decks for asap7, and a Magic run is refused, as forics55. libs.tech/pygmid/techsweep_asap7.py, which writes gm/ID lookup tables for pygmid with ngspice, in the.matlayout of the analog-circuit-design course (incl. thermal and flicker noise), so its sizing notebooks work with ASAP7.- The design rule manual in
libs.doc.
Probably the best way to switch between PDKs is to use the command sak-pdk. When called without arguments a list of installed PDKs is shown. To e.g. switch to IHP enter
sak-pdk ihp-sg13g2or to switch to sky130A enter
sak-pdk sky130AMore options for selecting digital standard cell libraries are available; please check the PDK directories.
Below is a list of the current tools/PDKs already installed and ready to use:
- abc sequential logic synthesis and formal verification
- amaranth a Python-based HDL tool chain
- asap7 ASU and Arm Research 7 nm FinFET predictive PDK (not manufacturable) with the 7.5-track standard cells
asap7sc7p5t - cace a Python-based circuit automatic characterization engine
- charlib a characterization library for standard cells
- chipify GUI and CLI wrapper for mismatch simulation, parameter sweeps, and yield analysis with
xschemandngspice - ciel version manager (and builder) for open-source PDKs
- cocotb simulation library for writing VHDL and Verilog test benches in Python
- covered Verilog code coverage
- cvc circuit validity checker (ERC)
- door Design Open Object Repository (formerly LibMan), design library manager to manage cells and views, also started as
libman - edalize Python abstraction library for EDA tools
- fault design-for-testing (DFT) solution
- fusesoc package manager and build tools for SoC
- gaw3-xschem waveform plot tool for
xschem - gds2palace/
setupEMsetup tools forpalaceEM simulation - gds3d a 3D viewer for GDS files
- gdscheck Rust DRC engine for GDSII layouts, with rules in YAML decks and a KLayout-compatible report database as output (IHP
SG13G2andSG13CMOS5L) - gdsfactory Python library for GDS generation
- gdsfill Rust tool for inserting dummy metal fill into semiconductor layouts
- gdspy Python module for the creation and manipulation of GDS files
- gf180mcu GlobalFoundries 180 nm CMOS PDK
- ghdl-yosys-plugin VHDL-plugin for
yosys - ghdl VHDL simulator
- gmsh three-dimensional finite element mesh generator
- gtkwave waveform plot tool for digital simulation
- hdl21 analog hardware description library
- icestorm bitstream tools for Lattice iCE40 FPGAs, providing
icepackandiceprog - ihp-sg13g2 IHP Microelectronics 130 nm SiGe:C BiCMOS PDK (partial PDK, not fully supported yet;
xschemandngspicesimulation works incl. PSP MOSFET model) - ihp-sg13cmos5l IHP Microelectronics 130 nm CMOS PDK (M1-M4-TM1 metal stack), shipped in the same repository as
ihp-sg13g2 - ics55 ICsprout 55 nm open PDK (55LLULP 1P6M, v2 with 9-track cells and 2.5 V IO), digital-only, with the community KLayout DRC ics55_klayout_drc and a LibreLane configuration
- irsim switch-level digital simulator
- iverilog Verilog simulator
- kactus2 Kactus2 is a graphical editor for IP-XACT files, which are used to describe hardware components and their interfaces
- kepler-formal logic equivalence checking (LEC) tool for
openroad - klayout layout viewer and editor for GDS and OASIS, with packages: klive, xsection, klayout_em_export to set up
palaceandopenemsEM simulations from a layout, and klayout-productivity-suite with various iic-jku KLayout plugins - klayout-pex parasitic resistance and capacitance extraction, with
gmsh,elmerandpalaceexporter plugins - klayout-pex-plugin-kqcircuits development scaffold for a KQCircuits exporter, without export support yet
- KQCircuits standalone quantum-circuit layout generation and simulation input export, including simulation and mask examples
- lctime Characterization kit for CMOS cells
- librelane successor of OpenLane(2), RTL2GDS flow scripts
- magic layout editor with DRC and PEX
- najaeda data structures and APIs for the development of post logic synthesis EDA algorithms
- netgen netlist comparison (LVS)
- nextpnr FPGA place-and-route for Lattice iCE40 (
nextpnr-ice40) and Lattice ECP5 (nextpnr-ecp5) - ngspice SPICE analog and mixed-signal simulator, with OSDI support
- ngspyce Python bindings for
ngspice - nvc VHDL simulator and compiler
- open_pdks PDK setup scripts
- opencdc static clock domain crossing (CDC) checker for Verilog/SystemVerilog RTL
- openems electromagnetic field solver using the EC-FDTD method
- openram OpenRAM Python library
- openroad RTL2GDS engine used by
librelane - opensta gate level static timing verifier
- openvaf-reloaded Verilog-A compiler for device models
- osic-multitool collection of useful scripts and documentation
- padring padring generation tool
- palace 3D finite element solver for computational electromagnetics
- prep-ic plans the pad ring, pinout and early floorplan of an IC and exports the LibreLane pad ring files
- prjtrellis bitstream tools and database for Lattice ECP5 FPGAs, providing
ecppack - pulp-tools PULP platform tools consisting of bender, verible, and sv2v
- pygmid Python version of the gm/Id starter kit from Boris Murmann
- pyopus simulation runner and optimization tool for analog circuits
- pyrtl collection of classes for pythonic RTL design
- pyspice interface
ngspiceandxycefrom Python - pyuvm Universal Verification Methodology implemented in Python (instead of SystemVerilog) using
cocotb - pyverilog Python toolkit for Verilog
- qflow collection of useful conversion tools
- qucs-s simulation environment with RF emphasis
- rggen Code generation tool for control and status registers
- risc-v toolchain GNU compiler toolchain for RISC-V cores
- riscv-pk RISC-V proxy kernel and bootloader
- schemdraw Python package for drawing electrical schematics
- siliconcompiler modular build system for hardware
- sky130 SkyWater Technologies 130 nm CMOS PDK
- slang yosys plugin Slang-based plugin for
yosysfor SystemVerilog support - slang SystemVerilog parsing and translation (e.g. to Verilog)
- snp2le converts Touchstone S-parameter files into lumped-element netlists for
ngspice,vacaskandxyce - spicebind lightweight bridge enabling co-simulation of analog
ngspicecircuits alongside HDL simulators - spicelib library to interact with SPICE-like simulators
- spike Spike RISC-V ISA simulator
- spyci analyze/plot
ngspice/xyceoutput data with Python - surelog SystemVerilog parser, elaborator, and UHDM compiler
- surfer waveform viewer with snappy usable interface and extensibility
- svck customizable SystemVerilog linter (uses
verible) - vacask a modern Verilog-A based analog circuit simulator
- verilator fast Verilog simulator, incl. the UVM 2020-3.2 library Verilator is tested against (in
$UVM_HOME, see$UVM_HOME/README.md) - verible SystemVerilog parser, style-linter, formatter, and language server
- veryl a modern hardware description language, based on SystemVerilog
- vlog2verilog Verilog file conversion
- vlsirtools interchange formats for chip design.
- xcircuit schematic editor
- xschem schematic editor
- xyce fast parallel SPICE simulator
- yosys Verilog synthesis tool (with GHDL plugin for VHDL synthesis and Slang plugin for SystemVerilog synthesis), incl.
eqy(equivalence checker),sby(formal verification), andmcy(mutation coverage) - RF toolkit with FastHenry2, FasterCap, openEMS, and scikit-rf.
The KPEX exporter plugins write inputs for external tools. The KQCircuits exporter plugin remains a development scaffold. Installing the KQCircuits toolkit does not implement that exporter. The Elmer solver executables are not installed.
kpex calibrate prepares, solves and collects calibration cases. New solves require FasterCap 6.4.0 or newer, while saved 6.3.0 reports can still be collected.
KQCircuits uses the shared Python environment and a pinned source installation in /foss/tools/kqcircuits. From a writable project directory, list the bundled examples or export a small model without starting a GUI or solver:
kqc sim ls
kqc mask ls
kqc sim waveguides_sim_compare.py --quiet --export-only --n-guides-range 1 1Outputs default to ./kqc-output, including when using KQCircuits from Python. Set KQC_TMP_PATH before starting Python or kqc to choose another directory, for example KQC_TMP_PATH="$PWD/simulation output" kqc sim waveguides_sim_compare.py --quiet --export-only --n-guides-range 1 1. The installed source tree stays read-only to ordinary users. KQCircuits GUI integration and solver execution are outside the supported scope of this installation.
The tool versions used for librelane (and other tools) are documented in tool_metadata.yml. In addition to the EDA tools above, further valuable tools (like git) and editors (like gvim) are installed. If something useful is missing, please let us know!
The SAK commands in $TOOLS/sak that summarize results can print one JSON object instead of text, for use in scripts, Makefiles and other automation.
sak-report.py: summarizes DRC reports (KLayoutlyrdb, Magic,gdscheck) or LVS reports (KLayoutlvsdb, Netgen), one kind per call. Every report object names itsengine, and DRC results listwaiveditems separately from findings.sak-gds-info.py: layers, bounding box, cell tree and labels of a GDS2 or OASIS layout (--layers,--cells,--labels,-c,--depth,--bbox).sak-run-summary.py: timing (worst slack and violation counts, also per corner), checks, area and step run times of a LibreLane run directory.sak-job.py: starts a long command detached from the shell and asks for it later (start,status,wait,tail,cancel,list). Itsstatusisokfor a finished job,running,failed(also for a cancelled job) orerror(lost job, unknown ID), andstatenames the exact state.sak-drc.shandsak-lvs.sh:--jsonprints the summary ofsak-report.pyfor the reports of the run.sak-render.py:--jsonlists the written images, and--bbox=<x1,y1,x2,y2>renders a region given in um.
Without --json the commands print a short text. With --json stdout holds exactly one JSON object and all other messages go to stderr, also on errors. The object has the fields schema, tool, input (path and modification time of every input) and status, and paths are given as on the command line. An error object has status error, an error text and the exit_code.
The exit codes of sak-report.py, sak-gds-info.py, sak-run-summary.py and sak-job.py are 0 for clean, 1 for findings, 2 for input that is missing, unreadable, truncated or stale, and 3 for wrong usage. sak-job.py adds 4 for a job that is still running, so sak-job.py wait <id> && next-step never goes on after a timeout.
sak-drc.sh, sak-lvs.sh and sak-render.py keep their own exit codes with --json, and the status field of the JSON object carries the verdict. If the report summary contradicts the verdict of sak-drc.sh or sak-lvs.sh, they print an error object.
Commands that list items cap the lists at 20 entries, --max <n> changes the cap (0 for no cap), and the object states cap and the full count. sak-report.py --newer-than <file> exits with 2 for a report older than <file> instead of reporting a stale result.
sak-drc.sh --json -m inverter # DRC with Magic, JSON result on stdout
sak-report.py --json --max 0 inverter.klayout.drc/*.lyrdb
sak-job.py start -n drc -- sak-drc.sh -k inverter
sak-job.py wait <id> --timeout 600Download and install Docker for your operating system:
Note for Linux: Do not run docker commands or the start scripts as root (sudo)! Follow the instructions in Post-installation steps for Linux
The following start scripts are intended as helper scripts for local or small-scale (single instance) deployment. Consider starting the containers with a custom start script if you need to run many instances.
All user data is persistently placed in the directory pointed to by the environment variable DESIGNS (the default is $HOME/eda/designs for Linux/macOS and %USERPROFILE%\eda\designs for Windows, respectively).
If a file .designinit is put in this directory, it is sourced last when starting the Docker environment. In this way, users can adapt settings to their needs.
This mode is recommended for remote operation on a separate server or if you prefer the convenience of a full desktop environment. To start it up, you can use (in a Bash/Unix shell):
./start_vnc.shOn Windows, you can use the equivalent batch script (if the defaults are acceptable, it can also be started by double-clicking in Explorer):
.\start_vnc.bat
You can now access the Desktop Environment through your browser at http://localhost:<WEBSERVER_PORT>/?password=abc123, where abc123 is the default password. WEBSERVER_PORT defaults to 80 (so plain http://localhost works), except with rootless Podman — including on macOS and Windows — where it defaults to 8080; the start scripts print the exact URL. Omit the ?password= part to be prompted for it instead.
The browser session uses the full noVNC client, whose control bar (the small tab on the left edge) provides clipboard transfer to and from the container, fullscreen, ctrl-alt-del, and connection settings. By default the container desktop resizes to match the browser window; change "Scaling Mode" in the settings panel if you prefer a fixed resolution, and your choice is remembered.
Both scripts will use default settings, which you can tweak by settings shell variables (VARIABLE=default is shown):
DRY_RUN(unset by default); if set to any value (also0,false, etc.), the start scripts print all executed commands instead of running. Useful for debugging/testing or just creating "template commands" for unique setups.CONTAINER_ENGINE(auto-detected) selects the container engine CLI.install.shrecords the engine you picked in$HOME/.config/iic-osic-tools/env, which the start scripts source; without that file,dockeris used if installed, otherwisepodman. A value set in the environment always wins (e.g.CONTAINER_ENGINE=podman ./start_x.sh).IIC_OSIC_TOOLS_SELINUX_LABEL(unset by default) controls the SELinux workaround on Fedora/RHEL hosts, see 5.1.1 SELinux (Fedora, RHEL and Clones).IIC_OSIC_TOOLS_NO_STARTUP_CHECK(unset by default); if set to any value, the start scripts skip the few seconds they otherwise spend verifying that the container is still running after the start.DESIGNS=$HOME/eda/designs(DESIGNS=%USERPROFILE%\eda\designsfor.bat) sets the directory that holds your design files. This directory is mounted into the container on/foss/designs.WEBSERVER_PORT=80sets the port on which the Docker daemon will map the webserver port of the container to be reachable from localhost and the outside world.0disables the mapping. With rootless Podman (which cannot bind ports below 1024) the default is8080.VNC_PORT=5901sets the port on which the Docker daemon will map the VNC server port of the container to be reachable from localhost and the outside world. This is only required to access the UI with a different VNC client.0disabled the mapping.DOCKER_REGISTRY="docker.io"registry prefix used to fully qualify the image name (required for Podman, which does not resolve short names non-interactively). The prefix is skipped automatically whenDOCKER_USERalready names a registry (i.e. it contains a.or a:, or islocalhost). Set it tonone(the.shscripts also accept"") to force unqualified names.DOCKER_USER="hpretl"username for the Docker Hub repository from which the images are pulled. Usually, no change is required. To pull from a private registry, either set it to the registry (e.g.DOCKER_USER="myregistry.example.com:5000", optionally followed by a namespace such asghcr.io/hpretl), or put the registry inDOCKER_REGISTRYand leaveDOCKER_USERempty, which means the image sits at the root of the registry. Emptying it works asDOCKER_USER=""for the.shscripts; for the.batscriptscmdtreats an empty variable as unset, so the default has to be emptied in the script itself.DOCKER_IMAGE="iic-osic-tools"Docker Hub image name to pull. Usually, no change is required.DOCKER_TAG="latest"Docker Hub image tag. By default, it pulls the latest version; this might be handy to change if you want to match a specific version set. For the nightly build, see Using the Nightly Build.CONTAINER_USER=$(id -u)(the current user's ID,CONTAINER_USER=1000for.bat) The user ID (and also group ID) is especially important on Linux and macOS because those are the IDs used to write files in theDESIGNSdirectory. For debugging/testing, the user and group ID can be set to0to gain root access inside the container.CONTAINER_GROUP=$(id -g)(the current user's group ID,CONTAINER_GROUP=1000for.bat)CONTAINER_NAME="iic-osic-tools_xvnc_uid_"$(id -u)(attaches the executing user's ID to the name on Unix, or onlyCONTAINER_NAME="iic-osic-tools_xvncfor.bat) is the name that is assigned to the container for easy identification. It is used to identify if a container exists and is running.XKB_KEYBOARD_LAYOUT=ussets the keyboard layout for the X server. This is necessary for KLayout shortcuts to behave propertly. E.g. you are a student at JKU using a German keyboard, you should set this toat.XKB_KEYBOARD_VARIANT=sets the keyboard variant for the X server. E.g. this could be set tonodeadkeys.
To overwrite the default settings, see Overwriting Shell Variables
This mode is recommended if the container is run on the local machine. It is significantly faster than VNC (as it renders the graphics locally), is more lightweight (no complete desktop environment is running), and integrates with the desktop (copy-paste, etc.). To start the container, run the following:
./start_x.shor
.\start_x.bat
Attention macOS users: The X-server connection is automatically killed if there is a too-long idle period in the terminal (when this happens, it looks like a crash of the system). A workaround is to start a second terminal from the initial terminal that pops up when executing the start scripts ./start_x.sh or .\start_x.bat and then start htop in the initial terminal. In this way, there is an ongoing display activity in the initial terminal, and as a positive side effect, the usage of the machine can be monitored. We are looking for a better long-term solution.
Attention macOS users: Please disable the Enable VirtioFS accelerated directory sharing setting available as "Beta Setting," as this will cause issues accessing the mounted drives! However, enabling the VirtioFS general setting works in Docker >v4.15.0!
Attention macOS users: On macOS the X11 mode talks to XQuartz over TCP (no local Unix socket or MIT-SHM across the Docker VM boundary), so it is bound by network round-trip latency. For redraw-heavy GUIs (e.g. KLayout, GTKWave), the VNC mode (./start_vnc.sh) renders inside the container and is usually noticeably faster and smoother.
The following environment variables are used for configuration:
DRY_RUN(unset by default), if set to any value (also0,false, etc.), makes the start scripts print all executed commands instead of running. Useful for debugging/testing or just creating "template commands" for unique setups.CONTAINER_ENGINE(auto-detected) selects the container engine CLI.install.shrecords the engine you picked in$HOME/.config/iic-osic-tools/env, which the start scripts source; without that file,dockeris used if installed, otherwisepodman. A value set in the environment always wins (e.g.CONTAINER_ENGINE=podman ./start_x.sh).IIC_OSIC_TOOLS_SELINUX_LABEL(unset by default) controls the SELinux workaround on Fedora/RHEL hosts, see 5.1.1 SELinux (Fedora, RHEL and Clones).IIC_OSIC_TOOLS_NO_STARTUP_CHECK(unset by default); if set to any value, the start scripts skip the few seconds they otherwise spend verifying that the container is still running after the start.DESIGNS=$HOME/eda/designs(DESIGNS=%USERPROFILE%\eda\designsfor.bat) sets the directory that holds your design files. This directory is mounted into the container on/foss/designs.DOCKER_REGISTRY="docker.io"registry prefix used to fully qualify the image name (required for Podman, which does not resolve short names non-interactively). The prefix is skipped automatically whenDOCKER_USERalready names a registry (i.e. it contains a.or a:, or islocalhost). Set it tonone(the.shscripts also accept"") to force unqualified names.DOCKER_USER="hpretl"username for the Docker Hub repository from which the images are pulled. Usually, no change is required. To pull from a private registry, either set it to the registry (e.g.DOCKER_USER="myregistry.example.com:5000", optionally followed by a namespace such asghcr.io/hpretl), or put the registry inDOCKER_REGISTRYand leaveDOCKER_USERempty, which means the image sits at the root of the registry. Emptying it works asDOCKER_USER=""for the.shscripts; for the.batscriptscmdtreats an empty variable as unset, so the default has to be emptied in the script itself.DOCKER_IMAGE="iic-osic-tools"Docker Hub image name to pull. Usually, no change is required.DOCKER_TAG="latest"Docker Hub image tag. By default, it pulls the latest version; this might be handy to change if you want to match a specific Version set. For the nightly build, see Using the Nightly Build.CONTAINER_USER=$(id -u)(the current user's ID,CONTAINER_USER=1000for.bat) The user ID (and also group ID) is especially important on Linux and macOS because those are the IDs used to write files in theDESIGNSdirectory.CONTAINER_GROUP=$(id -g)(the current user's group ID,CONTAINER_GROUP=1000for.bat)CONTAINER_NAME="iic-osic-tools_xserver_uid_"$(id -u)(attaches the executing user's ID to the name on Unix, or onlyCONTAINER_NAME="iic-osic-tools_xserverfor.bat) is the name that is assigned to the container for easy identification. It is used to identify if a container exists and is running.
For Windows, WSLg (the graphical subsystem for WSL) is used, which is provided by a socket file inside the container. The display number is :0.
For Mac, the X11 server is accessed through TCP (defaults to host.docker.internal:0, host.docker.internal resolves to the host's IP address inside the docker containers, :0 corresponds to display 0 which corresponds to TCP port 6000.).
Normally, it should not be necessary to modify these settings, but to control the server's address, you can set the following variable:
DISPis the environment variable that is copied into theDISPLAYvariable of the container.
For TCP based connections, access control might be modified. If the executable xauth is in PATH, the startup script automatically disables access control for localhost, so the X11 server is open for connections from the container. A warning will be shown if not, and you must disable access control.
For Linux, the local X11 server is accessed through a Unix socket. There are multiple variables to control:
XSOCK=/tmp/.X11-unixis typically the default location for the Unix sockets. The script will probe if it exists and, if yes, mount it into the container.DISPhas the same function as macOS and Windows. It is copied to the container'sDISPLAYvariable. If it is not set, the value ofDISPLAYfrom the host is copied.XAUTHdefines the file that holds the cookies for authentication through the socket. If it is unset, the host'sXAUTHORITYcontents are used. If those are unset too, it will use$HOME/.Xauthority.
When the display is SSH X11 forwarding (ssh -X, so DISPLAY=localhost:N), sshd offers it only on TCP port 6000+N of the host loopback and creates no socket in /tmp/.X11-unix. The script then starts the container with --net=host so it can reach that port. A network option already present in DOCKER_EXTRA_PARAMS is kept.
Docker installed as a snap (offered by the Ubuntu Server installer) runs its daemon with a private /tmp, so it cannot see the X11 sockets or the cookie file under the host's /tmp. The script detects this and writes the cookie file to $HOME/eda instead, which makes SSH X11 forwarding work. A local display still needs the socket in /tmp, so with the snap only SSH forwarding works. Install Docker CE from Docker's apt repository instead (e.g. with install.sh).
The defaults for these variables are tested on native X11 servers, X2Go sessions, and Wayland. The script copies and modifies the cookie from the.Xauthority file into a separate, temporary file. This file is then mounted into the container.
Everything should be ready on Linux with a desktop environment / UI (this setup has been tested on X11 and XWayland). For Windows, WSL should be updated to the latest version to provide WSLg (No additional X-Server needs to be installed, and it should be readily available on Windows 10 (from Build 19044) and Windows 11). For macOS, the installation of an X11 server is typically required. Due to the common protocol, every X11-server should work, although the following are tested:
- For macOS: XQuartz Important: Please enable "Allow connections from network clients" in the XQuartz preferences [CMD+","], tab "Security"
It is strongly recommended enabling OpenGL:
- The
start_x.shscript will take care of that on macOS and set it according to configuration values. Only a manual restart of XQuartz is required after the script is run once (observe the output!).
There are multiple ways to configure the start scripts using Bash. Two of them are shown here. First, the variables can be set directly for each run of the script; they are not saved in the active session:
DESIGNS=/my/design/directory DOCKER_USER=another_user ./start_x.shThe second variant is to set the variables in the current shell session (not persistent between shell restarts or shared between sessions):
export DESIGNS=/my/design/directory
export DOCKER_USER=another_user
./start_x.shAs those variables are stored in your current shell session, you only have to set them once. After setting, you can directly run the scripts.
In CMD you can't set the variables directly when running the script. So for the .bat scripts, it is like the second variant for Bash scripts:
SET DESIGNS=\my\design\directory
SET DOCKER_USER=another_user
.\start_x.batBesides the monthly releases on Docker Hub, a CI workflow rebuilds the image from the next_release branch with the newest upstream tool versions and publishes it as ghcr.io/iic-jku/iic-osic-tools:nightly (for amd64 and arm64). It runs every night and skips nights in which nothing changed. Use it to try a fix or a tool version before the next release, not for tapeout work. The tag can change every night. The workflow runs the regression tests on both architectures against the published tag, so the tag already points to the new build while they run and stays there if they fail. The result of each night is listed under Actions, Nightly build.
The start scripts need no change. Set DOCKER_USER to the registry and namespace, DOCKER_TAG to nightly, and give the container a name of its own (shown for start_x, the other start scripts work the same way):
DOCKER_USER=ghcr.io/iic-jku DOCKER_TAG=nightly CONTAINER_NAME=iic-osic-tools_xserver_nightly ./start_x.shSET DOCKER_USER=ghcr.io/iic-jku
SET DOCKER_TAG=nightly
SET CONTAINER_NAME=iic-osic-tools_xserver_nightly
.\start_x.bat- Give each start script a name of its own, as the defaults do (
_xserver,_xvnc,_shell,_jupyter). If a container of that name exists, the start scripts do not create a new one: the.shscripts offer to restart it, the.batscripts print how to, and it still runs the image it was created from (usuallylatest). - Not every start script pulls the image when it creates a container. To move to a newer nightly, run
docker pull ghcr.io/iic-jku/iic-osic-tools:nightly(orpodman pull), stop and remove the container (docker stop iic-osic-tools_xserver_nightly, thendocker rm iic-osic-tools_xserver_nightly), and start it again. - To stay on one nightly build, pin its digest, e.g.
DOCKER_TAG=nightly@sha256:<digest>.docker images --digestsshows the digest of the pulled image.
This is a new usage mode, that might fit your needs. Devcontainers are a great way to provide a working build environment along your own project. It is supported by the devcontainer extension in Visual Studio Code.
Create the configuration file .devcontainer/devcontainer.json:
{
"name": "IIC-OSIC-TOOLS",
"image": "hpretl/iic-osic-tools-devcontainer:latest",
"pullPolicy": "always",
"customizations": {
"vscode": {
"extensions": [
"mshr-h.veriloghdl",
"surfer-project.surfer"
]
}
}
}You can now commit the file to the repository, and all developers will be asked if they want to reopen their development in this container, all they need is Docker and VS Code.
The IIC-OSIC-TOOLS are meant to be beginner friendly. If you have limited knowledge of the tools involved (Docker, Podman, etc..), we suggest you follow 4. Quick Launch for Designers. For container experts, there is also support for other container engines and additional tools, see the subsections below.
Podman is a demonless, OCI compatible container engine, that supports rootless containers to contain privileges inside the container. Podman is supported as a co-equal runtime by all start scripts: they auto-detect the installed engine (preferring docker if both are present; override with CONTAINER_ENGINE=podman), so no podman-docker compatibility alias and no script modification is needed. The interactive installers (install.sh/install.ps1) can install Podman instead of Docker.
The start scripts automatically handle the classic Podman pitfalls:
- In rootless mode on Linux, they add
--userns=keep-id(unless a--usernsoption is already given viaDOCKER_EXTRA_PARAMS), so the host user launching the container is mapped to the same UID/GID inside the container, preventing access issues between the container and mounted directories from the host. On macOS and Windows the bind mount passes through the Podman machine VM, which does the ID mapping itself, sokeep-idis not added there. - With
keep-id, rootless Podman cannot remap file ownership on the fly, so the first container of each image version gets an ID-mapped copy of every image layer. This copy runs without progress output, takes several minutes (5 min 24 s on an Ubuntu 24.04 host with an NVMe disk for imagelatestin 2026-10) and needs about as much disk space as the image again. Later containers of the same image reuse it. The start scripts print a notice before this step, do not interrupt it. Starting withCONTAINER_USER=0 CONTAINER_GROUP=0skipskeep-idand the copy: in rootless Podman, root inside the container is the host user, so files inDESIGNSstill belong to you, but all tools then run as root inside the container. - Since rootless mode cannot bind host ports below 1024,
start_vnc.shdefaults the webserver port to8080instead of80(an explicitly setWEBSERVER_PORTbelow 1024 produces a warning). This also applies on macOS and Windows, where the Podman machine VM runs rootless by default and itsrootlessporthelper enforces the same limit. start_vnc.shpasses--sysctl net.ipv4.ip_unprivileged_port_start=0to Podman (rootful and rootless). Docker sets this namespaced sysctl in every container by default, Podman does not — without it, the noVNC webserver (which runs as a non-root user) cannot bind port 80 inside the container and the VNC mode fails.- On SELinux hosts they add
--security-opt label=disable, see 5.1.1 SELinux (Fedora, RHEL and Clones).
So in most cases, simply running ./start_<mode>.sh works out of the box with Podman.
By default, the container uses nss_wrapper to fake a passwd/group entry (designer) for the arbitrary UID/GID the container is started with. With Podman and --userns=keep-id a real passwd entry for the current user already exists inside the container, so the wrapper can optionally be disabled by setting the container environment variable IIC_OSIC_TOOLS_DISABLE_NSSWRAPPER (any non-empty value):
DOCKER_EXTRA_PARAMS="-e IIC_OSIC_TOOLS_DISABLE_NSSWRAPPER=1" ./start_<mode>.sh
As a safety net, the request is ignored (with a warning) if no passwd entry exists for the container UID, because the TigerVNC server refuses to start without one ("vncserver: I do not know who you are").
Note on Docker Rootless Mode: Docker in rootless mode has known limitations with X11/Wayland socket forwarding due to UID/GID mismatches between the host and container. There is no straightforward fix for Docker rootless mode, and we therefore recommend using Podman with
--userns=keep-idas the preferred solution for rootless container operation.
On hosts with SELinux the container process runs as container_t, while bind-mounted host paths keep their host label. SELinux then denies the container access to them: the X11 socket and the Wayland socket are labelled user_tmp_t, and the designs directory is labelled user_home_t. This affects every launch mode:
| Mode | Symptom without the workaround |
|---|---|
start_x.sh |
No terminal window appears, and the container exits a few seconds after the start. |
start_vnc.sh |
The desktop comes up, but /foss/designs is inaccessible. |
start_jupyter.sh |
The notebook server comes up, but /foss/designs is inaccessible. |
start_shell.sh |
The shell works, but /foss/designs is inaccessible. (That GUI tools stay in text mode here is by design, this mode forwards no X11/Wayland socket.) |
The matching denial in sudo ausearch -m avc -ts recent looks like this (see issue #352):
avc: denied { write } for pid=23821 comm="xfce4-terminal" name="X0" dev="tmpfs" ino=39
scontext=system_u:system_r:container_t:s0:c546,c994
tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=sock_file permissive=0
The start scripts therefore add --security-opt label=disable whenever the host kernel has SELinux enabled, in enforcing as well as in permissive mode. This applies to Podman and to Docker (Docker only labels containers when the daemon runs with "selinux-enabled": true, but where labelling is off the option is simply a no-op), and it is skipped if DOCKER_EXTRA_PARAMS already carries a --security-opt label=… option.
This switches off SELinux type enforcement for this one container. Seccomp, capabilities, cgroups, the user namespace and rootless mode are unaffected, and nothing on the host is relabelled. The alternative, relabelling the mounted paths with :z, is not an option here: /tmp/.X11-unix and /run/user/$UID belong to the host session, relabelling them would let any container talk to your X server, and both live on tmpfs, so it would have to be repeated after every login.
The behavior can be changed with IIC_OSIC_TOOLS_SELINUX_LABEL:
| Value | Effect |
|---|---|
| unset (default) | Auto-detect, and add --security-opt label=disable on SELinux hosts. |
| set to empty | Never add a label option. |
| set to a value | Always add --security-opt label=<value>, e.g. type:container_runtime_t. |
To keep type enforcement on instead, switch the workaround off and relabel the designs directory by hand (this makes /foss/designs work, but not the X11 mode):
export IIC_OSIC_TOOLS_SELINUX_LABEL=
chcon -Rt container_file_t "$HOME/eda/designs" # undo with: restorecon -R -v "$HOME/eda/designs"Container options are fixed when a container is created, so a container created before this fix cannot pick the option up on restart. Press r at the prompt to remove it (or run podman rm iic-osic-tools_xserver_uid_$(id -u)), then start the script again to re-create it. With an older checkout, the option can be passed by hand:
DOCKER_EXTRA_PARAMS="--security-opt label=disable" ./start_x.shDistrobox is a fancy wrapper around Podman or Docker to create and start containers highly integrated with the hosts. Like the start_x scripts, Distrobox manages the forwarding of X11/Wayland to the container, but allows for even more tight integration, by also forwarding the users home directory, and seamlessly integration other services like the systemd journal, D-Bus etc...
Distrobox specifically mentions that its main focus lies on integration, and not on sandboxing and security.
The IIC-OSIC-TOOLS support the usage of Distrobox, even though the usage is slightly different, compared to the start scripts. Noteably, the /headless is not the in-container-user's home directory, and /foss/designs will not be mounted. But /home/<username> will have full access to the users home directory.
A IIC-OSIC-TOOLS Distrobox can be started and accessed with:
distrobox create -n iic-osic-tools -i hpretl/iic-osic-tools:latest
distrobox enter iic-osic-tools
We are open to your questions about this container and are very thankful for your input! If you run into a problem, and you are sure it is a bug, please let us know by following this routine:
- Take a look at the KNOWN_ISSUES and the RELEASE_NOTES. Both these files can include problems that we are already aware of and maybe include a workaround.
- Check the existing Issues on GitHub and see if the problem has been reported already. If yes, please participate in the discussion and help by further collecting information.
- Is the problem in connection with the container, or rather a problem with a specific tool? If it is the second, please also check out the sources of the tool and further contact the maintainer!
- To help us fix the problem, please open an issue on GitHub and report the error. Please give us as much information as possible without being verbose, so filter accordingly. It is also fine to open an issue with very little information, we will help you to narrow down the source of the error.
- Finally, if you can exactly know how to fix the reported error, we are also happy if you open a pull request with a fix!
Thank you for your cooperation!
The following people contributed to IIC-OSIC-TOOLS (listed alphabetically, based on the git history):
- Adan Kvitschal
- Aquiles Viza
- Clyde Laforge
- Daniel Gerlicher
- Daniel Schultz
- Dario Quintero
- fkwilken
- Gaofeng Fan
- Georg Zachl
- Harald Pretl
- JakobRat
- Julian Schwarz
- Kareem Farid
- Manuel Moser
- Martin Jan Köhler
- Mateo Buteler
- Matt Venn
- Matt Young
- Michael Köfinger
- mixkrip
- Mohamed Kassem
- Patrick Fath
- Philippe Sauter
- Rob Taylor
- Santiago Hofwimmer
- Simon Dorrer
- Stefan Wallentowitz
- Taichi Ishitani