diff options
author | Sunil Shetye | 2018-07-16 15:29:15 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-16 15:31:24 +0530 |
commit | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (patch) | |
tree | 8b842ea29c504a11164c39221e948fdaa8fa9035 /js/Electrical/NMOS.js | |
parent | 614f18061faa4fc126f0d3577792dd9adfb3f240 (diff) | |
download | sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.tar.gz sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.tar.bz2 sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.zip |
treat third argument of standard_define as model expression
Diffstat (limited to 'js/Electrical/NMOS.js')
-rw-r--r-- | js/Electrical/NMOS.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js index ce637283..9976ae99 100644 --- a/js/Electrical/NMOS.js +++ b/js/Electrical/NMOS.js @@ -24,7 +24,7 @@ function NMOS() { this.model.out = new ScilabDouble([ones(size(mo.outputs,"*"),1)]); this.exprs = [[string(this.W)],[string(this.L)],[string(this.Beta)],[string(this.Vt)],[string(this.K2)],[string(this.K5)],[string(this.dW)],[string(this.dL)],[string(this.RDS)]]; this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"NMOS\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([2,2]),this.model,this.exprs,this.gr_i); + this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(this.exprs),this.gr_i); this.x.graphics.in_implicit = ["I"]; this.x.graphics.out_implicit = [["I"],["I"],["I"]]; return new BasicBlock(this.x); |