Version 1 of bwise applications and examples

Updated 2003-03-14 19:30:28

By Theo Verelst

This page refers to bwise, which can be downloaded via Bwise - a graphical programming setup.

http://195.241.128.75//Diary/Ldi6/flipflop1.jpg See this of my diary pages [L1 ] where I'm making text about this one

 http://195.241.128.75//Diary/ldiary6.html#bwise.

I'll start making a list of bwise examples and applications, the first being show above as an important gedanken experiment. Don't think eigenvalues here, we're not getting into that now.

I made a generator block for AND gate blocks on the bwise canvas, which is a block which generates new blocks when it is fired (Eval-ed). This is the command (can be executed on the console or a bwise shell) for making the generator block:

 set n 1;
 newproc "newproc \"set proc\${genproc.n}.q \\\[expr !(\\\${proc\${genproc.n}.a} && \\\${proc\${genproc.n}.b})\\\]\" proc\${genproc.n} {a b} q  ;set genproc.nlast \${genproc.n}" genproc n nlast

Which (evaluated but not executed ends up in the genproc.bfunc as:

 newproc "set proc${genproc.n}.q \[expr !(\${proc${genproc.n}.a} && \${proc${genproc.n}.b})\]" proc${genproc.n} {a b} q  ;set genproc.nlast ${genproc.n}

Which can also be seen here:

http://195.241.128.75/Diary/Ldi6/genproc1.jpg

The proc1 and proc2 blocks were made by executing 'funprop' from the block menu (middle mouse button on the yellow part of a block), which evaluates the block, passes the current proc index from genproc.nlast to tcl variable Proc1.in, evaluates the Proc1 block function which is stored in tcl variable Proc1.bfunc, which sets Proc1.out to one higher, and finally transfers this values to genproc.n, at which point the funprop functional propagator function stops because it detects it is back where it started.