summaryrefslogtreecommitdiff
path: root/js/Electrical/NMOS.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/NMOS.js')
-rw-r--r--js/Electrical/NMOS.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js
index 0dcf0c8b..f59e41fb 100644
--- a/js/Electrical/NMOS.js
+++ b/js/Electrical/NMOS.js
@@ -35,6 +35,15 @@ function NMOS() {
NMOS.prototype.get = function NMOS() {
}
NMOS.prototype.set = function NMOS() {
+ 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.x = arg1;
graphics = arg1.graphics;
exprs = graphics.exprs;