summaryrefslogtreecommitdiff
path: root/js/IntegerOp
diff options
context:
space:
mode:
authorSunil Shetye2018-09-17 16:11:31 +0530
committerSunil Shetye2018-10-08 11:24:12 +0530
commitf389f174481df676c841ebcc87a7b8b313921bbc (patch)
tree2551fd05222a78d4441f5883a97980bda1d6b241 /js/IntegerOp
parent4dc055ae23c9e33e459b7b583a67f92b5972a062 (diff)
downloadsci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.gz
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.bz2
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.zip
add importset and getContainer to combined.js
Diffstat (limited to 'js/IntegerOp')
-rw-r--r--js/IntegerOp/BITCLEAR.js7
-rw-r--r--js/IntegerOp/BITSET.js7
-rw-r--r--js/IntegerOp/CONVERT.js8
-rw-r--r--js/IntegerOp/DFLIPFLOP.js1
-rw-r--r--js/IntegerOp/DLATCH.js1
-rw-r--r--js/IntegerOp/EXTRACTBITS.js9
-rw-r--r--js/IntegerOp/INTMUL.js7
-rw-r--r--js/IntegerOp/JKFLIPFLOP.js6
-rw-r--r--js/IntegerOp/LOGIC.js7
-rw-r--r--js/IntegerOp/SHIFT.js8
-rw-r--r--js/IntegerOp/SRFLIPFLOP.js6
11 files changed, 67 insertions, 0 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js
index a22a133c..24cbcb70 100644
--- a/js/IntegerOp/BITCLEAR.js
+++ b/js/IntegerOp/BITCLEAR.js
@@ -99,4 +99,11 @@ function BITCLEAR() {
BITCLEAR.prototype.get_popup_title = function BITCLEAR() {
return this.set_param_popup_title;
}
+ BITCLEAR.prototype.importset = function BITCLEAR() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.Datatype = ary[0];
+ this.bit = ary[1];
+ }
+ BITCLEAR.prototype.getContainer = function BITCLEAR() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js
index 46a5273b..fa2e3276 100644
--- a/js/IntegerOp/BITSET.js
+++ b/js/IntegerOp/BITSET.js
@@ -97,4 +97,11 @@ function BITSET() {
BITSET.prototype.get_popup_title = function BITSET() {
return this.set_param_popup_title;
}
+ BITSET.prototype.importset = function BITSET() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.Datatype = ary[0];
+ this.bit = ary[1];
+ }
+ BITSET.prototype.getContainer = function BITSET() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js
index be253a0c..6aeb796a 100644
--- a/js/IntegerOp/CONVERT.js
+++ b/js/IntegerOp/CONVERT.js
@@ -385,4 +385,12 @@ function CONVERT() {
CONVERT.prototype.get_popup_title = function CONVERT() {
return this.set_param_popup_title;
}
+ CONVERT.prototype.importset = function CONVERT() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.it = ary[0];
+ this.ot = ary[1];
+ this.np = ary[2];
+ }
+ CONVERT.prototype.getContainer = function CONVERT() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js
index e73cbdff..c68f3309 100644
--- a/js/IntegerOp/DFLIPFLOP.js
+++ b/js/IntegerOp/DFLIPFLOP.js
@@ -104,4 +104,5 @@ function DFLIPFLOP() {
DFLIPFLOP.prototype.get_popup_title = function DFLIPFLOP() {
return;
}
+ DFLIPFLOP.prototype.getContainer = function DFLIPFLOP() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js
index 3db5ca98..298fd58d 100644
--- a/js/IntegerOp/DLATCH.js
+++ b/js/IntegerOp/DLATCH.js
@@ -49,4 +49,5 @@ function DLATCH() {
DLATCH.prototype.get_popup_title = function DLATCH() {
return;
}
+ DLATCH.prototype.getContainer = function DLATCH() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js
index 805f0e68..9169912e 100644
--- a/js/IntegerOp/EXTRACTBITS.js
+++ b/js/IntegerOp/EXTRACTBITS.js
@@ -246,4 +246,13 @@ function EXTRACTBITS() {
EXTRACTBITS.prototype.get_popup_title = function EXTRACTBITS() {
return this.set_param_popup_title;
}
+ EXTRACTBITS.prototype.importset = function EXTRACTBITS() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.Datatype = ary[0];
+ this.rule = ary[1];
+ this.bit = ary[2];
+ this.scal = ary[3];
+ }
+ EXTRACTBITS.prototype.getContainer = function EXTRACTBITS() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js
index ed5a179e..846423e9 100644
--- a/js/IntegerOp/INTMUL.js
+++ b/js/IntegerOp/INTMUL.js
@@ -119,4 +119,11 @@ function INTMUL() {
INTMUL.prototype.get_popup_title = function INTMUL() {
return this.set_param_popup_title;
}
+ INTMUL.prototype.importset = function INTMUL() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.Datatype = ary[0];
+ this.np = ary[1];
+ }
+ INTMUL.prototype.getContainer = function INTMUL() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js
index a4c3d615..5589328a 100644
--- a/js/IntegerOp/JKFLIPFLOP.js
+++ b/js/IntegerOp/JKFLIPFLOP.js
@@ -115,4 +115,10 @@ function JKFLIPFLOP() {
JKFLIPFLOP.prototype.get_popup_title = function JKFLIPFLOP() {
return this.set_param_popup_title;
}
+ JKFLIPFLOP.prototype.importset = function JKFLIPFLOP() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.init = ary[0];
+ }
+ JKFLIPFLOP.prototype.getContainer = function JKFLIPFLOP() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index 8575f03d..72aa91c3 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -79,4 +79,11 @@ function LOGIC() {
LOGIC.prototype.get_popup_title = function LOGIC() {
return this.set_param_popup_title;
}
+ LOGIC.prototype.importset = function LOGIC() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.mat = ary[0];
+ this.herit = ary[1];
+ }
+ LOGIC.prototype.getContainer = function LOGIC() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js
index 21285d80..dfdf4b74 100644
--- a/js/IntegerOp/SHIFT.js
+++ b/js/IntegerOp/SHIFT.js
@@ -136,4 +136,12 @@ function SHIFT() {
SHIFT.prototype.get_popup_title = function SHIFT() {
return this.set_param_popup_title;
}
+ SHIFT.prototype.importset = function SHIFT() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.Datatype = ary[0];
+ this.nb = ary[1];
+ this.np = ary[2];
+ }
+ SHIFT.prototype.getContainer = function SHIFT() { return new BasicBlock(this.x); }
}
diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js
index fbd3038b..c621ccd2 100644
--- a/js/IntegerOp/SRFLIPFLOP.js
+++ b/js/IntegerOp/SRFLIPFLOP.js
@@ -99,4 +99,10 @@ function SRFLIPFLOP() {
SRFLIPFLOP.prototype.get_popup_title = function SRFLIPFLOP() {
return this.set_param_popup_title;
}
+ SRFLIPFLOP.prototype.importset = function SRFLIPFLOP() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.init = ary[0];
+ }
+ SRFLIPFLOP.prototype.getContainer = function SRFLIPFLOP() { return new BasicBlock(this.x); }
}