diff options
Diffstat (limited to 'js/IntegerOp')
-rw-r--r-- | js/IntegerOp/BITCLEAR.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/BITSET.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/CONVERT.js | 6 | ||||
-rw-r--r-- | js/IntegerOp/EXTRACTBITS.js | 8 | ||||
-rw-r--r-- | js/IntegerOp/INTMUL.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/LOGIC.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/SHIFT.js | 6 | ||||
-rw-r--r-- | js/IntegerOp/SRFLIPFLOP.js | 4 |
9 files changed, 22 insertions, 22 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js index 8ac5590d..a854f731 100644 --- a/js/IntegerOp/BITCLEAR.js +++ b/js/IntegerOp/BITCLEAR.js @@ -28,8 +28,8 @@ function BITCLEAR() { return options; } BITCLEAR.prototype.set = function BITCLEAR() { - this.Datatype = parseFloat((arguments[0]["Datatype"])) - this.bit = parseFloat((arguments[0]["bit"])) + this.Datatype = 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 377c9df6..ff9b5a7a 100644 --- a/js/IntegerOp/BITSET.js +++ b/js/IntegerOp/BITSET.js @@ -28,8 +28,8 @@ function BITSET() { return options; } BITSET.prototype.set = function BITSET() { - this.Datatype = parseFloat((arguments[0]["Datatype"])) - this.bit = parseFloat((arguments[0]["bit"])) + this.Datatype = 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 911af957..22a27d4d 100644 --- a/js/IntegerOp/CONVERT.js +++ b/js/IntegerOp/CONVERT.js @@ -31,9 +31,9 @@ function CONVERT() { return options; } CONVERT.prototype.set = function CONVERT() { - this.it = parseFloat((arguments[0]["it"])) - this.ot = parseFloat((arguments[0]["ot"])) - this.np = parseFloat((arguments[0]["np"])) + this.it = parseFloat(arguments[0]["it"]) + this.ot = parseFloat(arguments[0]["ot"]) + this.np = 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 737e5acb..34680bbe 100644 --- a/js/IntegerOp/EXTRACTBITS.js +++ b/js/IntegerOp/EXTRACTBITS.js @@ -31,10 +31,10 @@ function EXTRACTBITS() { return options; } 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.Datatype = arguments[0]["Datatype"] + this.rule = parseFloat(arguments[0]["rule"]) + this.bit = parseFloat(arguments[0]["bit"]) + this.scal = 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 04a6c6d0..baf80d47 100644 --- a/js/IntegerOp/INTMUL.js +++ b/js/IntegerOp/INTMUL.js @@ -30,8 +30,8 @@ function INTMUL() { return options; } INTMUL.prototype.set = function INTMUL() { - this.Datatype = parseFloat((arguments[0]["Datatype"])) - this.np = parseFloat((arguments[0]["np"])) + this.Datatype = arguments[0]["Datatype"] + this.np = 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 793a4620..5f5e59ef 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -57,8 +57,8 @@ function JKFLIPFLOP() { return options; } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { - this.init = parseFloat((arguments[0]["init"])) - this.exprs0 = parseFloat((arguments[0]["exprs0"])) + this.init = parseFloat(arguments[0]["init"]) + this.exprs0 = 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 823bad8b..beac49e0 100644 --- a/js/IntegerOp/LOGIC.js +++ b/js/IntegerOp/LOGIC.js @@ -31,8 +31,8 @@ function LOGIC() { return options; } LOGIC.prototype.set = function LOGIC() { - this.mat = inverse((arguments[0]["mat"])) - this.herit = parseFloat((arguments[0]["herit"])) + this.mat = inverse(arguments[0]["mat"]) + this.herit = 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 6312368d..fa5fae76 100644 --- a/js/IntegerOp/SHIFT.js +++ b/js/IntegerOp/SHIFT.js @@ -32,9 +32,9 @@ function SHIFT() { return options; } SHIFT.prototype.set = function SHIFT() { - this.Datatype = parseFloat((arguments[0]["Datatype"])) - this.nb = parseFloat((arguments[0]["nb"])) - this.np = parseFloat((arguments[0]["np"])) + this.Datatype = arguments[0]["Datatype"] + this.nb = arguments[0]["nb"] + this.np = 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 83b5aee6..9a05ad70 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -41,8 +41,8 @@ function SRFLIPFLOP() { return options; } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { - this.init = parseFloat((arguments[0]["init"])) - this.exprs0 = parseFloat((arguments[0]["exprs0"])) + this.init = parseFloat(arguments[0]["init"]) + this.exprs0 = 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") { |