diff options
author | Sunil Shetye | 2018-06-16 19:47:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 10:46:22 +0530 |
commit | dc0c2354295fc1c80d5c0e10b053e5926861b5d3 (patch) | |
tree | f985ad20bba0639e5d85e3be91552b4dca6f7fc9 /js/Linear/GAINBLK.js | |
parent | 3a3e1d6aa7fd38a910a7416040050ffa9550566e (diff) | |
download | sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.gz sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.tar.bz2 sci2js-dc0c2354295fc1c80d5c0e10b053e5926861b5d3.zip |
support var(:,:) syntax
Diffstat (limited to 'js/Linear/GAINBLK.js')
-rw-r--r-- | js/Linear/GAINBLK.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index 5901ff74..cc7f207a 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -27,7 +27,7 @@ model.rpar=gain.slice(); model.opar=list(); } else { message("type is not supported"); -ok=None; +ok=false; } } else { if ((over==0)) { @@ -51,7 +51,7 @@ ot=8; model.sim=list("gainblk_ui8n",4); } else { message("type is not supported."); -ok=None; +ok=false; } } else if ((over==1)) { if ((typeof(gain)=="int32")) { @@ -74,7 +74,7 @@ ot=8; model.sim=list("gainblk_ui8s",4); } else { message("type is not supported."); -ok=None; +ok=false; } } else if ((over==2)) { if ((typeof(gain)=="int32")) { @@ -97,11 +97,11 @@ ot=8; model.sim=list("gainblk_ui8e",4); } else { message("type is not an integer."); -ok=None; +ok=false; } } else { message("Do on Overflow must be 0,1,2"); -ok=None; +ok=false; } model.rpar=[]; model.opar=list(gain.slice()); @@ -137,7 +137,7 @@ model.in2=in2; model.out2=out2; model.rpar=gain; model.blocktype="c"; -model.dep_ut=[true,None]; +model.dep_ut=[true,false]; exprs=[strcat(sci2exp(gain))]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); |