5. Advanced Truth Table Manipulation
 
 

 

While truth table manipulation as just described is the only way to load a cell's truth table, it can be cumbersome to manually manipulate C and D inputs in this way. There are two commands, c and l that simplify such truth table manipulations. Log in online to the MOD 88 and enter the command
 
r
  Reset the matrix truth tables
c
de=w
.
  c tells the program that you are compiling one or more Boolean equations. de=w is one such equation. The third line above is a single period, which indicates the end of inputting Boolean equations. See Configuration Commands in the COMMAND LINE INTERFACE chapter of the MOD 88 documentation for more details.
    This set of commands compiles a truth table corresponding to the Boolean equation de=w meaning DEout=DWin (the right hand side terms are always D inputs and thus are represented simply as n s w or e). The compiled truth table is stored inside the Command Line Interface program for future use.
d
  You can now use the command d to see the truth table you've just created. If you wish to load this truth table into an edge cell, you can do so as follows:
s 0 0 cw 1
  First, put a cell into C-mode
l 0 0 dw
  Note this is the letter l as in "light" (lower-case L). This causes the compiled truth table bits to be sent to [0,0]'s DW input, while automatically issuing a t (clock tick) command following the setting of each bit. This sequence of commands will cause the compiled truth table to be loaded into cell [0,0].
s 0 0 cw 0
  return the cell to D-mode. Now cell [0,0] is configured as a wire from West to East. By setting or clearing [0,0]DWin you can affect its DEoutput (and hence the color of its LED). This sequence of commands is easier than those in the bitwise truth table manipulations tutorial (4. Setting up Cells' Truth Tables), especially for more complicated truth tables.
r
c
ce=w
cs=w~
.
  You can repeat the above steps for whatever truth table you like. For example, you can repeat this example but compile this pair of equations instead.
    You will find that with this set of Boolean equations you can illuminate one of two red LEDs depending on the value of [0,0]DWin: if DWin=0, then cell [1,0] is placed in C-mode; if DWin=1, then [0,1] is placed in C-mode.

 
 

 
tutorials . MOD 88 online . home . core