summaryrefslogtreecommitdiff
path: root/js/IntegerOp
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/IntegerOp
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/IntegerOp')
-rw-r--r--js/IntegerOp/BITCLEAR.js2
-rw-r--r--js/IntegerOp/BITSET.js2
-rw-r--r--js/IntegerOp/CONVERT.js4
-rw-r--r--js/IntegerOp/DFLIPFLOP.js6
-rw-r--r--js/IntegerOp/DLATCH.js6
-rw-r--r--js/IntegerOp/EXTRACTBITS.js4
-rw-r--r--js/IntegerOp/INTMUL.js6
-rw-r--r--js/IntegerOp/JKFLIPFLOP.js6
-rw-r--r--js/IntegerOp/LOGIC.js4
-rw-r--r--js/IntegerOp/SHIFT.js4
-rw-r--r--js/IntegerOp/SRFLIPFLOP.js6
11 files changed, 25 insertions, 25 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js
index 9230f85e..864bfaf7 100644
--- a/js/IntegerOp/BITCLEAR.js
+++ b/js/IntegerOp/BITCLEAR.js
@@ -11,7 +11,7 @@ function BITCLEAR() {
this.model.outtyp = new ScilabDouble([3]);
this.model.opar = list(new ScilabDouble([int32(0)]));
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(3)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([4,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js
index 6a0582fe..fd52e1bb 100644
--- a/js/IntegerOp/BITSET.js
+++ b/js/IntegerOp/BITSET.js
@@ -11,7 +11,7 @@ function BITSET() {
this.model.outtyp = new ScilabDouble([3]);
this.model.opar = list(new ScilabDouble([uint32(0)]));
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(3)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([4,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js
index ddd77a7c..94be655f 100644
--- a/js/IntegerOp/CONVERT.js
+++ b/js/IntegerOp/CONVERT.js
@@ -10,10 +10,10 @@ function CONVERT() {
this.model.out2 = new ScilabDouble([-2]);
this.model.intyp = new ScilabDouble([1]);
this.model.outtyp = new ScilabDouble([3]);
- this.model.rpar = [];
+ this.model.rpar = new ScilabDouble([]);
this.model.ipar = new ScilabDouble([sgn]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(1)],[sci2exp(3)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([3,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js
index 79215c3e..80a84dfd 100644
--- a/js/IntegerOp/DFLIPFLOP.js
+++ b/js/IntegerOp/DFLIPFLOP.js
@@ -82,11 +82,11 @@ function DFLIPFLOP() {
this.model.in2 = new ScilabDouble([1],[1],[1]);
this.model.out = new ScilabDouble([1],[1]);
this.model.out2 = new ScilabDouble([1],[1]);
- this.model.intyp = [5,1,1];
- this.model.outtyp = [5,5];
+ this.model.intyp = new ScilabDouble([5,1,1]);
+ this.model.outtyp = new ScilabDouble([5,5]);
this.model.blocktype = new ScilabString(["h"]);
this.model.firing = new ScilabBoolean([false]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
this.model.rpar = new ScilabDouble([scs_m]);
var gr_i = [];
this.x = standard_define([2,3],this.model,[],gr_i);
diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js
index 2b08ce0f..317254cc 100644
--- a/js/IntegerOp/DLATCH.js
+++ b/js/IntegerOp/DLATCH.js
@@ -27,11 +27,11 @@ function DLATCH() {
this.model.in2 = new ScilabDouble([1],[1]);
this.model.out = new ScilabDouble([1],[1]);
this.model.out2 = new ScilabDouble([1],[1]);
- this.model.intyp = [5,-1];
- this.model.outtyp = [5,5];
+ this.model.intyp = new ScilabDouble([5,-1]);
+ this.model.outtyp = new ScilabDouble([5,5]);
this.model.blocktype = new ScilabString(["h"]);
this.model.firing = new ScilabBoolean([false]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
this.model.rpar = new ScilabDouble([scs_m]);
var gr_i = [];
this.x = standard_define([2,3],this.model,[],gr_i);
diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js
index 5525a5f5..4b6510ec 100644
--- a/js/IntegerOp/EXTRACTBITS.js
+++ b/js/IntegerOp/EXTRACTBITS.js
@@ -10,9 +10,9 @@ function EXTRACTBITS() {
this.model.out2 = new ScilabDouble([1]);
this.model.intyp = new ScilabDouble([3]);
this.model.outtyp = new ScilabDouble([3]);
- this.model.ipar = [0,numb];
+ this.model.ipar = new ScilabDouble([0,numb]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(3)],[sci2exp(1)],[sci2exp(0)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([4,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js
index 14df9421..e15748d6 100644
--- a/js/IntegerOp/INTMUL.js
+++ b/js/IntegerOp/INTMUL.js
@@ -8,12 +8,12 @@ function INTMUL() {
this.model.out = new ScilabDouble([-1]);
this.model.in2 = new ScilabDouble([-2],[-3]);
this.model.out2 = new ScilabDouble([-3]);
- this.model.intyp = [3,3];
+ this.model.intyp = new ScilabDouble([3,3]);
this.model.outtyp = new ScilabDouble([3]);
- this.model.rpar = [];
+ this.model.rpar = new ScilabDouble([]);
this.model.ipar = new ScilabDouble([sgn]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(3)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js
index 79853489..752d1d85 100644
--- a/js/IntegerOp/JKFLIPFLOP.js
+++ b/js/IntegerOp/JKFLIPFLOP.js
@@ -38,11 +38,11 @@ function JKFLIPFLOP() {
this.model.in2 = new ScilabDouble([1],[1],[1]);
this.model.out = new ScilabDouble([1],[1]);
this.model.out2 = new ScilabDouble([1],[1]);
- this.model.intyp = [5,1,5];
- this.model.outtyp = [5,5];
+ this.model.intyp = new ScilabDouble([5,1,5]);
+ this.model.outtyp = new ScilabDouble([5,5]);
this.model.blocktype = new ScilabString(["h"]);
this.model.firing = new ScilabBoolean([false]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
this.model.rpar = new ScilabDouble([scs_m]);
var gr_i = [];
this.x = standard_define([2,3],this.model,[],gr_i);
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index 5a517eb8..97898c8d 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -9,12 +9,12 @@ function LOGIC() {
this.model.out = new ScilabDouble([1]);
this.model.out2 = new ScilabDouble([1]);
this.model.evtin = new ScilabDouble([1]);
- this.model.intyp = [5,5];
+ this.model.intyp = new ScilabDouble([5,5]);
this.model.outtyp = new ScilabDouble([5]);
this.model.opar = list(new ScilabDouble([int8(this.mat)]));
this.model.blocktype = new ScilabString(["c"]);
this.model.firing = new ScilabBoolean([false]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(this.mat)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([2,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js
index ab0de403..5b6a4188 100644
--- a/js/IntegerOp/SHIFT.js
+++ b/js/IntegerOp/SHIFT.js
@@ -11,10 +11,10 @@ function SHIFT() {
this.model.out2 = new ScilabDouble([-2]);
this.model.intyp = new ScilabDouble([3]);
this.model.outtyp = new ScilabDouble([3]);
- this.model.rpar = [];
+ this.model.rpar = new ScilabDouble([]);
this.model.ipar = new ScilabDouble(sgn);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var exprs = [[sci2exp(3)],[sci2exp(0)],[sci2exp(0)]];
var gr_i = [];
this.x = standard_define([3,2],this.model,exprs,gr_i);
diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js
index 3ed06b83..db4dc223 100644
--- a/js/IntegerOp/SRFLIPFLOP.js
+++ b/js/IntegerOp/SRFLIPFLOP.js
@@ -22,11 +22,11 @@ function SRFLIPFLOP() {
this.model.in2 = new ScilabDouble([1],[1]);
this.model.out = new ScilabDouble([1],[1]);
this.model.out2 = new ScilabDouble([1],[1]);
- this.model.intyp = [5,5];
- this.model.outtyp = [5,5];
+ this.model.intyp = new ScilabDouble([5,5]);
+ this.model.outtyp = new ScilabDouble([5,5]);
this.model.blocktype = new ScilabString(["h"]);
this.model.firing = new ScilabBoolean([false]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
this.model.rpar = new ScilabDouble([scs_m]);
var gr_i = [];
this.x = standard_define([2,3],this.model,[],gr_i);