summaryrefslogtreecommitdiff
path: root/js/Electrical/PMOS.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/Electrical/PMOS.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/Electrical/PMOS.js')
-rw-r--r--js/Electrical/PMOS.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js
index f031f236..bd88da1a 100644
--- a/js/Electrical/PMOS.js
+++ b/js/Electrical/PMOS.js
@@ -47,19 +47,19 @@ function PMOS() {
return options;
}
PMOS.prototype.set = function PMOS() {
- this.W = parseFloat(arguments[0]["W"])
- this.L = parseFloat(arguments[0]["L"])
- this.Beta = parseFloat(arguments[0]["Beta"])
- this.Vt = parseFloat(arguments[0]["Vt"])
- this.K2 = parseFloat(arguments[0]["K2"])
- this.K5 = parseFloat(arguments[0]["K5"])
- this.dW = parseFloat(arguments[0]["dW"])
- this.dL = parseFloat(arguments[0]["dL"])
- this.RDS = parseFloat(arguments[0]["RDS"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.W,this.L,this.Beta,this.Vt,this.K2,this.K5,this.dW,this.dL,this.RDS,this.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),this.exprs);
+ var ok = true;
+ this.W = parseFloat(arguments[0]["W"]);
+ this.L = parseFloat(arguments[0]["L"]);
+ this.Beta = parseFloat(arguments[0]["Beta"]);
+ this.Vt = parseFloat(arguments[0]["Vt"]);
+ this.K2 = parseFloat(arguments[0]["K2"]);
+ this.K5 = parseFloat(arguments[0]["K5"]);
+ this.dW = parseFloat(arguments[0]["dW"]);
+ this.dL = parseFloat(arguments[0]["dL"]);
+ this.RDS = parseFloat(arguments[0]["RDS"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}