Support for programmatic spice model declaration

Aperta
#85 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by reading SKiDL's netlist generation entry point and how it currently represents SPICE models; the issue identifies PySpice's DeviceModel in PySpice/Spice/Netlist.py as the reference. The requested outcome is a SKiDL wrapper that lets users declare models programmatically before generate_netlist runs. The issue does not name SKiDL files or tests to run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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!

Lingua principale
Python
Stelle
1.7k
Fork
184
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devbisme/skidl

Tutte le issue di devbisme/skidl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.