Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing MOS library #322

Open
ArashKat opened this issue Jan 8, 2025 · 5 comments
Open

Importing MOS library #322

ArashKat opened this issue Jan 8, 2025 · 5 comments
Assignees

Comments

@ArashKat
Copy link

ArashKat commented Jan 8, 2025

The following error exists in simulating MOSs:

Error on line:
n.xm1.nsg13_hv_pmos net2 net1 0 0 xm1:sg13g2_hv_pmos_psp w= 1.000000000000000e-06 l= 4.500000000000000e-07 nf= 1.000000000000000e+00 mult= 1.000000000000000e+00 as= 3.400000000000000e-13 ad= 3.400000000000000e-13 ps= 2.680000000000000e-06 pd= 2.680000000000000e-06 dta= 0.000000000000000e+00 ngcon=2
could not find a valid modelname
Simulation interrupted due to error!

the netlist:

**.subckt dc_hv_pmos
Vgs net1 GND -0.75
Vds net3 GND -1.5
XM1 net2 net1 GND GND sg13_hv_pmos w=1.0u l=0.45u ng=1 m=1
Vd net3 net2 0
.save i(vd)
**** begin user architecture code

.lib /home/arashka/IHP-Open-PDK/ihp-sg13g2/libs.tech/ngspice/models/cornerMOShv.lib mos_tt

.param temp=27
.control
save all
op
print I(Vd)
dc Vds 0 -2 -0.01 Vgs -0.45 -1.1 -0.05
write dc_hv_pmos.raw
.endc

**** end user architecture code
**.ends
.GLOBAL GND

@KrzysztofHerman
Copy link
Contributor

@ArashKat please verify your PDK installation. Please checkout this manual. The core issue is probably:

  1. you do not have the osdi model comiled
  2. your ./home/$user/.spiceinit file does not exists

Our MOS devices use PSP model written in Verilog-A, we distribute source code but the user have to compile it using open source tool openvaf. The binary have to be placed in $PDK_ROOT/libs.tech/ngspice/openvaf
and .spiceinit have to point to this location.

@KrzysztofHerman KrzysztofHerman self-assigned this Jan 9, 2025
@sergeiandreyev
Copy link
Contributor

Hi @ArashKat, could you please check the recommendation and give your feedback if it solves your issue?

@ArashKat
Copy link
Author

Hello the manual was very helpful ... it solved the issue: however it doesn't recognize the resistors; Xschem crashes and suddenly will be closed when I select a pdk's resistor.

@sergeiandreyev
Copy link
Contributor

Hi @KrzysztofHerman, could you please take a look?

@ArashKat
Copy link
Author

For me, the problem is that after running the install.py I did not create any r3_cmc file .... I added them manually using this link: https://github.com/dwarning/VA-Models/releases/tag/v2.2 by copying the VA-Models-osdilibs.zip file to $PDK_ROOT/$PDK/Lib.tech/ngspice/openvaf directory and added the following command: osdi '$PDK_ROOT/$PDK/libs.tech/ngspice/openvaf/osdilibs/r3_cmc.osdi' to .spiceinit in $HOME still Xschem jump out when I select the resistors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants