Difference between revisions of "Digital Logic Toolbox"

From NeatTools
Line 151: Line 151:
 
|topinput= Input 2, integer(1)
 
|topinput= Input 2, integer(1)
 
|leftinput=Input 1, integer(1)
 
|leftinput=Input 1, integer(1)
|rightoutput=integer(1)
+
|rightoutput=integer()
 
|bottomoutput=
 
|bottomoutput=
 
|label1=moduleColor
 
|label1=moduleColor
Line 160: Line 160:
 
==Integer Divide==
 
==Integer Divide==
 
Division for use with integers.
 
Division for use with integers.
[[File:divide.gif|left]]
+
[[File:divide.gif|left]]
==Integer Subtract==
 
Subtraction for use with integers.
 
[[File:subtract.gif|left]]
 
 
{{module properties
 
{{module properties
 
|topinput= Input 2, integer(1)
 
|topinput= Input 2, integer(1)
 
|leftinput=Input 1, integer(1)
 
|leftinput=Input 1, integer(1)
|rightoutput=integer(1)
+
|rightoutput=integer()
 
|bottomoutput=
 
|bottomoutput=
 
|label1=moduleColor
 
|label1=moduleColor
Line 177: Line 174:
 
Calculates absolute value.
 
Calculates absolute value.
 
[[File:absvalue.gif|left]]
 
[[File:absvalue.gif|left]]
 +
{{module properties
 +
|topinput=
 +
|leftinput=integer(1))
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
}}
 +
Outputs the absolute value of the input.
  
 
==Integer Power==
 
==Integer Power==
 
Raises integer to a power.
 
Raises integer to a power.
[[File:power.gif|left]]  
+
[[File:power.gif|left]]
 +
{{module properties
 +
|topinput= Input 2, integer(1)
 +
|leftinput=Input 1, integer(1)
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
}}
 +
Input 1 raised to the power of Input 2.
  
 
==Integer Maximum==
 
==Integer Maximum==
 
Outputs the maximum integer value.
 
Outputs the maximum integer value.
[[File:max.gif|left]]  
+
[[File:max.gif|left]]
 +
{{module properties
 +
|topinput=
 +
|leftinput=integer(∞)
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
}}
 +
Returns the highest current value from all the inputs.
  
 
==Integer Minimum==
 
==Integer Minimum==
 
Outputs the minimum integer value.
 
Outputs the minimum integer value.
[[File:min.gif|left]]  
+
[[File:min.gif|left]]
 +
{{module properties
 +
|topinput=
 +
|leftinput=integer(∞)
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
}}
 +
Returns the lowest current value from all the inputs.
  
==Integer Percent==
+
==Integer Remainder==
Calculates remainder (for use with integers).
+
The Modulus operator. Calculates remainder (for use with integers).
[[File:percent.gif|left]]  
+
[[File:percent.gif|left]]
 +
{{module properties
 +
|topinput= Input 2, integer(1)
 +
|leftinput=Input 1, integer(1)
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
}}
 +
The remainder of Input 1 divided by Input 2. (e.g. 5%2=1).
  
 
==Integer Random==
 
==Integer Random==
 
Generates a random integer value.
 
Generates a random integer value.
[[File:random.gif|left]]  
+
[[File:random.gif|left]]
 +
{{module properties
 +
|topinput=Control, integer(1)
 +
|leftinput=
 +
|rightoutput=integer(∞)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
|label2=N bit(s)
 +
|data2=sets bit depth of output(1-32).
 +
}}
 +
When Control receives a signal, it outputs a random integer of set bit depth.
  
 
==Control==
 
==Control==
 
Opens and closes a switch.
 
Opens and closes a switch.
 
[[File:control.gif|left]]  
 
[[File:control.gif|left]]  
 +
{{module properties
 +
|topinput=Drag N, integer(1); Control, integer(1)
 +
|leftinput=In, polymorph(1 per N)
 +
|rightoutput=Out, matching type(∞ per N)
 +
|bottomoutput=
 +
|label1=moduleColor
 +
|data1=sets module color(RGB).
 +
|label2=N
 +
|data2=sets 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==

Revision as of 09:33, 24 January 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): Drag 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

Pulse

Event production shaped pulse.

Pulse.gif

Delay

Delays sending current value until next event is received.

Delay.gif

Accumulator

Counts events.

Accumulate.gif

Multiplexer

Selects on input to be current output.

Mux.gif

DeMultiplexer

Sends signal input to selected output.

Demux.gif

Encoder

Converts bytes to integers.

Encode.gif

Decoder

Converts the byte values of integers.

Decode.gif

Exclusive

For radio button.

Exclusive.gif

Clock Divider

Cycling clock.

Clockdivide.gif

Time

Provides current time (use with date module).

Time.gif

High Performance Counter

For fast timing.

HPC.gif

Calibrate

Accommodates signal range (min to max).

Calibrate.gif

Average Filter

Running average.

Average.gif

Delay Sustain

For use with musical modules.

Delaysustain.gif

State Object

State machine element (advanced).

State.gif

Timers

Activates at regular specified time intervals.

Timer.gif