diff options
author | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
commit | 0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (patch) | |
tree | 6ae63f7633d80f9a70be43ebe789eb0c3a3ec364 /js/Electrical/PMOS.js | |
parent | 8e6e9558ba4963ea71b7a6efc11e0b44e7c9040a (diff) | |
download | sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.gz sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.bz2 sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.zip |
change order of functions
Diffstat (limited to 'js/Electrical/PMOS.js')
-rw-r--r-- | js/Electrical/PMOS.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js index 6ebcb4c0..7fcd2b27 100644 --- a/js/Electrical/PMOS.js +++ b/js/Electrical/PMOS.js @@ -1,24 +1,5 @@ /* autogenerated from "macros/Electrical/PMOS.sci" */ function PMOS() { -PMOS.prototype.get = function PMOS() { -} -PMOS.prototype.set = function PMOS() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (true) { -[ok,W,L,Beta,Vt,K2,K5,dW,dL,RDS,exprs]=scicos_getvalue("Set PMOS Transistor parameters",["Width [m]","Length [m]","Transconductance parameter [A/(V*V)]","Zero bias threshold voltage [V]","Bulk threshold parameter","Reduction of pinch-off region","Narrowing of channel [m]","Shortening of channel [m]","Drain-Source-Resistance [Ohm]"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1),exprs); -if (!ok) { -break -} -model.equations.parameters[2-1]=list(W,L,Beta,Vt,K2,K5,dW,dL,RDS); -graphics.exprs=exprs; -x.graphics=graphics; -x.model=model; -break -} -} PMOS.prototype.define = function PMOS() { model=scicos_model(); W=50.0e-6; @@ -49,4 +30,23 @@ x.graphics.out_implicit=["I","I","I"]; } PMOS.prototype.details = function PMOS() { } +PMOS.prototype.get = function PMOS() { +} +PMOS.prototype.set = function PMOS() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +model=arg1.model; +while (true) { +[ok,W,L,Beta,Vt,K2,K5,dW,dL,RDS,exprs]=scicos_getvalue("Set PMOS Transistor parameters",["Width [m]","Length [m]","Transconductance parameter [A/(V*V)]","Zero bias threshold voltage [V]","Bulk threshold parameter","Reduction of pinch-off region","Narrowing of channel [m]","Shortening of channel [m]","Drain-Source-Resistance [Ohm]"],list("vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1,"vec",-1),exprs); +if (!ok) { +break +} +model.equations.parameters[2-1]=list(W,L,Beta,Vt,K2,K5,dW,dL,RDS); +graphics.exprs=exprs; +x.graphics=graphics; +x.model=model; +break +} +} } |