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

Undefined Parameter vbic_cje in NGSpice Netlist Simulation with SG13G2 Model Library #315

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

Comments

@ArashKat
Copy link

ArashKat commented Jan 3, 2025

Running the following netlist in ngspice:

  • Example NGSpice netlist

  • Circuit description
    V1 net2 GND DC 3 * Voltage source with 3V DC
    R1 net2 net1 1k m=1 * Resistor R1 with value 1k ohm
    R2 net1 GND 1k m=1 * Resistor R2 with value 1k ohm
    R3 net3 GND 1k m=1 * Resistor R3 with value 1k ohm

  • Include the transistor model library
    .include "/home/arashka/IHP-Open-PDK/ihp-sg13g2/libs.tech/ngspice/models/sg13g2_hbt_mod.lib"

  • Define the transistor subcircuit instance
    XQ1 net2 net1 net3 GND npn13G2 Nx=2

Netlist line no. 0:
Undefined parameter [vbic_cje]
Netlist line no. 0:
Cannot compute substitute

@dwarning
Copy link
Contributor

dwarning commented Jan 5, 2025

It seems there is something wrong with your input file.
Please attach the full netlist.
BTW: inline comment is ";" - not "*" as shown above.

@KrzysztofHerman
Copy link
Contributor

@ArashKat
please use .lib cornerHBT.lib hbt_typ instead of .include.

@ArashKat
Copy link
Author

ArashKat commented Jan 5, 2025

Thank you; I made many changes even adjusting some variables inside the mod.lib based on information from cornerHBT, and it was working. Then I noticed I was running Xschem in the wrong folder after watching a tutorial on PDK importing another open-source PDK. My problem now is that after running on xschem I do not have the simulation result directly. I should go to the folder containing the spice netlist and run ngspice to see the results. Can you help me with that? Also, as I'm used to Cadence virtuoso, is there any way to import the pdk to Cadence,I tried some basic efforts such as adding pdk folder address to cds.lib in Cadence but I couldn't succeed....

@KrzysztofHerman
Copy link
Contributor

@ArashKat happy to hear that you have made some progress.
The easiest way to get familiar with the tools and PDK is to fire up xschem in libs.tech/xschem directory and review the examples. By default xschem will create a subdirectory called simulations there and it will be used by ngspice as cwd

@ArashKat
Copy link
Author

ArashKat commented Jan 6, 2025

Thank you. Now everything is working for me but I have three questions:

1- Is it possible to see the simulation result directly in Xschem?

2- Is it possible to use this pdk in Cadence

3- What is the nominal voltage for VCC in this technology.? I see VDD is 1.2V. I saw the breakdown voltage in the documents, but not a basic definition, reference, or suggestion for VCC.

Thank you if you please respond to these questions.

@KrzysztofHerman
Copy link
Contributor

@ArashKat

Great to know that you have managed to make things working. As for your questions:

  1. yes it is possible. You can plot the results using the graph element directly on the schematic. It sources the *.raw file generated by ngspice. Almost all our examples use this method. Alternatively you can use GAW waveform editor, which does the same standalone .
  2. No, the PDK is targeting open source EDA tools and this is the reason why it is incompatible with Cadence tools. Nevertheless the IHP-Open-PDK is derived from our proprietary product, compatible with Cadence, and if you are with an academic institution you can get access to it free of charge. The requirement is NDA.
  3. I suppose you are asking about the standard cells and standard cells supply voltage. The nominal one is 1.2 V however it will work even with 1.5 V (we provide a separate corner liberty file which uses 1.5 V)

@ArashKat
Copy link
Author

ArashKat commented Jan 6, 2025

Thank you for getting back to me. I still cannot directly plot in Xschem, but I can easily simulate using Ngspice, and this is a silver lining.

@sergeiandreyev
Copy link
Contributor

sergeiandreyev commented Jan 7, 2025

3- What is the nominal voltage for VCC in this technology.? I see VDD is 1.2V. I saw the breakdown voltage in the documents, but not a basic definition, reference, or suggestion for VCC.

Hi @ArashKat, if you're asking about high-voltage supply level - it's 3.3V, fragment from process spec:
image

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

4 participants