diff options
Diffstat (limited to 'js/IntegerOp')
-rw-r--r-- | js/IntegerOp/BITCLEAR.js | 36 | ||||
-rw-r--r-- | js/IntegerOp/BITSET.js | 36 | ||||
-rw-r--r-- | js/IntegerOp/CONVERT.js | 40 | ||||
-rw-r--r-- | js/IntegerOp/DFLIPFLOP.js | 10 | ||||
-rw-r--r-- | js/IntegerOp/DLATCH.js | 10 | ||||
-rw-r--r-- | js/IntegerOp/EXTRACTBITS.js | 38 | ||||
-rw-r--r-- | js/IntegerOp/INTMUL.js | 40 | ||||
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 84 | ||||
-rw-r--r-- | js/IntegerOp/LOGIC.js | 42 | ||||
-rw-r--r-- | js/IntegerOp/SHIFT.js | 42 | ||||
-rw-r--r-- | js/IntegerOp/SRFLIPFLOP.js | 66 |
11 files changed, 222 insertions, 222 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js index 72cb52e1..8190422e 100644 --- a/js/IntegerOp/BITCLEAR.js +++ b/js/IntegerOp/BITCLEAR.js @@ -1,5 +1,23 @@ /* autogenerated from "macros/IntegerOp/BITCLEAR.sci" */ function BITCLEAR() { +BITCLEAR.prototype.define = function BITCLEAR() { +model=scicos_model(); +model.sim=list("bit_clear_32",4); +model.in1=1; +model.in2=1; +model.out=1; +model.out2=1; +model.intyp=3; +model.outtyp=3; +model.opar=list(int32(0)); +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(3),sci2exp(0)]; +gr_i=[]; +x=standard_define([4,2],model,exprs,gr_i); +} +BITCLEAR.prototype.details = function BITCLEAR() { +} BITCLEAR.prototype.get = function BITCLEAR() { } BITCLEAR.prototype.set = function BITCLEAR() { @@ -65,22 +83,4 @@ break } } } -BITCLEAR.prototype.define = function BITCLEAR() { -model=scicos_model(); -model.sim=list("bit_clear_32",4); -model.in1=1; -model.in2=1; -model.out=1; -model.out2=1; -model.intyp=3; -model.outtyp=3; -model.opar=list(int32(0)); -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(3),sci2exp(0)]; -gr_i=[]; -x=standard_define([4,2],model,exprs,gr_i); -} -BITCLEAR.prototype.details = function BITCLEAR() { -} } diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js index 0093f90e..58e2ad4d 100644 --- a/js/IntegerOp/BITSET.js +++ b/js/IntegerOp/BITSET.js @@ -1,5 +1,23 @@ /* autogenerated from "macros/IntegerOp/BITSET.sci" */ function BITSET() { +BITSET.prototype.define = function BITSET() { +model=scicos_model(); +model.sim=list("bit_set_32",4); +model.in1=1; +model.in2=1; +model.out=1; +model.out2=1; +model.intyp=3; +model.outtyp=3; +model.opar=list(uint32(0)); +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(3),sci2exp(0)]; +gr_i=[]; +x=standard_define([4,2],model,exprs,gr_i); +} +BITSET.prototype.details = function BITSET() { +} BITSET.prototype.get = function BITSET() { } BITSET.prototype.set = function BITSET() { @@ -63,22 +81,4 @@ break } } } -BITSET.prototype.define = function BITSET() { -model=scicos_model(); -model.sim=list("bit_set_32",4); -model.in1=1; -model.in2=1; -model.out=1; -model.out2=1; -model.intyp=3; -model.outtyp=3; -model.opar=list(uint32(0)); -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(3),sci2exp(0)]; -gr_i=[]; -x=standard_define([4,2],model,exprs,gr_i); -} -BITSET.prototype.details = function BITSET() { -} } diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js index 38711c97..9faa0876 100644 --- a/js/IntegerOp/CONVERT.js +++ b/js/IntegerOp/CONVERT.js @@ -1,5 +1,25 @@ /* autogenerated from "macros/IntegerOp/CONVERT.sci" */ function CONVERT() { +CONVERT.prototype.define = function CONVERT() { +sgn=2; +model=scicos_model(); +model.sim=list("convert",4); +model.in1=-1; +model.out=-1; +model.in2=-2; +model.out2=-2; +model.intyp=1; +model.outtyp=3; +model.rpar=[]; +model.ipar=sgn; +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(1),sci2exp(3),sci2exp(0)]; +gr_i=[]; +x=standard_define([3,2],model,exprs,gr_i); +} +CONVERT.prototype.details = function CONVERT() { +} CONVERT.prototype.get = function CONVERT() { } CONVERT.prototype.set = function CONVERT() { @@ -347,24 +367,4 @@ break } } } -CONVERT.prototype.define = function CONVERT() { -sgn=2; -model=scicos_model(); -model.sim=list("convert",4); -model.in1=-1; -model.out=-1; -model.in2=-2; -model.out2=-2; -model.intyp=1; -model.outtyp=3; -model.rpar=[]; -model.ipar=sgn; -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(1),sci2exp(3),sci2exp(0)]; -gr_i=[]; -x=standard_define([3,2],model,exprs,gr_i); -} -CONVERT.prototype.details = function CONVERT() { -} } diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js index d4b11eb5..4fc05802 100644 --- a/js/IntegerOp/DFLIPFLOP.js +++ b/js/IntegerOp/DFLIPFLOP.js @@ -1,10 +1,5 @@ /* autogenerated from "macros/IntegerOp/DFLIPFLOP.sci" */ function DFLIPFLOP() { -DFLIPFLOP.prototype.get = function DFLIPFLOP() { -} -DFLIPFLOP.prototype.set = function DFLIPFLOP() { -x=arg1; -} DFLIPFLOP.prototype.define = function DFLIPFLOP() { scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DFLIPFLOP"],tol=[0.0001,0.000001,1.000e-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m.objs[1-1]=scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20,20],flip=true,theta=0,exprs="int8(0)",pin=[],pout=6,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8(0)),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -98,4 +93,9 @@ x=standard_define([2,3],model,[],gr_i); } DFLIPFLOP.prototype.details = function DFLIPFLOP() { } +DFLIPFLOP.prototype.get = function DFLIPFLOP() { +} +DFLIPFLOP.prototype.set = function DFLIPFLOP() { +x=arg1; +} } diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js index 54ada8ae..deea0a7f 100644 --- a/js/IntegerOp/DLATCH.js +++ b/js/IntegerOp/DLATCH.js @@ -1,10 +1,5 @@ /* autogenerated from "macros/IntegerOp/DLATCH.sci" */ function DLATCH() { -DLATCH.prototype.get = function DLATCH() { -} -DLATCH.prototype.set = function DLATCH() { -x=arg1; -} DLATCH.prototype.define = function DLATCH() { scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["DLATCH"],tol=[0.0001,0.000001,1.000e-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m.objs[1-1]=scicos_block(gui="CONST_m",graphics=scicos_graphics(orig=[109.62561,263.44465],sz=[20,20],flip=true,theta=0,exprs="int8(0)",pin=[],pout=7,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim=list("cstblk4_m",4),in1=[],in2=[],intyp=1,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8(0)),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -43,4 +38,9 @@ x=standard_define([2,3],model,[],gr_i); } DLATCH.prototype.details = function DLATCH() { } +DLATCH.prototype.get = function DLATCH() { +} +DLATCH.prototype.set = function DLATCH() { +x=arg1; +} } diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js index 35b709c3..54ed45e7 100644 --- a/js/IntegerOp/EXTRACTBITS.js +++ b/js/IntegerOp/EXTRACTBITS.js @@ -1,5 +1,24 @@ /* autogenerated from "macros/IntegerOp/EXTRACTBITS.sci" */ function EXTRACTBITS() { +EXTRACTBITS.prototype.define = function EXTRACTBITS() { +numb=[]; +model=scicos_model(); +model.sim=list("extract_bit_32_UH0",4); +model.in1=1; +model.in2=1; +model.out=1; +model.out2=1; +model.intyp=3; +model.outtyp=3; +model.ipar=[0,numb]; +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(3),sci2exp(1),sci2exp(0),sci2exp(0)]; +gr_i=[]; +x=standard_define([4,2],model,exprs,gr_i); +} +EXTRACTBITS.prototype.details = function EXTRACTBITS() { +} EXTRACTBITS.prototype.get = function EXTRACTBITS() { } EXTRACTBITS.prototype.set = function EXTRACTBITS() { @@ -207,23 +226,4 @@ break } } } -EXTRACTBITS.prototype.define = function EXTRACTBITS() { -numb=[]; -model=scicos_model(); -model.sim=list("extract_bit_32_UH0",4); -model.in1=1; -model.in2=1; -model.out=1; -model.out2=1; -model.intyp=3; -model.outtyp=3; -model.ipar=[0,numb]; -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(3),sci2exp(1),sci2exp(0),sci2exp(0)]; -gr_i=[]; -x=standard_define([4,2],model,exprs,gr_i); -} -EXTRACTBITS.prototype.details = function EXTRACTBITS() { -} } diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js index 23ebfbae..cf1c0b4b 100644 --- a/js/IntegerOp/INTMUL.js +++ b/js/IntegerOp/INTMUL.js @@ -1,5 +1,25 @@ /* autogenerated from "macros/IntegerOp/INTMUL.sci" */ function INTMUL() { +INTMUL.prototype.define = function INTMUL() { +sgn=0; +model=scicos_model(); +model.sim=list("matmul_i32",4); +model.in1=[-1,-2]; +model.out=-1; +model.in2=[-2,-3]; +model.out2=-3; +model.intyp=[3,3]; +model.outtyp=3; +model.rpar=[]; +model.ipar=sgn; +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(3),sci2exp(0)]; +gr_i=[]; +x=standard_define([2,2],model,exprs,gr_i); +} +INTMUL.prototype.details = function INTMUL() { +} INTMUL.prototype.get = function INTMUL() { } INTMUL.prototype.set = function INTMUL() { @@ -83,24 +103,4 @@ break } } } -INTMUL.prototype.define = function INTMUL() { -sgn=0; -model=scicos_model(); -model.sim=list("matmul_i32",4); -model.in1=[-1,-2]; -model.out=-1; -model.in2=[-2,-3]; -model.out2=-3; -model.intyp=[3,3]; -model.outtyp=3; -model.rpar=[]; -model.ipar=sgn; -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(3),sci2exp(0)]; -gr_i=[]; -x=standard_define([2,2],model,exprs,gr_i); -} -INTMUL.prototype.details = function INTMUL() { -} } diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index 311198a0..6e27be91 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -1,47 +1,5 @@ /* autogenerated from "macros/IntegerOp/JKFLIPFLOP.sci" */ function JKFLIPFLOP() { -JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { -} -JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { -for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { -o=arg1.model.rpar.objs(i); -if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { -path=i; -break -} -} -newpar=list(); -xx=arg1.model.rpar.objs(path); -exprs=xx.graphics.exprs(1); -model=xx.model; -init_old=model.odstate(1); -while (true) { -[ok,init,exprs0]=scicos_getvalue([msprintf(gettext("Set %s block parameters"),"JKFLIPFLOP")," ",gettext("JK flip-flop")," ",gettext("The \'Initial Value\' must be 0 or 1 of type int8"),gettext(" - Negative values are considered as int8(0)"),gettext(" - Positive values are considered as int8(1)")," "],gettext("Initial Value"),list("vec",1),exprs); -if (!ok) { -break -} -if (init<=0) { -init=int8(0); -} else if (init>0) { -init=int8(1); -} -if (ok) { -xx.graphics.exprs[1-1]=exprs0; -model.odstate[1-1]=init; -xx.model=model; -arg1.model.rpar.objs[path-1]=xx; -break -} -} -needcompile=0; -if (init_old!=init) { -newpar[size(newpar)+1-1]=1; -needcompile=2; -} -x=arg1; -y=needcompile; -typ=newpar; -} JKFLIPFLOP.prototype.define = function JKFLIPFLOP() { scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["JKFLIPFLOP"],tol=[0.0001,0.000001,1.000e-10,100001,0,0,0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m.objs[1-1]=scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.96961,261.584],sz=[40,40],flip=false,theta=0,exprs=["int8(0)","1"],pin=7,pout=5,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(int8(0)),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -91,4 +49,46 @@ x=standard_define([2,3],model,[],gr_i); } JKFLIPFLOP.prototype.details = function JKFLIPFLOP() { } +JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { +} +JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { +for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { +o=arg1.model.rpar.objs(i); +if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { +path=i; +break +} +} +newpar=list(); +xx=arg1.model.rpar.objs(path); +exprs=xx.graphics.exprs(1); +model=xx.model; +init_old=model.odstate(1); +while (true) { +[ok,init,exprs0]=scicos_getvalue([msprintf(gettext("Set %s block parameters"),"JKFLIPFLOP")," ",gettext("JK flip-flop")," ",gettext("The \'Initial Value\' must be 0 or 1 of type int8"),gettext(" - Negative values are considered as int8(0)"),gettext(" - Positive values are considered as int8(1)")," "],gettext("Initial Value"),list("vec",1),exprs); +if (!ok) { +break +} +if (init<=0) { +init=int8(0); +} else if (init>0) { +init=int8(1); +} +if (ok) { +xx.graphics.exprs[1-1]=exprs0; +model.odstate[1-1]=init; +xx.model=model; +arg1.model.rpar.objs[path-1]=xx; +break +} +} +needcompile=0; +if (init_old!=init) { +newpar[size(newpar)+1-1]=1; +needcompile=2; +} +x=arg1; +y=needcompile; +typ=newpar; +} } diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js index d75902f8..a94c7b2a 100644 --- a/js/IntegerOp/LOGIC.js +++ b/js/IntegerOp/LOGIC.js @@ -1,5 +1,26 @@ /* autogenerated from "macros/IntegerOp/LOGIC.sci" */ function LOGIC() { +LOGIC.prototype.define = function LOGIC() { +mat=[0,0,0,1]; +model=scicos_model(); +model.sim=list("logic",4); +model.in1=[1,1]; +model.in2=[1,1]; +model.out=1; +model.out2=1; +model.evtin=1; +model.intyp=[5,5]; +model.outtyp=5; +model.opar=list(int8(mat)); +model.blocktype="c"; +model.firing=false; +model.dep_ut=[true,false]; +exprs=[sci2exp(mat),sci2exp(0)]; +gr_i=[]; +x=standard_define([2,2],model,exprs,gr_i); +} +LOGIC.prototype.details = function LOGIC() { +} LOGIC.prototype.get = function LOGIC() { } LOGIC.prototype.set = function LOGIC() { @@ -42,25 +63,4 @@ break } } } -LOGIC.prototype.define = function LOGIC() { -mat=[0,0,0,1]; -model=scicos_model(); -model.sim=list("logic",4); -model.in1=[1,1]; -model.in2=[1,1]; -model.out=1; -model.out2=1; -model.evtin=1; -model.intyp=[5,5]; -model.outtyp=5; -model.opar=list(int8(mat)); -model.blocktype="c"; -model.firing=false; -model.dep_ut=[true,false]; -exprs=[sci2exp(mat),sci2exp(0)]; -gr_i=[]; -x=standard_define([2,2],model,exprs,gr_i); -} -LOGIC.prototype.details = function LOGIC() { -} } diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js index 3500c007..48bc9d66 100644 --- a/js/IntegerOp/SHIFT.js +++ b/js/IntegerOp/SHIFT.js @@ -1,5 +1,26 @@ /* autogenerated from "macros/IntegerOp/SHIFT.sci" */ function SHIFT() { +SHIFT.prototype.define = function SHIFT() { +sgn=[0,0]; +OPER=0; +model=scicos_model(); +model.sim=list("shift_32_LA",4); +model.in1=-1; +model.out=-1; +model.in2=-2; +model.out2=-2; +model.intyp=3; +model.outtyp=3; +model.rpar=[]; +model.ipar=sgn; +model.blocktype="c"; +model.dep_ut=[true,false]; +exprs=[sci2exp(3),sci2exp(0),sci2exp(0)]; +gr_i=[]; +x=standard_define([3,2],model,exprs,gr_i); +} +SHIFT.prototype.details = function SHIFT() { +} SHIFT.prototype.get = function SHIFT() { } SHIFT.prototype.set = function SHIFT() { @@ -97,25 +118,4 @@ break } } } -SHIFT.prototype.define = function SHIFT() { -sgn=[0,0]; -OPER=0; -model=scicos_model(); -model.sim=list("shift_32_LA",4); -model.in1=-1; -model.out=-1; -model.in2=-2; -model.out2=-2; -model.intyp=3; -model.outtyp=3; -model.rpar=[]; -model.ipar=sgn; -model.blocktype="c"; -model.dep_ut=[true,false]; -exprs=[sci2exp(3),sci2exp(0),sci2exp(0)]; -gr_i=[]; -x=standard_define([3,2],model,exprs,gr_i); -} -SHIFT.prototype.details = function SHIFT() { -} } diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index e258f3e9..0fd8afb0 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -1,5 +1,38 @@ /* autogenerated from "macros/IntegerOp/SRFLIPFLOP.sci" */ function SRFLIPFLOP() { +SRFLIPFLOP.prototype.define = function SRFLIPFLOP() { +scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["SRFLIPFLOP"],tol=[0.0001,0.000001,1.000e-10,100001,0,0,0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); +scs_m.objs[1-1]=scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[298.504,201.45067],sz=[40,40],flip=true,theta=0,exprs=["[0 1;1 0;1 0;1 0;0 1;0 1;0 0;0 0]","1"],pin=[4,10,12],pout=[3,8],pein=[],peout=[],gr_i=[],id="",in_implicit=["E","E","E"],out_implicit=["E","E"]),model=scicos_model(sim=list("logic",4),in1=[1,1,1],in2=[1,1,1],intyp=[5,5,5],out=[1,1],out2=[1,1],outtyp=[5,5],evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8([0,1,1,0,1,0,1,0,0,1,0,1,0,0,0,0])),blocktype="c",firing=false,dep_ut=[true,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[2-1]=scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.23733,254.25067],sz=[40,40],flip=false,theta=0,exprs=["int8(0)","1"],pin=6,pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(int8(0)),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[3-1]=scicos_link(xx=[347.07543,363.03733,363.03733],yy=[228.11733,228.11733,248.584],id="drawlink",thick=[0,0],ct=[1,1],from=[1,1,0],to=[5,1,1]); +scs_m.objs[4-1]=scicos_link(xx=[290.6659,272.104,272.104,289.93257],yy=[274.25067,274.25067,231.45067,231.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[2,1,0],to=[1,1,1]); +scs_m.objs[5-1]=scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[363.03733,248.584],sz=[0.3333333,0.3333333],flip=true,theta=0,exprs=[],pin=3,pout=[6,14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E","E","E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1,-1,-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[true,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[6-1]=scicos_link(xx=[363.03733,363.03733,344.95162],yy=[248.584,274.25067,274.25067],id="drawlink",thick=[0,0],ct=[1,1],from=[5,1,0],to=[2,1,1]); +scs_m.objs[7-1]=scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[367.07543,204.784],sz=[20,20],flip=true,theta=0,exprs="2",pin=8,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[8-1]=scicos_link(xx=[347.07543,367.07543],yy=[214.784,214.784],id="drawlink",thick=[0,0],ct=[1,1],from=[1,2,0],to=[7,1,1]); +scs_m.objs[9-1]=scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,211.45067],sz=[20,20],flip=true,theta=0,exprs="1",pin=[],pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[10-1]=scicos_link(xx=[269.93257,289.93257],yy=[221.45067,221.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[9,1,0],to=[1,2,1]); +scs_m.objs[11-1]=scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,201.45067],sz=[20,20],flip=true,theta=0,exprs="2",pin=[],pout=12,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[12-1]=scicos_link(xx=[269.93257,289.93257],yy=[211.45067,211.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[11,1,0],to=[1,3,1]); +scs_m.objs[13-1]=scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[383.03733,238.584],sz=[20,20],flip=true,theta=0,exprs="1",pin=14,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); +scs_m.objs[14-1]=scicos_link(xx=[363.03733,383.03733],yy=[248.584,248.584],id="drawlink",thick=[0,0],ct=[1,1],from=[5,2,0],to=[13,1,1]); +model=scicos_model(); +model.sim="csuper"; +model.in1=[1,1]; +model.in2=[1,1]; +model.out=[1,1]; +model.out2=[1,1]; +model.intyp=[5,5]; +model.outtyp=[5,5]; +model.blocktype="h"; +model.firing=false; +model.dep_ut=[true,false]; +model.rpar=scs_m; +gr_i=[]; +x=standard_define([2,3],model,[],gr_i); +} +SRFLIPFLOP.prototype.details = function SRFLIPFLOP() { +} SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { @@ -42,37 +75,4 @@ x=arg1; y=needcompile; typ=newpar; } -SRFLIPFLOP.prototype.define = function SRFLIPFLOP() { -scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["SRFLIPFLOP"],tol=[0.0001,0.000001,1.000e-10,100001,0,0,0],tf=60,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); -scs_m.objs[1-1]=scicos_block(gui="LOGIC",graphics=scicos_graphics(orig=[298.504,201.45067],sz=[40,40],flip=true,theta=0,exprs=["[0 1;1 0;1 0;1 0;0 1;0 1;0 0;0 0]","1"],pin=[4,10,12],pout=[3,8],pein=[],peout=[],gr_i=[],id="",in_implicit=["E","E","E"],out_implicit=["E","E"]),model=scicos_model(sim=list("logic",4),in1=[1,1,1],in2=[1,1,1],intyp=[5,5,5],out=[1,1],out2=[1,1],outtyp=[5,5],evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(int8([0,1,1,0,1,0,1,0,0,1,0,1,0,0,0,0])),blocktype="c",firing=false,dep_ut=[true,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[2-1]=scicos_block(gui="DOLLAR_m",graphics=scicos_graphics(orig=[299.23733,254.25067],sz=[40,40],flip=false,theta=0,exprs=["int8(0)","1"],pin=6,pout=4,pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("dollar4_m",4),in1=1,in2=1,intyp=5,out=1,out2=1,outtyp=5,evtin=[],evtout=[],state=[],dstate=[],odstate=list(int8(0)),rpar=[],ipar=[],opar=list(),blocktype="d",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[3-1]=scicos_link(xx=[347.07543,363.03733,363.03733],yy=[228.11733,228.11733,248.584],id="drawlink",thick=[0,0],ct=[1,1],from=[1,1,0],to=[5,1,1]); -scs_m.objs[4-1]=scicos_link(xx=[290.6659,272.104,272.104,289.93257],yy=[274.25067,274.25067,231.45067,231.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[2,1,0],to=[1,1,1]); -scs_m.objs[5-1]=scicos_block(gui="SPLIT_f",graphics=scicos_graphics(orig=[363.03733,248.584],sz=[0.3333333,0.3333333],flip=true,theta=0,exprs=[],pin=3,pout=[6,14],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=["E","E","E"]),model=scicos_model(sim="lsplit",in1=-1,in2=[],intyp=1,out=[-1,-1,-1],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[true,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[6-1]=scicos_link(xx=[363.03733,363.03733,344.95162],yy=[248.584,274.25067,274.25067],id="drawlink",thick=[0,0],ct=[1,1],from=[5,1,0],to=[2,1,1]); -scs_m.objs[7-1]=scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[367.07543,204.784],sz=[20,20],flip=true,theta=0,exprs="2",pin=8,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[8-1]=scicos_link(xx=[347.07543,367.07543],yy=[214.784,214.784],id="drawlink",thick=[0,0],ct=[1,1],from=[1,2,0],to=[7,1,1]); -scs_m.objs[9-1]=scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,211.45067],sz=[20,20],flip=true,theta=0,exprs="1",pin=[],pout=10,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[10-1]=scicos_link(xx=[269.93257,289.93257],yy=[221.45067,221.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[9,1,0],to=[1,2,1]); -scs_m.objs[11-1]=scicos_block(gui="IN_f",graphics=scicos_graphics(orig=[249.93257,201.45067],sz=[20,20],flip=true,theta=0,exprs="2",pin=[],pout=12,pein=[],peout=[],gr_i=[],id="",in_implicit=[],out_implicit="E"),model=scicos_model(sim="input",in1=[],in2=[],intyp=1,out=-1,out2=[],outtyp=-1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=2,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[12-1]=scicos_link(xx=[269.93257,289.93257],yy=[211.45067,211.45067],id="drawlink",thick=[0,0],ct=[1,1],from=[11,1,0],to=[1,3,1]); -scs_m.objs[13-1]=scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[383.03733,238.584],sz=[20,20],flip=true,theta=0,exprs="1",pin=14,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=[],intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); -scs_m.objs[14-1]=scicos_link(xx=[363.03733,383.03733],yy=[248.584,248.584],id="drawlink",thick=[0,0],ct=[1,1],from=[5,2,0],to=[13,1,1]); -model=scicos_model(); -model.sim="csuper"; -model.in1=[1,1]; -model.in2=[1,1]; -model.out=[1,1]; -model.out2=[1,1]; -model.intyp=[5,5]; -model.outtyp=[5,5]; -model.blocktype="h"; -model.firing=false; -model.dep_ut=[true,false]; -model.rpar=scs_m; -gr_i=[]; -x=standard_define([2,3],model,[],gr_i); -} -SRFLIPFLOP.prototype.details = function SRFLIPFLOP() { -} } |