IHP-GmbH / IHP-Open-PDK

130nm BiCMOS Open Source PDK, dedicated for Analog, Mixed Signal and RF Design
Apache License 2.0
394 stars 63 forks source link

npn13g2 subckt simulation problem #231

Open britovski opened 5 days ago

britovski commented 5 days ago

Environment

Expected Behavior

both TBs (inv_ttl_tran and inv_ttl_tran2) are expected to work since the only difference is that transistors in one of them are inside a subckt.

Actual Behavior

TB with subckt doesn't work and gave a subckt error message: Error: unknown subckt: x1.xq1 out x1.net1 0 0 x1.npn13g2 Simulation interrupted due to error!

Steps to Reproduce the Problem

  1. just run 'ngspice inv_ttl_tran.spice' in attached testcase that error message will appear.

Both TB netlists and xschem files are provided in attachment as a testcase. inv_ttl.tar.gz

PS: I didn't have problems with MOSFETs using the same hierarchy flow on xschem/ngspice.

dwarning commented 5 days ago

The transistor subckt's needs the fifthnode for temperature:

XQ1 B2 net1 GND GND t npn13G2 Nx=1
XQ2 net1 B1 IN GND t npn13G2 Nx=1

There seems something wrong with your PDK installation.

Bildschirmfoto vom 2024-10-21 08-51-52

britovski commented 5 days ago

@dwarning your xschem is generating the subckt netlist with the fifth node?