diff options
author | Sunil Shetye | 2018-07-02 20:21:14 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 21:20:51 +0530 |
commit | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (patch) | |
tree | 15164190cae390d0a701fcd7ce99fa3addb4134c /js/IntegerOp | |
parent | 468de187d0ad59613aa73384976b58b78200ae43 (diff) | |
download | sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.gz sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.bz2 sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.zip |
add set block
Diffstat (limited to 'js/IntegerOp')
-rw-r--r-- | js/IntegerOp/BITCLEAR.js | 2 | ||||
-rw-r--r-- | js/IntegerOp/BITSET.js | 2 | ||||
-rw-r--r-- | js/IntegerOp/CONVERT.js | 3 | ||||
-rw-r--r-- | js/IntegerOp/EXTRACTBITS.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/INTMUL.js | 2 | ||||
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 2 | ||||
-rw-r--r-- | js/IntegerOp/LOGIC.js | 2 | ||||
-rw-r--r-- | js/IntegerOp/SHIFT.js | 3 | ||||
-rw-r--r-- | js/IntegerOp/SRFLIPFLOP.js | 2 |
9 files changed, 22 insertions, 0 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js index aa22841c..8e73efc6 100644 --- a/js/IntegerOp/BITCLEAR.js +++ b/js/IntegerOp/BITCLEAR.js @@ -23,6 +23,8 @@ function BITCLEAR() { BITCLEAR.prototype.get = function BITCLEAR() { } BITCLEAR.prototype.set = function BITCLEAR() { + this.Datatype = parseFloat((arguments[0]["Datatype"])) + this.bit = parseFloat((arguments[0]["bit"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js index f2660157..bbd4b339 100644 --- a/js/IntegerOp/BITSET.js +++ b/js/IntegerOp/BITSET.js @@ -23,6 +23,8 @@ function BITSET() { BITSET.prototype.get = function BITSET() { } BITSET.prototype.set = function BITSET() { + this.Datatype = parseFloat((arguments[0]["Datatype"])) + this.bit = parseFloat((arguments[0]["bit"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js index 9a562fc2..1e3a7ff9 100644 --- a/js/IntegerOp/CONVERT.js +++ b/js/IntegerOp/CONVERT.js @@ -25,6 +25,9 @@ function CONVERT() { CONVERT.prototype.get = function CONVERT() { } CONVERT.prototype.set = function CONVERT() { + this.it = parseFloat((arguments[0]["it"])) + this.ot = parseFloat((arguments[0]["ot"])) + this.np = parseFloat((arguments[0]["np"])) this.x = arg1; graphics = arg1.graphics; model = arg1.model; diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js index 3b820860..d691751c 100644 --- a/js/IntegerOp/EXTRACTBITS.js +++ b/js/IntegerOp/EXTRACTBITS.js @@ -24,6 +24,10 @@ function EXTRACTBITS() { EXTRACTBITS.prototype.get = function EXTRACTBITS() { } EXTRACTBITS.prototype.set = function EXTRACTBITS() { + this.Datatype = parseFloat((arguments[0]["Datatype"])) + this.rule = parseFloat((arguments[0]["rule"])) + this.bit = parseFloat((arguments[0]["bit"])) + this.scal = parseFloat((arguments[0]["scal"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js index 24dba7b1..b9dd84c9 100644 --- a/js/IntegerOp/INTMUL.js +++ b/js/IntegerOp/INTMUL.js @@ -25,6 +25,8 @@ function INTMUL() { INTMUL.prototype.get = function INTMUL() { } INTMUL.prototype.set = function INTMUL() { + this.Datatype = parseFloat((arguments[0]["Datatype"])) + this.np = parseFloat((arguments[0]["np"])) this.x = arg1; graphics = arg1.graphics; model = arg1.model; diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index 1fd4c604..1b30589e 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -54,6 +54,8 @@ function JKFLIPFLOP() { JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { + this.init = parseFloat((arguments[0]["init"])) + this.exprs0 = parseFloat((arguments[0]["exprs0"])) for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o = arg1.model.rpar.objs[i-1]; if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js index cf843b1f..20da4fc3 100644 --- a/js/IntegerOp/LOGIC.js +++ b/js/IntegerOp/LOGIC.js @@ -26,6 +26,8 @@ function LOGIC() { LOGIC.prototype.get = function LOGIC() { } LOGIC.prototype.set = function LOGIC() { + this.mat = parseFloat((arguments[0]["mat"])) + this.herit = parseFloat((arguments[0]["herit"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js index 4534e25c..1006fe5f 100644 --- a/js/IntegerOp/SHIFT.js +++ b/js/IntegerOp/SHIFT.js @@ -26,6 +26,9 @@ function SHIFT() { SHIFT.prototype.get = function SHIFT() { } SHIFT.prototype.set = function SHIFT() { + this.Datatype = parseFloat((arguments[0]["Datatype"])) + this.nb = parseFloat((arguments[0]["nb"])) + this.np = parseFloat((arguments[0]["np"])) this.x = arg1; graphics = arg1.graphics; model = arg1.model; diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index 19b180db..d00d54cb 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -38,6 +38,8 @@ function SRFLIPFLOP() { SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { + this.init = parseFloat((arguments[0]["init"])) + this.exprs0 = parseFloat((arguments[0]["exprs0"])) for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o = arg1.model.rpar.objs[i-1]; if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { |