summaryrefslogtreecommitdiff
path: root/js/Branching
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching')
-rw-r--r--js/Branching/CLKFROM.js3
-rw-r--r--js/Branching/CLKGOTO.js5
-rw-r--r--js/Branching/CLKGotoTagVisibility.js4
-rw-r--r--js/Branching/DEMUX.js4
-rw-r--r--js/Branching/DEMUX_f.js4
-rw-r--r--js/Branching/ESELECT_f.js6
-rw-r--r--js/Branching/EXTRACTOR.js4
-rw-r--r--js/Branching/FROM.js4
-rw-r--r--js/Branching/FROMMO.js4
-rw-r--r--js/Branching/GOTO.js5
-rw-r--r--js/Branching/GOTOMO.js5
-rw-r--r--js/Branching/GotoTagVisibility.js4
-rw-r--r--js/Branching/GotoTagVisibilityMO.js4
-rw-r--r--js/Branching/ISELECT_f.js5
-rw-r--r--js/Branching/ISELECT_m.js6
-rw-r--r--js/Branching/MUX.js3
-rw-r--r--js/Branching/MUX_f.js3
-rw-r--r--js/Branching/M_SWITCH.js6
-rw-r--r--js/Branching/NRMSOM_f.js4
-rw-r--r--js/Branching/RELAY_f.js5
-rw-r--r--js/Branching/SCALAR2VECTOR.js4
-rw-r--r--js/Branching/SELECT_f.js5
-rw-r--r--js/Branching/SELECT_m.js6
-rw-r--r--js/Branching/SWITCH2.js6
-rw-r--r--js/Branching/SWITCH2_m.js7
-rw-r--r--js/Branching/SWITCH_f.js5
26 files changed, 121 insertions, 0 deletions
diff --git a/js/Branching/CLKFROM.js b/js/Branching/CLKFROM.js
index d4c061d5..74b34549 100644
--- a/js/Branching/CLKFROM.js
+++ b/js/Branching/CLKFROM.js
@@ -17,6 +17,9 @@ function CLKFROM() {
return this.x;
}
CLKFROM.prototype.get = function CLKFROM() {
+ var options = {
+ }
+ return options;
}
CLKFROM.prototype.set = function CLKFROM() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/CLKGOTO.js b/js/Branching/CLKGOTO.js
index 374ac9f4..a1e82830 100644
--- a/js/Branching/CLKGOTO.js
+++ b/js/Branching/CLKGOTO.js
@@ -18,6 +18,11 @@ function CLKGOTO() {
return this.x;
}
CLKGOTO.prototype.get = function CLKGOTO() {
+ var options = {
+ tag:["Tag",this.tag],
+ tagvis:["Tag Visibility (1=Local 2=Scoped 3=Global)",this.tagvis],
+ }
+ return options;
}
CLKGOTO.prototype.set = function CLKGOTO() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/CLKGotoTagVisibility.js b/js/Branching/CLKGotoTagVisibility.js
index aa59d2a5..56ef9617 100644
--- a/js/Branching/CLKGotoTagVisibility.js
+++ b/js/Branching/CLKGotoTagVisibility.js
@@ -23,6 +23,10 @@ function CLKGotoTagVisibility() {
return this.x;
}
CLKGotoTagVisibility.prototype.get = function CLKGotoTagVisibility() {
+ var options = {
+ tag:["GotoTag",this.tag],
+ }
+ return options;
}
CLKGotoTagVisibility.prototype.set = function CLKGotoTagVisibility() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/DEMUX.js b/js/Branching/DEMUX.js
index fdd03c3d..1df1efaa 100644
--- a/js/Branching/DEMUX.js
+++ b/js/Branching/DEMUX.js
@@ -19,6 +19,10 @@ function DEMUX() {
return this.x;
}
DEMUX.prototype.get = function DEMUX() {
+ var options = {
+ out:["number of output ports or vector of sizes",this.out],
+ }
+ return options;
}
DEMUX.prototype.set = function DEMUX() {
this.out = parseFloat((arguments[0]["out"]))
diff --git a/js/Branching/DEMUX_f.js b/js/Branching/DEMUX_f.js
index 5c119c84..f29ff646 100644
--- a/js/Branching/DEMUX_f.js
+++ b/js/Branching/DEMUX_f.js
@@ -19,6 +19,10 @@ function DEMUX_f() {
return this.x;
}
DEMUX_f.prototype.get = function DEMUX_f() {
+ var options = {
+ out:["number of output ports or vector of sizes",this.out],
+ }
+ return options;
}
DEMUX_f.prototype.set = function DEMUX_f() {
this.out = parseFloat((arguments[0]["out"]))
diff --git a/js/Branching/ESELECT_f.js b/js/Branching/ESELECT_f.js
index b14cfccf..85c98ad4 100644
--- a/js/Branching/ESELECT_f.js
+++ b/js/Branching/ESELECT_f.js
@@ -23,6 +23,12 @@ function ESELECT_f() {
return this.x;
}
ESELECT_f.prototype.get = function ESELECT_f() {
+ var options = {
+ out:["number of output event ports",this.out],
+ inh:["Inherit (1: no, 0: yes)",this.inh],
+ nmod:["zero-crossing (0: no, 1: yes)",this.nmod],
+ }
+ return options;
}
ESELECT_f.prototype.set = function ESELECT_f() {
this.out = parseFloat((arguments[0]["out"]))
diff --git a/js/Branching/EXTRACTOR.js b/js/Branching/EXTRACTOR.js
index e49f6001..c00eba54 100644
--- a/js/Branching/EXTRACTOR.js
+++ b/js/Branching/EXTRACTOR.js
@@ -18,6 +18,10 @@ function EXTRACTOR() {
return this.x;
}
EXTRACTOR.prototype.get = function EXTRACTOR() {
+ var options = {
+ ind:["indices to extract",this.ind],
+ }
+ return options;
}
EXTRACTOR.prototype.set = function EXTRACTOR() {
this.ind = parseFloat((arguments[0]["ind"]))
diff --git a/js/Branching/FROM.js b/js/Branching/FROM.js
index 1f8f9b25..d24038a3 100644
--- a/js/Branching/FROM.js
+++ b/js/Branching/FROM.js
@@ -23,6 +23,10 @@ function FROM() {
return this.x;
}
FROM.prototype.get = function FROM() {
+ var options = {
+ tag:["Tag",this.tag],
+ }
+ return options;
}
FROM.prototype.set = function FROM() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/FROMMO.js b/js/Branching/FROMMO.js
index e115ad8e..2c695023 100644
--- a/js/Branching/FROMMO.js
+++ b/js/Branching/FROMMO.js
@@ -26,6 +26,10 @@ function FROMMO() {
return this.x;
}
FROMMO.prototype.get = function FROMMO() {
+ var options = {
+ tag:["Tag",this.tag],
+ }
+ return options;
}
FROMMO.prototype.set = function FROMMO() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js
index e2ad0a6b..766a5206 100644
--- a/js/Branching/GOTO.js
+++ b/js/Branching/GOTO.js
@@ -23,6 +23,11 @@ function GOTO() {
return this.x;
}
GOTO.prototype.get = function GOTO() {
+ var options = {
+ tag:["Tag",this.tag],
+ tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis],
+ }
+ return options;
}
GOTO.prototype.set = function GOTO() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/GOTOMO.js b/js/Branching/GOTOMO.js
index 8f07146f..91c5305b 100644
--- a/js/Branching/GOTOMO.js
+++ b/js/Branching/GOTOMO.js
@@ -26,6 +26,11 @@ function GOTOMO() {
return this.x;
}
GOTOMO.prototype.get = function GOTOMO() {
+ var options = {
+ tag:["Tag",this.tag],
+ tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis],
+ }
+ return options;
}
GOTOMO.prototype.set = function GOTOMO() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/GotoTagVisibility.js b/js/Branching/GotoTagVisibility.js
index c3281e81..10491dd0 100644
--- a/js/Branching/GotoTagVisibility.js
+++ b/js/Branching/GotoTagVisibility.js
@@ -23,6 +23,10 @@ function GotoTagVisibility() {
return this.x;
}
GotoTagVisibility.prototype.get = function GotoTagVisibility() {
+ var options = {
+ tag:["GotoTag",this.tag],
+ }
+ return options;
}
GotoTagVisibility.prototype.set = function GotoTagVisibility() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/GotoTagVisibilityMO.js b/js/Branching/GotoTagVisibilityMO.js
index 2aa6313d..0dfb2150 100644
--- a/js/Branching/GotoTagVisibilityMO.js
+++ b/js/Branching/GotoTagVisibilityMO.js
@@ -23,6 +23,10 @@ function GotoTagVisibilityMO() {
return this.x;
}
GotoTagVisibilityMO.prototype.get = function GotoTagVisibilityMO() {
+ var options = {
+ tag:["GotoTag",this.tag],
+ }
+ return options;
}
GotoTagVisibilityMO.prototype.set = function GotoTagVisibilityMO() {
this.tag = parseFloat((arguments[0]["tag"]))
diff --git a/js/Branching/ISELECT_f.js b/js/Branching/ISELECT_f.js
index 75f6e8ab..4f4a796a 100644
--- a/js/Branching/ISELECT_f.js
+++ b/js/Branching/ISELECT_f.js
@@ -21,6 +21,11 @@ function ISELECT_f() {
return this.x;
}
ISELECT_f.prototype.get = function ISELECT_f() {
+ var options = {
+ nout:["number of outputs",this.nout],
+ z0:["initial connected output",this.z0],
+ }
+ return options;
}
ISELECT_f.prototype.set = function ISELECT_f() {
this.nout = parseFloat((arguments[0]["nout"]))
diff --git a/js/Branching/ISELECT_m.js b/js/Branching/ISELECT_m.js
index 79160d88..be6715a6 100644
--- a/js/Branching/ISELECT_m.js
+++ b/js/Branching/ISELECT_m.js
@@ -29,6 +29,12 @@ function ISELECT_m() {
return this.x;
}
ISELECT_m.prototype.get = function ISELECT_m() {
+ var options = {
+ typ:["Datatype(1= real double 2=Complex 3=int32 ...)",this.typ],
+ nout:["number of outputs",this.nout],
+ z0:["initial connected output",this.z0],
+ }
+ return options;
}
ISELECT_m.prototype.set = function ISELECT_m() {
this.typ = parseFloat((arguments[0]["typ"]))
diff --git a/js/Branching/MUX.js b/js/Branching/MUX.js
index 77e11ce7..60099a23 100644
--- a/js/Branching/MUX.js
+++ b/js/Branching/MUX.js
@@ -18,6 +18,9 @@ function MUX() {
return this.x;
}
MUX.prototype.get = function MUX() {
+ var options = {
+ }
+ return options;
}
MUX.prototype.set = function MUX() {
this.in1 = parseFloat((arguments[0]["in1"]))
diff --git a/js/Branching/MUX_f.js b/js/Branching/MUX_f.js
index aa468b8d..1d003c87 100644
--- a/js/Branching/MUX_f.js
+++ b/js/Branching/MUX_f.js
@@ -18,6 +18,9 @@ function MUX_f() {
return this.x;
}
MUX_f.prototype.get = function MUX_f() {
+ var options = {
+ }
+ return options;
}
MUX_f.prototype.set = function MUX_f() {
this.in1 = parseFloat((arguments[0]["in1"]))
diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js
index eae88075..4c531d1b 100644
--- a/js/Branching/M_SWITCH.js
+++ b/js/Branching/M_SWITCH.js
@@ -20,6 +20,12 @@ function M_SWITCH() {
return this.x;
}
M_SWITCH.prototype.get = function M_SWITCH() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ base:["zero base indexing (0), otherwise 1",this.base],
+ rule:["rounding rule: int (0), round (1), ceil (2), floor (3)",this.rule],
+ }
+ return options;
}
M_SWITCH.prototype.set = function M_SWITCH() {
this.nin = parseFloat((arguments[0]["nin"]))
diff --git a/js/Branching/NRMSOM_f.js b/js/Branching/NRMSOM_f.js
index b889425e..9878558c 100644
--- a/js/Branching/NRMSOM_f.js
+++ b/js/Branching/NRMSOM_f.js
@@ -18,6 +18,10 @@ function NRMSOM_f() {
return this.x;
}
NRMSOM_f.prototype.get = function NRMSOM_f() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ }
+ return options;
}
NRMSOM_f.prototype.set = function NRMSOM_f() {
this.nin = parseFloat((arguments[0]["nin"]))
diff --git a/js/Branching/RELAY_f.js b/js/Branching/RELAY_f.js
index a052e002..190b4621 100644
--- a/js/Branching/RELAY_f.js
+++ b/js/Branching/RELAY_f.js
@@ -22,6 +22,11 @@ function RELAY_f() {
return this.x;
}
RELAY_f.prototype.get = function RELAY_f() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ z0:["initial connected input",this.z0],
+ }
+ return options;
}
RELAY_f.prototype.set = function RELAY_f() {
this.nin = parseFloat((arguments[0]["nin"]))
diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js
index aac90b54..71373eaf 100644
--- a/js/Branching/SCALAR2VECTOR.js
+++ b/js/Branching/SCALAR2VECTOR.js
@@ -17,6 +17,10 @@ function SCALAR2VECTOR() {
return this.x;
}
SCALAR2VECTOR.prototype.get = function SCALAR2VECTOR() {
+ var options = {
+ nout:["size of output (-1: if don\'t know)",this.nout],
+ }
+ return options;
}
SCALAR2VECTOR.prototype.set = function SCALAR2VECTOR() {
this.nout = parseFloat((arguments[0]["nout"]))
diff --git a/js/Branching/SELECT_f.js b/js/Branching/SELECT_f.js
index ce3023cc..3a64bc60 100644
--- a/js/Branching/SELECT_f.js
+++ b/js/Branching/SELECT_f.js
@@ -21,6 +21,11 @@ function SELECT_f() {
return this.x;
}
SELECT_f.prototype.get = function SELECT_f() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ z0:["initial connected input",this.z0],
+ }
+ return options;
}
SELECT_f.prototype.set = function SELECT_f() {
this.nin = parseFloat((arguments[0]["nin"]))
diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js
index 0e804219..142aa8b0 100644
--- a/js/Branching/SELECT_m.js
+++ b/js/Branching/SELECT_m.js
@@ -29,6 +29,12 @@ function SELECT_m() {
return this.x;
}
SELECT_m.prototype.get = function SELECT_m() {
+ var options = {
+ typ:["Datatype(1= real double 2=Complex 3=int32 ..)",this.typ],
+ nin:["number of inputs",this.nin],
+ z0:["initial connected input",this.z0],
+ }
+ return options;
}
SELECT_m.prototype.set = function SELECT_m() {
this.typ = parseFloat((arguments[0]["typ"]))
diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js
index 8fb48bf5..3b338dc2 100644
--- a/js/Branching/SWITCH2.js
+++ b/js/Branching/SWITCH2.js
@@ -24,6 +24,12 @@ function SWITCH2() {
return this.x;
}
SWITCH2.prototype.get = function SWITCH2() {
+ var options = {
+ rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule],
+ thra:["threshold a",this.thra],
+ nzz:["use zero crossing: yes (1), no (0)",this.nzz],
+ }
+ return options;
}
SWITCH2.prototype.set = function SWITCH2() {
this.rule = parseFloat((arguments[0]["rule"]))
diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js
index ba08a2b6..c386ff62 100644
--- a/js/Branching/SWITCH2_m.js
+++ b/js/Branching/SWITCH2_m.js
@@ -27,6 +27,13 @@ function SWITCH2_m() {
return this.x;
}
SWITCH2_m.prototype.get = function SWITCH2_m() {
+ var options = {
+ ot:["Datatype (1=real double 2=complex 3=int32 ...)",this.ot],
+ rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule],
+ thra:["threshold a",this.thra],
+ nzz:["use zero crossing: yes (1), no (0)",this.nzz],
+ }
+ return options;
}
SWITCH2_m.prototype.set = function SWITCH2_m() {
this.ot = parseFloat((arguments[0]["ot"]))
diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js
index fff0ed00..61347cf2 100644
--- a/js/Branching/SWITCH_f.js
+++ b/js/Branching/SWITCH_f.js
@@ -21,6 +21,11 @@ function SWITCH_f() {
return this.x;
}
SWITCH_f.prototype.get = function SWITCH_f() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ z0:["connected input",this.z0],
+ }
+ return options;
}
SWITCH_f.prototype.set = function SWITCH_f() {
this.nin = parseFloat((arguments[0]["nin"]))