diff options
author | Sunil Shetye | 2018-09-17 16:11:31 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-10-08 11:24:12 +0530 |
commit | f389f174481df676c841ebcc87a7b8b313921bbc (patch) | |
tree | 2551fd05222a78d4441f5883a97980bda1d6b241 /js/Electrical/PMOS.js | |
parent | 4dc055ae23c9e33e459b7b583a67f92b5972a062 (diff) | |
download | sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.gz sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.bz2 sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.zip |
add importset and getContainer to combined.js
Diffstat (limited to 'js/Electrical/PMOS.js')
-rw-r--r-- | js/Electrical/PMOS.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js index 11a1d8a0..7010094f 100644 --- a/js/Electrical/PMOS.js +++ b/js/Electrical/PMOS.js @@ -76,4 +76,18 @@ function PMOS() { PMOS.prototype.get_popup_title = function PMOS() { return this.set_param_popup_title; } + PMOS.prototype.importset = function PMOS() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.W = ary[0]; + this.L = ary[1]; + this.Beta = ary[2]; + this.Vt = ary[3]; + this.K2 = ary[4]; + this.K5 = ary[5]; + this.dW = ary[6]; + this.dL = ary[7]; + this.RDS = ary[8]; + } + PMOS.prototype.getContainer = function PMOS() { return new BasicBlock(this.x); } } |