Skip to content

Commit

Permalink
Add BSIMCMG model to ngspice
Browse files Browse the repository at this point in the history
  • Loading branch information
hpretl committed Jul 12, 2024
1 parent 404898e commit 6ec5505
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This document summarizes the most important changes of the individual releases o
* Bump various tool versions.
* Include an example for `cace`.
* Add `pyuvm`.
* Adding BSIMCMG model for `ngspice`.
* Remove `gdstk` due to build issues.

## 2024.05
Expand Down
13 changes: 12 additions & 1 deletion _build/images/ngspice/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ make -j"$(nproc)"
make install

# Enable OSDI for IHP PDK
FNAME="${TOOLS}/${NGSPICE_NAME}/${REPO_COMMIT_SHORT}"/share/ngspice/scripts/spinit
if [ -f "$PDK_ROOT"/sg13g2/libs.tech/ngspice/openvaf/psp103_nqs.osdi ]; then
FNAME="${TOOLS}/${NGSPICE_NAME}/${REPO_COMMIT_SHORT}"/share/ngspice/scripts/spinit
cp "$FNAME" "$FNAME".bak
sed -i "s/unset osdi_enabled/* unset osdi_enabled/g" "$FNAME"

Expand All @@ -43,3 +43,14 @@ if [ -f "$PDK_ROOT"/sg13g2/libs.tech/ngspice/openvaf/psp103_nqs.osdi ]; then
# Copy OSDI PSP model for IHP
cp "$PDK_ROOT"/sg13g2/libs.tech/ngspice/openvaf/psp103_nqs.osdi "${TOOLS}"/"${NGSPICE_NAME}"/"${REPO_COMMIT_SHORT}"/lib/ngspice/psp103.osdi
fi

# Find OpenVAF version
OPENVAF_VERSION=$(ls "$TOOLS/$OPENVAF_NAME")

# Add BSIMCMG model, required for ASAP7
git clone --depth=1 https://github.com/dwarning/VA-Models.git vamodels
MODEL=bsimcmg
cd vamodels/code/$MODEL/vacode
"$TOOLS/$OPENVAF_NAME/$OPENVAF_VERSION"/bin/openvaf $MODEL.va
cp $MODEL.osdi "${TOOLS}"/"${NGSPICE_NAME}"/"${REPO_COMMIT_SHORT}"/lib/ngspice/$MODEL.osdi
echo "osdi ${TOOLS}/${NGSPICE_NAME}/${REPO_COMMIT_SHORT}/lib/ngspice/$MODEL.osdi" >> "$FNAME"

0 comments on commit 6ec5505

Please sign in to comment.