summaryrefslogtreecommitdiff
path: root/js/IntegerOp
diff options
context:
space:
mode:
Diffstat (limited to 'js/IntegerOp')
-rw-r--r--js/IntegerOp/BITCLEAR.js5
-rw-r--r--js/IntegerOp/BITSET.js5
-rw-r--r--js/IntegerOp/CONVERT.js6
-rw-r--r--js/IntegerOp/DFLIPFLOP.js3
-rw-r--r--js/IntegerOp/DLATCH.js3
-rw-r--r--js/IntegerOp/EXTRACTBITS.js7
-rw-r--r--js/IntegerOp/INTMUL.js5
-rw-r--r--js/IntegerOp/JKFLIPFLOP.js3
-rw-r--r--js/IntegerOp/LOGIC.js5
-rw-r--r--js/IntegerOp/SHIFT.js6
-rw-r--r--js/IntegerOp/SRFLIPFLOP.js3
11 files changed, 51 insertions, 0 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js
index 8e73efc6..8ac5590d 100644
--- a/js/IntegerOp/BITCLEAR.js
+++ b/js/IntegerOp/BITCLEAR.js
@@ -21,6 +21,11 @@ function BITCLEAR() {
return this.x;
}
BITCLEAR.prototype.get = function BITCLEAR() {
+ var options = {
+ Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype],
+ bit:["Index of Bit (0 is least significant)",this.bit],
+ }
+ return options;
}
BITCLEAR.prototype.set = function BITCLEAR() {
this.Datatype = parseFloat((arguments[0]["Datatype"]))
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js
index bbd4b339..377c9df6 100644
--- a/js/IntegerOp/BITSET.js
+++ b/js/IntegerOp/BITSET.js
@@ -21,6 +21,11 @@ function BITSET() {
return this.x;
}
BITSET.prototype.get = function BITSET() {
+ var options = {
+ Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype],
+ bit:["Index of Bit (0 is least significant)",this.bit],
+ }
+ return options;
}
BITSET.prototype.set = function BITSET() {
this.Datatype = parseFloat((arguments[0]["Datatype"]))
diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js
index 1e3a7ff9..911af957 100644
--- a/js/IntegerOp/CONVERT.js
+++ b/js/IntegerOp/CONVERT.js
@@ -23,6 +23,12 @@ function CONVERT() {
return this.x;
}
CONVERT.prototype.get = function CONVERT() {
+ var options = {
+ it:["Input Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.it],
+ ot:["Output Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.ot],
+ np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np],
+ }
+ return options;
}
CONVERT.prototype.set = function CONVERT() {
this.it = parseFloat((arguments[0]["it"]))
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js
index 944bddc4..4504f55d 100644
--- a/js/IntegerOp/DFLIPFLOP.js
+++ b/js/IntegerOp/DFLIPFLOP.js
@@ -96,6 +96,9 @@ function DFLIPFLOP() {
return this.x;
}
DFLIPFLOP.prototype.get = function DFLIPFLOP() {
+ var options = {
+ }
+ return options;
}
DFLIPFLOP.prototype.set = function DFLIPFLOP() {
this.x = arg1;
diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js
index 130e2534..2ee55465 100644
--- a/js/IntegerOp/DLATCH.js
+++ b/js/IntegerOp/DLATCH.js
@@ -41,6 +41,9 @@ function DLATCH() {
return this.x;
}
DLATCH.prototype.get = function DLATCH() {
+ var options = {
+ }
+ return options;
}
DLATCH.prototype.set = function DLATCH() {
this.x = arg1;
diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js
index d691751c..737e5acb 100644
--- a/js/IntegerOp/EXTRACTBITS.js
+++ b/js/IntegerOp/EXTRACTBITS.js
@@ -22,6 +22,13 @@ function EXTRACTBITS() {
return this.x;
}
EXTRACTBITS.prototype.get = function EXTRACTBITS() {
+ var options = {
+ Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype],
+ rule:["Bits to extract",this.rule],
+ bit:["Number of Bits or Index of Bit",this.bit],
+ scal:["Treat Bit Field as an Integer (0:No, 1:Yes)",this.scal],
+ }
+ return options;
}
EXTRACTBITS.prototype.set = function EXTRACTBITS() {
this.Datatype = parseFloat((arguments[0]["Datatype"]))
diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js
index b9dd84c9..04a6c6d0 100644
--- a/js/IntegerOp/INTMUL.js
+++ b/js/IntegerOp/INTMUL.js
@@ -23,6 +23,11 @@ function INTMUL() {
return this.x;
}
INTMUL.prototype.get = function INTMUL() {
+ var options = {
+ Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype],
+ np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np],
+ }
+ return options;
}
INTMUL.prototype.set = function INTMUL() {
this.Datatype = parseFloat((arguments[0]["Datatype"]))
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js
index 1b30589e..793a4620 100644
--- a/js/IntegerOp/JKFLIPFLOP.js
+++ b/js/IntegerOp/JKFLIPFLOP.js
@@ -52,6 +52,9 @@ function JKFLIPFLOP() {
return this.x;
}
JKFLIPFLOP.prototype.get = function JKFLIPFLOP() {
+ var options = {
+ }
+ return options;
}
JKFLIPFLOP.prototype.set = function JKFLIPFLOP() {
this.init = parseFloat((arguments[0]["init"]))
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index 20da4fc3..e06ea999 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -24,6 +24,11 @@ function LOGIC() {
return this.x;
}
LOGIC.prototype.get = function LOGIC() {
+ var options = {
+ mat:["Truth Table (matrix of outputs)",this.mat],
+ herit:["Accepts Inherited Events (0:No, 1:Yes)",this.herit],
+ }
+ return options;
}
LOGIC.prototype.set = function LOGIC() {
this.mat = parseFloat((arguments[0]["mat"]))
diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js
index 1006fe5f..6312368d 100644
--- a/js/IntegerOp/SHIFT.js
+++ b/js/IntegerOp/SHIFT.js
@@ -24,6 +24,12 @@ function SHIFT() {
return this.x;
}
SHIFT.prototype.get = function SHIFT() {
+ var options = {
+ Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype],
+ nb:["Number of Bits to Shift Left (Negative number to shift right)",this.nb],
+ np:["Shift Type (0:Arithmetic, 1:Circular)",this.np],
+ }
+ return options;
}
SHIFT.prototype.set = function SHIFT() {
this.Datatype = parseFloat((arguments[0]["Datatype"]))
diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js
index d00d54cb..83b5aee6 100644
--- a/js/IntegerOp/SRFLIPFLOP.js
+++ b/js/IntegerOp/SRFLIPFLOP.js
@@ -36,6 +36,9 @@ function SRFLIPFLOP() {
return this.x;
}
SRFLIPFLOP.prototype.get = function SRFLIPFLOP() {
+ var options = {
+ }
+ return options;
}
SRFLIPFLOP.prototype.set = function SRFLIPFLOP() {
this.init = parseFloat((arguments[0]["init"]))