๐Ÿ›  Troubleshooting Guide โ€” SemiDevKit

This document summarizes common issues encountered when running SemiDevKit modules, including:

For most problems, the root cause is related to environment setup, PATH configuration, or execution order.


1.1 ModuleNotFoundError

Cause
Required Python packages are not installed in the active environment.

Solution

pip install numpy scipy matplotlib pandas pyyaml

If the virtual environment is corrupted, recreate it:

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 / WSL2)

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 VGโ€“ID / VDโ€“ID .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
The .dat file contains only one data point โ†’ sweep did not execute.

This usually indicates ngspice convergence failure due to invalid .model parameters.


๐Ÿงช 4. TCAD Playground Issues

4.1 Matplotlib backend error

Solution

pip install matplotlib
sudo apt install python3-tk   # Linux

For WSL2 (headless environment):

export MPLBACKEND=Agg

4.2 Overflow / RuntimeWarning during simulation

Occurs when the Poisson or MOSFET 1D solver fails to converge.

Mitigation strategies


๐Ÿ— 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 and log back 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 expects the following structure:

openlane-lite/pdks/...

Ensure that the PDK directory exists or is correctly symlinked.


๐ŸชŸ 6. Windows / WSL2 Issues

6.1 Cannot access files from Windows Explorer

Recommended working directory (WSL2)

WSL path:

/home/<user>/SemiDevKit

Access from 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. Verify WSL version:
wsl -l -v

Ensure Ubuntu is running under WSL2.


๐Ÿ’ก 7. General Tips


๐Ÿ“ฌ 8. Contact

For unresolved issues or questions:

Item Details
๐Ÿ‘ค Name Shinichi Samizo
๐Ÿง‘โ€๐Ÿ’ป GitHub https://github.com/Samizo-AITL

๐Ÿงญ If a problem persists, isolate the module and verify dependencies step by step