Use root relative paths and add verilog models#118
Merged
ThomasPluck merged 2 commits intogdsfactory:feat/schematic-metadatafrom Mar 27, 2026
Merged
Conversation
Copied from IHP-Open-PDK so the PDK package is self-contained for ngspice simulation. These can be compiled to OSDI with openvaf. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Reviewer's GuideSwitches all SPICE device schematics to use root-relative model library paths under ihp/models/ngspice/models and adds Verilog-A model sources, headers, and documentation for MOS varactor, PSP103, and r3_cmc models for ngspice/Xyce integration. Flow diagram for schematic simulation using root relative ngspice model librariesflowchart TD
U[Designer] --> S1[Select device in ihp_cells]
S1 --> S2[Generate DSchematic with spice_type SUBCKT]
S2 --> S3[Set library field to ihp/models/ngspice/models/...lib]
S3 --> C1[Create simulation netlist]
C1 --> NG[Run ngspice]
NG --> L1[Resolve library path relative to project root]
L1 --> L2[Load model file from ihp/models/ngspice/models]
L2 --> SIM[Execute simulation]
SIM --> O[Waveforms and results]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
We failed to fetch pull request #118.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
ThomasPluck
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Update SPICE model library references to use project-relative paths and vendor model directories, and add Verilog-A device model sources and supporting files for ngspice/XYCE integration.
New Features:
Enhancements: