๐บ๐ธ English ย |ย ๐จ๐ณ ไธญๆ
Enterprise-grade Equipment Automation Program for Semiconductor Manufacturing
git clone https://github.com/fzrai/myeap.git
cd myeap
uv sync
uv run pytest
uv run uvicorn myeap.api.main:app --reloadโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Kubernetes Cluster โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ MES Integration Layer โ โ
โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โ โ MQTT โ โ REST โ โ Kafka โ โ โ
โ โ โ Adapter โ โ Gateway โ โ Consumer โ โ โ
โ โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Shared Services Layer โ โ
โ โ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โ โ Recipe โ โ Alarm โ โ Data โ โ Track โ โ SPC/FDC โ โ โ
โ โ โ Managerโ โ Handlerโ โCollect โ โService โ โ Engine โ โ โ
โ โ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Device Control Layer โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ SECS/GEM โ โ Equipment โ โ Process โ โ โ
โ โ โ Driver โ โ State โ โ Controller โ โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ โ
โ โ โ โ
โ โ [Cleaner] [CVD] [PVD] [Etcher] [Lithography] [CMP] ... โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Data Layer โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโ โ โ
โ โ โ Redis โ โPostgreSQL โ โTimescaleDBโ โ MinIO โ โ โ
โ โ โ (Cache) โ โ (Primary) โ โ(Timeseries)โ โ (Recipe)โ โ โ
โ โ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโ โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- SECS-II message encoding/decoding
- HSMS connection management with heartbeat
- GEM state machine (SEMI E30)
- Standard message handling (S1-S15)
- Auto reconnection with exponential backoff
- MQTT adapter (pub/sub messaging)
- REST API gateway
- Kafka adapter (event streaming)
- Work order reception and status reporting
- Alarm and throughput reporting
- Unified equipment abstraction
- Multi-chamber coordination
- Process flow control
- Plugin-based equipment support
- Cleaner, CVD, PVD, Etcher plugins
- Version control (semantic versioning)
- Approval workflow
- Upload/download to equipment
- Recipe comparison
- Parameterized templates
- Multi-level severity (CRITICAL/MAJOR/MINOR/WARNING)
- Multi-channel notifications (Email/SMS/Webhook)
- Auto-escalation
- Alarm suppression
- Statistics and analytics
- Real-time data collection
- Multiple sampling strategies (time, change, statistical, smart)
- Limit monitoring (UCL/LCL/USL/LSL)
- High-frequency process data
- Control charts (X-bar, R, S, X-MR, C, U, P, NP, EWMA, CUSUM)
- 8 Westgard SPC rules
- Process capability (Cp, Cpk, Pp, Ppk, sigma level)
- Fault detection and classification
- Feature extraction and anomaly detection
- Carrier management (FOUP, FOSB)
- Wafer-level tracking
- Chamber mapping
- Forward/backward traceability
- Impact analysis
- Prometheus metrics
- OpenTelemetry distributed tracing
- Structured logging
- Liveness/readiness health checks
- OAuth2/LDAP authentication
- Role-based access control (RBAC)
- Audit trail
- Electronic signature (21 CFR Part 11)
| Module | Status | Tests |
|---|---|---|
| SECS/GEM Protocol | โ Done | 47+ |
| MES Integration | โ Done | 81+ |
| Device Control | โ Done | 75+ |
| Recipe Management | โ Done | 105+ |
| Alarm Management | โ Done | 71+ |
| Data Collection | โ Done | 84+ |
| Tracking Service | โ Done | 62+ |
| SPC Engine | โ Done | 46+ |
| FDC Engine | โ Done | 89+ |
| Process Engine | ๐ WIP | - |
| AI/ML Module | ๐ WIP | - |
| Digital Twin | ๐ WIP | - |
| Category | Technology |
|---|---|
| Language | Python 3.11+ |
| Async Framework | asyncio, FastAPI, uvicorn |
| Protocol | pycomm3 (SECS/GEM/HSMS) |
| Messaging | Apache Kafka, MQTT |
| Database | PostgreSQL (Citus), Redis, TimescaleDB |
| Object Storage | MinIO (S3-compatible) |
| Container | Docker, Kubernetes |
| Monitoring | Prometheus, Grafana, Jaeger |
| AI/ML | PyTorch, scikit-learn |
| Security | OAuth2, JWT |
myeap/
โโโ src/myeap/
โ โโโ core/ # Core infrastructure
โ โโโ observability/ # Observability
โ โโโ db/ # Database
โ โโโ secs/ # SECS/GEM protocol
โ โโโ mes/ # MES integration
โ โโโ device/ # Equipment control
โ โโโ recipe/ # Recipe management
โ โโโ alarm/ # Alarm management
โ โโโ tracking/ # Tracking service
โ โโโ data/ # Data collection
โ โโโ spc/ # SPC engine
โ โโโ fdc/ # FDC engine
โ โโโ ai/ # AI/ML module
โ โโโ twin/ # Digital twin
โ โโโ security/ # Security
โ โโโ api/ # REST API
โโโ tests/ # Tests
โโโ configs/ # Config files
โโโ docs/ # Documentation
โโโ alembic/ # DB migrations
- ๐ English Full Documentation
- ๐ ๅฎๆดไธญๆๆๆกฃ
- ๐ API Reference
- ๐๏ธ Architecture Design
# Format code
uv run black .
# Lint
uv run ruff check .
# Type check
uv run mypy src/
# Run tests
uv run pytest
# With coverage
uv run pytest --cov=myeap --cov-report=html- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'feat: Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Create a Pull Request
MIT License - see LICENSE
Made for Semiconductor Manufacturing