[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.7.0-20110116-2-gb9c8d80)



The branch, master has been updated
       via  b9c8d80db3e471adf6984318868b95a4b0d83192 (commit)
      from  157381108371cc25684293e935c36834bb98e0fd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gnetlist/scheme/gnet-spice-sdb.scm |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit b9c8d80db3e471adf6984318868b95a4b0d83192
Author: Dan White <dan@xxxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gnetlist: spice-sdb MOS subcircuits
    
    Device=SUBCKT_{N,P}MOS are written almost like the corresponding normal
    device except the model is implmented as a subcircuit.
    
    Closes-bug: lp-698737

:100644 100644 1babe4e... b355dd6... M	gnetlist/scheme/gnet-spice-sdb.scm

=========
 Changes
=========

commit b9c8d80db3e471adf6984318868b95a4b0d83192
Author: Dan White <dan@xxxxxxxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gnetlist: spice-sdb MOS subcircuits
    
    Device=SUBCKT_{N,P}MOS are written almost like the corresponding normal
    device except the model is implmented as a subcircuit.
    
    Closes-bug: lp-698737

diff --git a/gnetlist/scheme/gnet-spice-sdb.scm b/gnetlist/scheme/gnet-spice-sdb.scm
index 1babe4e..b355dd6 100644
--- a/gnetlist/scheme/gnet-spice-sdb.scm
+++ b/gnetlist/scheme/gnet-spice-sdb.scm
@@ -961,6 +961,27 @@
 )
 
 
+;;------------------------------------------------------
+;;  write subckt pmos transistor
+;;------------------------------------------------------
+(define spice-sdb:write-subckt-pmos-transistor
+  (lambda (package port)
+    (debug-spew (string-append "Found PMOS subcircuit transistor.  Refdes = " package "\n"))
+    (let ((attrib-list (list "l" "w" "as" "ad" "pd" "ps" "nrd" "nrs" "temp" "ic" "m")))
+      (spice-sdb:write-transistor-diode package "X" "PMOS" attrib-list port))
+  )
+)
+
+;;------------------------------------------------------
+;;  write subckt nmos transistor
+;;------------------------------------------------------
+(define spice-sdb:write-subckt-nmos-transistor
+  (lambda (package port)
+    (debug-spew (string-append "Found NMOS subcircuit transistor.  Refdes = " package "\n"))
+    (let ((attrib-list (list "l" "w" "as" "ad" "pd" "ps" "nrd" "nrs" "temp" "ic" "m")))
+      (spice-sdb:write-transistor-diode package "X" "NMOS" attrib-list port))
+  )
+)
 ;;------------------------------------------------------------
 ;;  write mesfet transistor
 ;;------------------------------------------------------------
@@ -1588,6 +1609,10 @@
               (spice-sdb:write-include package port))
           ( (string=? device "TESTPOINT")
               (spice-sdb:write-probe package port))
+          ( (string=? device "SUBCKT_PMOS")
+              (spice-sdb:write-subckt-pmos-transistor package port))
+          ( (string=? device "SUBCKT_NMOS")
+              (spice-sdb:write-subckt-nmos-transistor package port))
           ( else 
 	      (spice-sdb:write-default-component package file-info-list port))
         ) ;; end of cond




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs