๐งฐ Installation Guide โ SemiDevKit
This document explains the environment setup, required software, and initial installation steps
for using SemiDevKit.
Target tools:
- ๐งช TCAD Playground
- ๐ BSIM4 Analyzer
- ๐ OpenLane-Lite (RTL โ GDSII)
๐ฅ 1. System Requirements
1.1 Supported OS
| OS | Status | Notes |
|---|---|---|
| ๐ง Linux | โ Recommended | Ubuntu 20.04 / 22.04 |
| ๐ช Windows | โ Recommended | WSL2 + Ubuntu |
| ๐ macOS | โ Supported | Intel / Apple Silicon |
๐ก Using WSL2 is strongly recommended on Windows environments.
๐ฆ 2. Required Software
๐ 2.1 Python
SemiDevKit supports the following Python versions:
- Python 3.9 โ 3.12
โ Check Python version
python3 --version
โ Install basic packages
pip install numpy scipy matplotlib pandas pyyaml
๐ Some modules run with only numpy and matplotlib,
but analysis tools (BSIM / Paramus) require pandas.
โก 2.2 ngspice
SemiDevKit uses ngspice for SPICE-based simulations.
๐ง Linux (Ubuntu)
sudo apt update
sudo apt install -y ngspice
๐ macOS
brew install ngspice
๐ช Windows
- โ Recommended: Use Linux ngspice inside WSL2 Ubuntu
- โ Alternative: Native Windows binary
https://ngspice.sourceforge.io/
โ Verification
ngspice --version
๐งฉ 3. Recommended Tools
๐ช 3.1 WSL2 (Windows Only)
WSL2 is essential for stable operation on Windows.
wsl --install
After installing Ubuntu from the Microsoft Store:
sudo apt update && sudo apt upgrade -y
๐ณ 3.2 Docker (for OpenLane-Lite)
Docker is required to run the minimal RTL โ GDSII flow.
- Install Docker Desktop:
https://www.docker.com/products/docker-desktop/
โ Required settings
- โ WSL2 backend
- โ Linux containers mode
๐ 3.3 Visual Studio Code
Recommended editor environment.
Recommended extensions
- ๐ Python
- ๐ช Remote โ WSL (Windows)
- ๐งพ Markdown All in One
๐ฅ 4. Clone the Repository
๐ HTTPS
git clone https://github.com/Samizo-AITL/SemiDevKit.git
cd SemiDevKit
๐ SSH
git clone git@github.com:Samizo-AITL/SemiDevKit.git
cd SemiDevKit
๐ 5. Python Environment (venv)
SemiDevKit consists of multiple independent tools.
๐ Using separate virtual environments per tool is recommended.
5.1 Create and activate venv
(Linux / WSL2 / macOS)
cd SemiDevKit
python3 -m venv .venv
source .venv/bin/activate
5.2 Create and activate venv
(Windows PowerShell)
cd SemiDevKit
python -m venv .venv
.\.venv\Scripts\Activate.ps1
5.3 Install Python packages
pip install -r requirements.txt
If requirements.txt is not available (e.g., early releases):
pip install numpy scipy matplotlib pandas pyyaml
๐งญ 6. ngspice Path Configuration (Windows Native)
setx PATH "$env:PATH;C:\Program Files\Spice64\bin"
ngspice
๐ 7. Directory Overview
SemiDevKit/
โ bsim/ # BSIM4 analyzers (DC / CV / DIM / Reliability / Paramus)
โ tcad/ # TCAD playgrounds (MOSFET / PZT)
โ openlane/ # OpenLane-Lite (RTL โ GDSII)
โ docs/ # Documentation
โ assets/ # GitHub Pages assets
โ README.md
โ ChangeLog.md
๐ 8. Quick Test
โ ngspice + BSIM Analyzer
cd bsim/analyzer_dc
python run/run_vgid.py
โ Python Plot Test
python - <<EOF
import numpy as np
import matplotlib.pyplot as plt
plt.plot([0,1],[0,1])
plt.savefig("test.png")
print("OK")
EOF
๐ 9. Troubleshooting
โ ngspice not found
- Verify installation
- Check PATH configuration
- ๐ช On Windows, use WSL2 for best compatibility
โ venv activation permission error (Windows)
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
๐ 10. License Notes
SemiDevKit uses a hybrid license model.
| Scope | License |
|---|---|
| ๐ป Source Code | MIT License |
| ๐ Documentation / Diagrams | CC BY 4.0 |
๐ฌ 11. Contact
| Item | Details |
|---|---|
| ๐ค Name | Shinichi Samizo |
| ๐งโ๐ป GitHub | Samizo-AITL |
๐ After installation, proceed to docs/UsageGuide