diff options
Diffstat (limited to 'js/Linear')
36 files changed, 72 insertions, 0 deletions
diff --git a/js/Linear/BIGSOM_f.js b/js/Linear/BIGSOM_f.js index 4376e478..096e388b 100644 --- a/js/Linear/BIGSOM_f.js +++ b/js/Linear/BIGSOM_f.js @@ -12,6 +12,7 @@ function BIGSOM_f() { exprs = sci2exp(sgn); gr_i = []; this.x = standard_define([2,3],model,exprs,gr_i); + return new BasicBlock(this.x); } BIGSOM_f.prototype.details = function BIGSOM_f() { return this.x; @@ -38,5 +39,6 @@ function BIGSOM_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/CLINDUMMY_f.js b/js/Linear/CLINDUMMY_f.js index 448f7ffd..fafdb58d 100644 --- a/js/Linear/CLINDUMMY_f.js +++ b/js/Linear/CLINDUMMY_f.js @@ -10,6 +10,7 @@ function CLINDUMMY_f() { model.dep_ut = [false,true]; gr_i = []; this.x = standard_define([3,2],model,[],gr_i); + return new BasicBlock(this.x); } CLINDUMMY_f.prototype.details = function CLINDUMMY_f() { return this.x; @@ -18,5 +19,6 @@ function CLINDUMMY_f() { } CLINDUMMY_f.prototype.set = function CLINDUMMY_f() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Linear/CLR.js b/js/Linear/CLR.js index 0b3439e8..3d97e275 100644 --- a/js/Linear/CLR.js +++ b/js/Linear/CLR.js @@ -17,6 +17,7 @@ function CLR() { model.dep_ut = [false,true]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } CLR.prototype.details = function CLR() { return this.x; @@ -70,5 +71,6 @@ function CLR() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/CLR_f.js b/js/Linear/CLR_f.js index 72bd2aaa..d9b963d0 100644 --- a/js/Linear/CLR_f.js +++ b/js/Linear/CLR_f.js @@ -17,6 +17,7 @@ function CLR_f() { model.dep_ut = [false,true]; gr_i = []; this.x = standard_define([2.5,2.5],model,exprs,gr_i); + return new BasicBlock(this.x); } CLR_f.prototype.details = function CLR_f() { return this.x; @@ -70,5 +71,6 @@ function CLR_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/CLSS.js b/js/Linear/CLSS.js index 94d9bd4a..86279506 100644 --- a/js/Linear/CLSS.js +++ b/js/Linear/CLSS.js @@ -19,6 +19,7 @@ function CLSS() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } CLSS.prototype.details = function CLSS() { return this.x; @@ -84,5 +85,6 @@ function CLSS() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/CLSS_f.js b/js/Linear/CLSS_f.js index d4c2976a..e30c06fa 100644 --- a/js/Linear/CLSS_f.js +++ b/js/Linear/CLSS_f.js @@ -19,6 +19,7 @@ function CLSS_f() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } CLSS_f.prototype.details = function CLSS_f() { return this.x; @@ -74,5 +75,6 @@ function CLSS_f() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index 44603e1d..622d60b2 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -19,6 +19,7 @@ function DELAYV_f() { exprs = [[string(nin)],[strcat(string(z0.slice(1-1,$-1)),";")],[string(T)]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DELAYV_f.prototype.details = function DELAYV_f() { return this.x; @@ -59,5 +60,6 @@ function DELAYV_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DELAY_f.js b/js/Linear/DELAY_f.js index 0a2a2f83..fb07b5bf 100644 --- a/js/Linear/DELAY_f.js +++ b/js/Linear/DELAY_f.js @@ -63,6 +63,7 @@ function DELAY_f() { this.x.graphics.in_style = ""; this.x.graphics.out_implicit = ["E"]; this.x.graphics.out_style = ""; + return new BasicBlock(this.x); } DELAY_f.prototype.details = function DELAY_f() { return this.x; @@ -125,5 +126,6 @@ function DELAY_f() { needcompile = 0; y = needcompile; typ = newpar; + return new BasicBlock(this.x); } } diff --git a/js/Linear/DERIV.js b/js/Linear/DERIV.js index d8b77628..700141a1 100644 --- a/js/Linear/DERIV.js +++ b/js/Linear/DERIV.js @@ -10,6 +10,7 @@ function DERIV() { exprs = []; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DERIV.prototype.details = function DERIV() { return this.x; @@ -18,5 +19,6 @@ function DERIV() { } DERIV.prototype.set = function DERIV() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index 191e9282..42abb23c 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -12,6 +12,7 @@ function DIFF_c() { exprs = [[strcat(sci2exp(x0[1-1]))],[strcat(sci2exp(x0[2-1]))]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DIFF_c.prototype.details = function DIFF_c() { return this.x; @@ -52,5 +53,6 @@ function DIFF_c() { } } this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/DLR.js b/js/Linear/DLR.js index 39d11022..2b06bb91 100644 --- a/js/Linear/DLR.js +++ b/js/Linear/DLR.js @@ -18,6 +18,7 @@ function DLR() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DLR.prototype.details = function DLR() { return this.x; @@ -69,5 +70,6 @@ function DLR() { } } this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/DLR_f.js b/js/Linear/DLR_f.js index 0bc0dc73..93e2925a 100644 --- a/js/Linear/DLR_f.js +++ b/js/Linear/DLR_f.js @@ -18,6 +18,7 @@ function DLR_f() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2.5,2.5],model,exprs,gr_i); + return new BasicBlock(this.x); } DLR_f.prototype.details = function DLR_f() { return this.x; @@ -69,5 +70,6 @@ function DLR_f() { } } this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js index 56fa6f74..a8d79e8e 100644 --- a/js/Linear/DLSS.js +++ b/js/Linear/DLSS.js @@ -18,6 +18,7 @@ function DLSS() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DLSS.prototype.details = function DLSS() { return this.x; @@ -83,5 +84,6 @@ function DLSS() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DLSS_f.js b/js/Linear/DLSS_f.js index c444ce87..5f138020 100644 --- a/js/Linear/DLSS_f.js +++ b/js/Linear/DLSS_f.js @@ -18,6 +18,7 @@ function DLSS_f() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([4,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DLSS_f.prototype.details = function DLSS_f() { return this.x; @@ -73,5 +74,6 @@ function DLSS_f() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DOLLAR.js b/js/Linear/DOLLAR.js index b4413a70..f5b2186c 100644 --- a/js/Linear/DOLLAR.js +++ b/js/Linear/DOLLAR.js @@ -15,6 +15,7 @@ function DOLLAR() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DOLLAR.prototype.details = function DOLLAR() { return this.x; @@ -87,5 +88,6 @@ function DOLLAR() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js index fb853821..bdb02f50 100644 --- a/js/Linear/DOLLAR_f.js +++ b/js/Linear/DOLLAR_f.js @@ -15,6 +15,7 @@ function DOLLAR_f() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DOLLAR_f.prototype.details = function DOLLAR_f() { return this.x; @@ -52,5 +53,6 @@ function DOLLAR_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/DOLLAR_m.js b/js/Linear/DOLLAR_m.js index 4cd2dfdf..4593731b 100644 --- a/js/Linear/DOLLAR_m.js +++ b/js/Linear/DOLLAR_m.js @@ -15,6 +15,7 @@ function DOLLAR_m() { model.dep_ut = [false,false]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } DOLLAR_m.prototype.details = function DOLLAR_m() { return this.x; @@ -87,5 +88,6 @@ function DOLLAR_m() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index edab742b..54f2883e 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -18,6 +18,7 @@ function GAINBLK() { exprs = [strcat(sci2exp(gain))]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } GAINBLK.prototype.details = function GAINBLK() { return this.x; @@ -144,5 +145,6 @@ function GAINBLK() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/GAINBLK_f.js b/js/Linear/GAINBLK_f.js index 7c574416..cad23a75 100644 --- a/js/Linear/GAINBLK_f.js +++ b/js/Linear/GAINBLK_f.js @@ -14,6 +14,7 @@ function GAINBLK_f() { exprs = [strcat(sci2exp(gain))]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } GAINBLK_f.prototype.details = function GAINBLK_f() { return this.x; @@ -44,5 +45,6 @@ function GAINBLK_f() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/GAIN_f.js b/js/Linear/GAIN_f.js index 4af1dce9..5188382b 100644 --- a/js/Linear/GAIN_f.js +++ b/js/Linear/GAIN_f.js @@ -14,6 +14,7 @@ function GAIN_f() { exprs = [[strcat(sci2exp(gain))],[strcat(sci2exp(in1))],[strcat(sci2exp(out))]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } GAIN_f.prototype.details = function GAIN_f() { return this.x; @@ -44,5 +45,6 @@ function GAIN_f() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js index 4184d619..12b96030 100644 --- a/js/Linear/INTEGRAL.js +++ b/js/Linear/INTEGRAL.js @@ -16,6 +16,7 @@ function INTEGRAL() { gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); this.x.graphics.id = "1/s"; + return new BasicBlock(this.x); } INTEGRAL.prototype.details = function INTEGRAL() { return this.x; @@ -77,5 +78,6 @@ function INTEGRAL() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/INTEGRAL_f.js b/js/Linear/INTEGRAL_f.js index 8867b09b..4f62850c 100644 --- a/js/Linear/INTEGRAL_f.js +++ b/js/Linear/INTEGRAL_f.js @@ -12,6 +12,7 @@ function INTEGRAL_f() { exprs = strcat(sci2exp(x0)); gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } INTEGRAL_f.prototype.details = function INTEGRAL_f() { return this.x; @@ -35,5 +36,6 @@ function INTEGRAL_f() { break; } this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/INTEGRAL_m.js b/js/Linear/INTEGRAL_m.js index f5e0b140..a065917a 100644 --- a/js/Linear/INTEGRAL_m.js +++ b/js/Linear/INTEGRAL_m.js @@ -17,6 +17,7 @@ function INTEGRAL_m() { exprs = string([[0],[0],[0],[maxp],[minp]]); gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } INTEGRAL_m.prototype.details = function INTEGRAL_m() { return this.x; @@ -120,5 +121,6 @@ function INTEGRAL_m() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/PID.js b/js/Linear/PID.js index a1d4d8cd..d4590682 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -37,6 +37,7 @@ function PID() { model.rpar = scs_m; gr_i = []; this.x = standard_define([2,2],model,[],gr_i); + return new BasicBlock(this.x); } PID.prototype.details = function PID() { return this.x; @@ -113,5 +114,6 @@ function PID() { this.x = arg1; y = max(y,needcompile); typ = newpar; + return new BasicBlock(this.x); } } diff --git a/js/Linear/REGISTER.js b/js/Linear/REGISTER.js index cc57e75d..2dac88e7 100644 --- a/js/Linear/REGISTER.js +++ b/js/Linear/REGISTER.js @@ -13,6 +13,7 @@ function REGISTER() { exprs = strcat(string(z0),";"); gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } REGISTER.prototype.details = function REGISTER() { return this.x; @@ -78,5 +79,6 @@ function REGISTER() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/REGISTER_f.js b/js/Linear/REGISTER_f.js index f7d1a3f9..9297f41b 100644 --- a/js/Linear/REGISTER_f.js +++ b/js/Linear/REGISTER_f.js @@ -13,6 +13,7 @@ function REGISTER_f() { exprs = strcat(string(z0),";"); gr_i = []; this.x = standard_define([2.5,2.5],model,exprs,gr_i); + return new BasicBlock(this.x); } REGISTER_f.prototype.details = function REGISTER_f() { return this.x; @@ -41,5 +42,6 @@ function REGISTER_f() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/SAMPHOLD.js b/js/Linear/SAMPHOLD.js index 1df8635a..6f7957f0 100644 --- a/js/Linear/SAMPHOLD.js +++ b/js/Linear/SAMPHOLD.js @@ -11,6 +11,7 @@ function SAMPHOLD() { model.dep_ut = [true,false]; gr_i = []; this.x = standard_define([2,2],model," ",gr_i); + return new BasicBlock(this.x); } SAMPHOLD.prototype.details = function SAMPHOLD() { return this.x; @@ -20,5 +21,6 @@ function SAMPHOLD() { SAMPHOLD.prototype.set = function SAMPHOLD() { this.x = arg1; this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/SAMPHOLD_m.js b/js/Linear/SAMPHOLD_m.js index c661ad7e..7b2c360e 100644 --- a/js/Linear/SAMPHOLD_m.js +++ b/js/Linear/SAMPHOLD_m.js @@ -15,6 +15,7 @@ function SAMPHOLD_m() { label = [sci2exp(1)]; gr_i = []; this.x = standard_define([2,2],model,label,gr_i); + return new BasicBlock(this.x); } SAMPHOLD_m.prototype.details = function SAMPHOLD_m() { return this.x; @@ -48,5 +49,6 @@ function SAMPHOLD_m() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/SAMPLEHOLD_f.js b/js/Linear/SAMPLEHOLD_f.js index 916f2834..9ad513d1 100644 --- a/js/Linear/SAMPLEHOLD_f.js +++ b/js/Linear/SAMPLEHOLD_f.js @@ -11,6 +11,7 @@ function SAMPLEHOLD_f() { model.dep_ut = [true,false]; gr_i = []; this.x = standard_define([2,2],model," ",gr_i); + return new BasicBlock(this.x); } SAMPLEHOLD_f.prototype.details = function SAMPLEHOLD_f() { return this.x; @@ -20,5 +21,6 @@ function SAMPLEHOLD_f() { SAMPLEHOLD_f.prototype.set = function SAMPLEHOLD_f() { this.x = arg1; this.x.model.firing = []; + return new BasicBlock(this.x); } } diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js index 0e4cedcc..1efd0e09 100644 --- a/js/Linear/SOM_f.js +++ b/js/Linear/SOM_f.js @@ -12,6 +12,7 @@ function SOM_f() { exprs = [[sci2exp(1)],[sci2exp(sgn)]]; gr_i = []; this.x = standard_define([2,2],model,exprs,gr_i); + return new BasicBlock(this.x); } SOM_f.prototype.details = function SOM_f() { return this.x; @@ -37,5 +38,6 @@ function SOM_f() { str = [["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block"],["and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]]; str = [[str],[(part(labs.slice(),1,7)+exprs.slice())]]; message(str); + return new BasicBlock(this.x); } } diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js index 4b5481ec..1b2a2efb 100644 --- a/js/Linear/SUMMATION.js +++ b/js/Linear/SUMMATION.js @@ -14,6 +14,7 @@ function SUMMATION() { exprs = sci2exp(sgn); gr_i = []; this.x = standard_define([2,3],model,exprs,gr_i); + return new BasicBlock(this.x); } SUMMATION.prototype.details = function SUMMATION() { return this.x; @@ -134,5 +135,6 @@ function SUMMATION() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/SUM_f.js b/js/Linear/SUM_f.js index a9f25a10..edff7191 100644 --- a/js/Linear/SUM_f.js +++ b/js/Linear/SUM_f.js @@ -10,6 +10,7 @@ function SUM_f() { gr_i = []; exprs = []; this.x = standard_define([1,1],model,exprs,gr_i); + return new BasicBlock(this.x); } SUM_f.prototype.details = function SUM_f() { return this.x; @@ -18,5 +19,6 @@ function SUM_f() { } SUM_f.prototype.set = function SUM_f() { this.x = arg1; + return new BasicBlock(this.x); } } diff --git a/js/Linear/TCLSS.js b/js/Linear/TCLSS.js index e6a19aa3..4d7dfc72 100644 --- a/js/Linear/TCLSS.js +++ b/js/Linear/TCLSS.js @@ -21,6 +21,7 @@ function TCLSS() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } TCLSS.prototype.details = function TCLSS() { return this.x; @@ -81,5 +82,6 @@ function TCLSS() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index fd5483b1..95a6d6bb 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -21,6 +21,7 @@ function TCLSS_f() { exprs = [[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } TCLSS_f.prototype.details = function TCLSS_f() { return this.x; @@ -81,5 +82,6 @@ function TCLSS_f() { } } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js index 8834f518..d90a39e1 100644 --- a/js/Linear/TIME_DELAY.js +++ b/js/Linear/TIME_DELAY.js @@ -16,6 +16,7 @@ function TIME_DELAY() { exprs = [[string(T)],[string(init)],[string(N)]]; gr_i = []; this.x = standard_define([3.5,2],model,exprs,gr_i); + return new BasicBlock(this.x); } TIME_DELAY.prototype.details = function TIME_DELAY() { return this.x; @@ -54,5 +55,6 @@ function TIME_DELAY() { break; } } + return new BasicBlock(this.x); } } diff --git a/js/Linear/VARIABLE_DELAY.js b/js/Linear/VARIABLE_DELAY.js index f1607678..047aa265 100644 --- a/js/Linear/VARIABLE_DELAY.js +++ b/js/Linear/VARIABLE_DELAY.js @@ -16,6 +16,7 @@ function VARIABLE_DELAY() { exprs = [[string(T)],[string(init)],[string(N)]]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } VARIABLE_DELAY.prototype.details = function VARIABLE_DELAY() { return this.x; @@ -53,5 +54,6 @@ function VARIABLE_DELAY() { break; } } + return new BasicBlock(this.x); } } |