6_troubleshooting.md

SemiDevKit — Troubleshooting Guide

This document summarizes common issues encountered when running SemiDevKit modules
(TCAD Playgrounds, BSIM4 Analyzers, Paramus Physical Edition, and OpenLane-Lite)
and provides recommended solutions.


1. Python-Related Issues

1.1 ModuleNotFoundError

Cause: Required Python packages are not installed.

Solution:

pip install numpy scipy matplotlib pandas pyyaml

If your virtual environment is corrupted:

deactivate
rm -rf .venv
python3 -m venv .venv
source .venv/bin/activate

1.2 Virtual environment cannot be activated (Windows PowerShell)

Example error:

execution of scripts is disabled

Solution:

Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

2. ngspice Issues

2.1 ngspice: command not found

Solution (Linux):

sudo apt install ngspice

Solution (Windows native):


2.2 ngspice cannot open model file

Cause: Incorrect path to models/*.sp.

Solution:


3. BSIM Analyzer Issues

3.1 VGID/VDID .csv not generated

Possible causes:

Check ngspice logs:

cat results/.../*.log

Common mistakes:


3.2 gmmax extraction failure

Example error:

ValueError: zero-size array

Cause: .dat contains only one data line → sweep did not run.

Usually caused by incorrect .model parameters → ngspice failed to converge.


4. TCAD Playground Issues

4.1 Matplotlib backend error

Solution:

pip install matplotlib
sudo apt install python3-tk   # Linux

On WSL2:

export MPLBACKEND=Agg

4.2 Overflow / RuntimeWarning during simulation

Occurs when Poisson or MOSFET 1D model fails to converge.

Mitigation:


5. OpenLane-Lite Issues

5.1 Docker permission error

Example:

permission denied: cannot access /var/run/docker.sock

Fix (Linux):

sudo usermod -aG docker $USER

Log out → Log in.


5.2 run_in_docker.sh cannot execute

Fix:

chmod +x docker/run_in_docker.sh
chmod +x scripts/run_flow.sh

5.3 PDK not found

OpenLane-Lite requires the following minimal PDK structure:

openlane-lite/pdks/...

Place or symlink your PDK accordingly.


6. Windows / WSL2 Issues

6.1 Cannot access files from Windows Explorer

WSL2 recommended directory access:

WSL Path:

/home/<user>/SemiDevKit

Windows Explorer:

\\wsl$\\Ubuntu\\home\\<user>\\SemiDevKit

6.2 Docker cannot detect WSL backend

Fix:

  1. Open Docker Desktop
  2. Settings → General → Enable Use the WSL2 backend
  3. Check WSL version:
wsl -l -v

Ensure Ubuntu is running under WSL2.


7. General Tips


8. Contact

📌 Item Details
Name Shinichi Samizo
GitHub GitHub