Difference between revisions of "Digital Logic Toolbox"

From NeatTools
Line 255: Line 255:
 
[[File:control.gif|left]]  
 
[[File:control.gif|left]]  
 
{{module properties
 
{{module properties
|topinput=Drag N, integer(1); Control, integer(1)
+
|topinput=N, integer(1); Control, integer(1)
 
|leftinput=In, polymorph(1 per N)
 
|leftinput=In, polymorph(1 per N)
 
|rightoutput=Out, matching type(∞ per N)
 
|rightoutput=Out, matching type(∞ per N)
Line 270: Line 270:
 
[[File:sample.gif|left]]
 
[[File:sample.gif|left]]
 
{{module properties
 
{{module properties
|topinput=Drag N, integer(1); Control, integer(1)
+
|topinput=N, integer(1); Control, integer(1)
 
|leftinput=In, polymorph(1 per N)
 
|leftinput=In, polymorph(1 per N)
 
|rightoutput=Out, matching type(∞ per N)
 
|rightoutput=Out, matching type(∞ per N)
Line 285: Line 285:
 
{{module properties
 
{{module properties
 
|topinput=
 
|topinput=
|leftinput=Input 1, integer(1)
+
|leftinput=integer(1)
 
|rightoutput=integer(∞)
 
|rightoutput=integer(∞)
 
|bottomoutput=
 
|bottomoutput=
Line 299: Line 299:
 
{{module properties
 
{{module properties
 
|topinput=
 
|topinput=
|leftinput=
+
|leftinput=integer(1)
|rightoutput=
+
|rightoutput=integer(∞)
 
|bottomoutput=
 
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 
}}
 
}}
  
Line 308: Line 310:
 
[[File:accumulate.gif|left]]
 
[[File:accumulate.gif|left]]
 
{{module properties
 
{{module properties
|topinput=
+
|topinput=Enable, integer(1)
|leftinput=
+
|leftinput=Clock, integer(1)
|rightoutput=
+
|rightoutput=integer(∞)
 
|bottomoutput=
 
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 
}}
 
}}
  
Line 318: Line 322:
 
[[File:mux.gif|left]]
 
[[File:mux.gif|left]]
 
{{module properties
 
{{module properties
|topinput=
+
|topinput=N, integer(1); Select, integer(1)
|leftinput=
+
|leftinput=polymorph(1 per N)
|rightoutput=
+
|rightoutput=matching type(∞)
 
|bottomoutput=
 
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
|label2=N
 +
|data2=sets the number of inputs (2-512).
 +
|label3=select
 +
|data3=sets the input selected value (0-[N-1]).
 
}}
 
}}
  
Line 328: Line 338:
 
[[File:demux.gif|left]]
 
[[File:demux.gif|left]]
 
{{module properties
 
{{module properties
|topinput=
+
|topinput=N, integer(1); Select, integer(1)
|leftinput=
+
|leftinput=polymorph(1)
|rightoutput=
+
|rightoutput=matching type(∞ per N)
 
|bottomoutput=
 
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
|label2=N
 +
|data2=sets the number of inputs (2-512).
 +
|label3=select
 +
|data3=sets the input selected value (0-[N-1]).
 +
|label4=sendResetEvent
 +
|data4=clears the non-triggered outputs(Boolean)
 
}}  
 
}}  
  

Revision as of 10:30, 17 July 2010

Not

Logical Negate (bitwise).

Not.gif
Module I/O
Left Input(s): integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If input is true, output is false, and vice versa.

And

Logical And.

And.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If all the outputs are true, then output is true. If any inputs are

Or

Logical Or.

Or.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If at least one of the inputs are true, then output is true.

Exclusive Or

Logical Xor.

Xor.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

Integer Greater Than

Greater than for use with integers.

Greater.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If Input 1 (left) is greater than Input 2 (top), output is true.

Integer Greater Than or Equal

Greater than or equal for use with integers.

Greaterequal.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If Input 1 (left) is greater than or equal to Input 2 (top), output is true.

Integer Equal

Equal for use with integers.

Equal.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If Input 1 is equal to Input 2, the output is true.

Integer Not Equal

Not Equal for use with integers.

Notequal.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

If Input 1 is not equal to Input 2, the output is true.

Integer Add

Addition for use with integers.

Add.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Sums all inputs and outputs the result.

Integer Multiply

Multiplication for use with integers.

Multiply.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Outputs the product of all the inputs.

Integer Subtract

Subtraction for use with integers.

Subtract.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Input 1 minus Input 2 equals output.

Integer Divide

Division for use with integers.

Divide.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Input 1 divided by Input 2 equals output.

Integer Absolute Value

Calculates absolute value.

Absvalue.gif
Module I/O
Left Input(s): integer(1))
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Outputs the absolute value of the input.

Integer Power

Raises integer to a power.

Power.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Input 1 raised to the power of Input 2.

Integer Maximum

Outputs the maximum integer value.

Max.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Returns the highest current value from all the inputs.

Integer Minimum

Outputs the minimum integer value.

Min.gif
Module I/O
Left Input(s): integer(∞)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Returns the lowest current value from all the inputs.

Integer Remainder

The Modulus operator. Calculates remainder (for use with integers).

Percent.gif
Module I/O
Top Input(s): Input 2, integer(1)
Left Input(s): Input 1, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

The remainder of Input 1 divided by Input 2. (e.g. 5%2=1).

Integer Random

Generates a random integer value.

Random.gif
Module I/O
Top Input(s): Control, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

When Control receives a signal, it outputs a random integer of set bit depth.

Control

Opens and closes a switch.

Control.gif
Module I/O
Top Input(s): N, integer(1); Control, integer(1)
Left Input(s): In, polymorph(1 per N)
Right Output(s): Out, matching type(∞ per N)
Module Properties
moduleColorsets module color(RGB).
Nsets the number of matching input and output pairs(1-512).

When Control receives a signal, a connection is made between corresponding inputs and outputs.

Sample

Sample input values on demand.

Sample.gif
Module I/O
Top Input(s): N, integer(1); Control, integer(1)
Left Input(s): In, polymorph(1 per N)
Right Output(s): Out, matching type(∞ per N)
Module Properties
moduleColorsets module color(RGB).
Nsets the number of matching input and output pairs(1-512).

Pulse

Event production shaped pulse.

Pulse.gif
Module I/O
Left Input(s): integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).
N bit(s)sets bit depth of output(1-32).

Delay

Delays sending current value until next event is received.

Delay.gif
Module I/O
Left Input(s): integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Accumulator

Counts events.

Accumulate.gif
Module I/O
Top Input(s): Enable, integer(1)
Left Input(s): Clock, integer(1)
Right Output(s): integer(∞)
Module Properties
moduleColorsets module color(RGB).

Multiplexer

Selects on input to be current output.

Mux.gif
Module I/O
Top Input(s): N, integer(1); Select, integer(1)
Left Input(s): polymorph(1 per N)
Right Output(s): matching type(∞)
Module Properties
moduleColorsets module color(RGB).
Nsets the number of inputs (2-512).
selectsets the input selected value (0-[N-1]).

DeMultiplexer

Sends signal input to selected output.

Demux.gif
Module I/O
Top Input(s): N, integer(1); Select, integer(1)
Left Input(s): polymorph(1)
Right Output(s): matching type(∞ per N)
Module Properties
moduleColorsets module color(RGB).
Nsets the number of inputs (2-512).
selectsets the input selected value (0-[N-1]).
sendResetEventclears the non-triggered outputs(Boolean)

Encoder

Converts bytes to integers.

Encode.gif
Module I/O
Module Properties

Decoder

Converts the byte values of integers.

Decode.gif
Module I/O
Module Properties

Exclusive

For radio button.

Exclusive.gif
Module I/O
Module Properties

Clock Divider

Cycling clock.

Clockdivide.gif
Module I/O
Module Properties

Time

Provides current time (use with date module).

Time.gif
Module I/O
Module Properties

High Performance Counter

For fast timing.

HPC.gif
Module I/O
Module Properties

Calibrate

Accommodates signal range (min to max).

Calibrate.gif
Module I/O
Module Properties

Average Filter

Running average.

Average.gif
Module I/O
Module Properties

Delay Sustain

For use with musical modules.

Delaysustain.gif
Module I/O
Module Properties

State Object

State machine element (advanced).

State.gif
Module I/O
Module Properties

Timers

Activates at regular specified time intervals.

Timer.gif
Module I/O
Module Properties