<#162 NGSPICE model referencing based on .spiceini...
# ihp-sg13g2
g
#162 NGSPICE model referencing based on .spiceinit Pull request opened by KrzysztofHerman Major change in the operation of the ngspice and PDK models. A .spiceinit was added under libs.tech/ngspice/. Since the pdk directory is referenced there it allows to stream the netlist without user specific location of the .lib files ie. .lib cornerMOSlv.lib mos_tt The second change refers to the central location of the psp103_nqs.osdi model which is now situated in libs.tech/ngspice/openvaf. There is no need to use pre_osdi psp103_nqs.osdi in the spice netlist anymore. The above changes affected xschem and qucs-s examples, which were also updated. In the case of qucs-s also the examples are copied to the user's .qucs directory and appear in the GUI in the project left pane. Some solutions were adopted from PR #120. IHP-GmbH/IHP-Open-PDK All checks have passed 1/1 successful checks
k
Hi @Harald Pretl, could you please review this PR ? Now the major change is that ngspice uses
$PDK_ROOT
to reference the libraries. Also OSDI file is placed in a fixed location libs.tech/ngspice/openvaf.
h
@Krzysztof Herman I love this change! Finally, I need to confirm proper operation in our image, but using $PDK_ROOT is the way it should be 🙂 The only thing not really clean with this: You assume the psp103_nqs.osdi is in the correct PDK folder, but you don’t ship it (I understand the license issue). So users have to run the setup script, and I need to put the osdi into the right place when building the container, but that is fine. At least I don’t have to patch all your Xschem examples any longer, because I removed the osdi statements from them (not needed in our image).
@Krzysztof Herman BTW, one more: Please use the path
$PDK_ROOT/$PDK
. Because the variable
PDK
defines the PDK. Not super important now, but important later when there is more than one IHP PDK. And other PDKs do in this way. See https://github.com/IHP-GmbH/IHP-Open-PDK/pull/162#issuecomment-2231469095