Merge branch 'main' into dev

This commit is contained in:
PhillipRambo 2025-07-14 12:48:03 +02:00
commit 07d52ddd14
3 changed files with 20 additions and 6 deletions

View File

@ -81,7 +81,7 @@ The scripts that was made for generating the LUTs can be found as:
### 🔧 Setup Procedure
1. **Clone the Metwatts GMID repository**
Follow the installation instructions provided in the repo.
Follow the installation instructions provided in the repo ([`gmid`](https://github.com/medwatt/gmid))
> 💡 It is recommended to use a virtual environment.
2. **Generate Lookup Tables**
@ -101,7 +101,7 @@ The scripts that was made for generating the LUTs can be found as:
```bash
jupyter lab _gmid_test.ipynb
```
This notebook will open a GUI for exploring the GMID lookup tables, which should look like the following:
This notebook will open a GUI for exploring the GMID lookup tables, which should look like the following (make sure the paths match yours accordingly):
<p align="center"> <img src=".media/gmid.png" width="800" height="400" /> </p>

View File

@ -1,8 +1,15 @@
import os
from mosplot.lookup_table_generator.simulators import NgspiceSimulator, HspiceSimulator
from mosplot.lookup_table_generator import LookupTableGenerator, TransistorSweep
# One of `include_paths` or `lib_mappings` must be specified.
# The rest are optional.
# Read environment variables to build model path
PDK_ROOT = os.environ["PDK_ROOT"]
PDK = os.environ["PDK"]
model_path = os.path.join(PDK_ROOT, PDK, "libs.tech/ngspice/models/cornerMOSlv.lib")
ngspice = NgspiceSimulator(
# Provide path to simulator if simulator is not in system path.
simulator_path="ngspice",
@ -15,8 +22,8 @@ ngspice = NgspiceSimulator(
# Files to include with `.LIB`.
lib_mappings = [
("/home/pedersen/IHP-Open-PDK/ihp-sg13g2/libs.tech/ngspice/models/cornerMOSlv.lib", " mos_tt") # Put your own path to the corner lib
lib_mappings = [
(model_path, "mos_tt")
],
# If the transistor is defined inside a subcircuit in

View File

@ -1,8 +1,15 @@
import os
from mosplot.lookup_table_generator.simulators import NgspiceSimulator, HspiceSimulator
from mosplot.lookup_table_generator import LookupTableGenerator, TransistorSweep
# One of `include_paths` or `lib_mappings` must be specified.
# The rest are optional.
# Read environment variables to build model path
PDK_ROOT = os.environ["PDK_ROOT"]
PDK = os.environ["PDK"]
model_path = os.path.join(PDK_ROOT, PDK, "libs.tech/ngspice/models/cornerMOSlv.lib")
ngspice = NgspiceSimulator(
# Provide path to simulator if simulator is not in system path.
simulator_path="ngspice",
@ -15,8 +22,8 @@ ngspice = NgspiceSimulator(
# Files to include with `.LIB`.
lib_mappings = [
("/home/pedersen/IHP-Open-PDK/ihp-sg13g2/libs.tech/ngspice/models/cornerMOSlv.lib", " mos_tt") # Put your own path to the corner lib
lib_mappings = [
(model_path, "mos_tt")
],
# If the transistor is defined inside a subcircuit in