question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for programmatic spice model declaration

See original GitHub issue

PySpice provides the ability to programmatically declare models with the DeviceModel class. For example, to include the generic BJT model at the beginning of the BJT chapter (chapter 8) in the NgSpice manual, you could do

DeviceModel(name="QMOD1", modele_type="NPN level=2")

While there is an obvious workaround for this in skidl (write it to a file and reference it like any other spice model), this adds a layer of difficulty to using simple, generic models and adds an even greater level of difficulty for programmatic generation of models.

Would it be possible to add a skidl wrapper around this pyspice functionality? It’s technically possible to specify the model from the output of generate_netlist, but of course at this point it’s too late.

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
matthuszaghcommented, Jun 1, 2020

True, it might be better to auto-generate the name.

1reaction
xesscorpcommented, May 31, 2020

You can still use a string for the model, but in that case it’s assumed to be a file name where the .model statement is stored. It doesn’t refer to the name assigned in the XspiceModel or DeviceModel. In fact, maybe those names shouldn’t have to be there at all since they’re not used, and SKiDL could just assign some automatically-generated model names that the user would never see unless the SPICE code was viewed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to SPICE - NASA / NAIF
Welcome to SPICE. Welcome to SPICE, an ancillary information system that provides scientists and engineers the capability to include space ...
Read more >
Rewiring Programmatic Media for Inclusivity - LinkedIn
It's our goal at P&G to have 80-90% reach among key consumer groups, and we've made the declaration that we want to be...
Read more >
What is Programmatic Advertising? Definition, Types, Channel ...
Programmatic advertising is the process of automating the buying and selling of ad inventory in real-time through an automated bidding ...
Read more >
Programmatic Ads | Digital Adveritsing Agency
Programmatic ads help you meet those goals more effectively. ... “spray and pray” model and direct content right to the users who are...
Read more >
SPICE Models for Intel Field Programmable Gate Array
Intel® Stratix® 10 L-Tile, 10SL, Transceiver IBIS-AMI ; Intel® Arria® 10 GX/GT. 10AX. Transceiver IBIS-AMI ; Intel® Arria® 10 GX/GT. 10AX · Transceiver...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found