Difference between revisions of "Digital Logic Toolbox"
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( | + | |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 | + | [[File:divide.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( | + | |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 | + | ==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
Contents
- 1 Not
- 2 And
- 3 Or
- 4 Exclusive Or
- 5 Integer Greater Than
- 6 Integer Greater Than or Equal
- 7 Integer Equal
- 8 Integer Not Equal
- 9 Integer Add
- 10 Integer Multiply
- 11 Integer Subtract
- 12 Integer Divide
- 13 Integer Absolute Value
- 14 Integer Power
- 15 Integer Maximum
- 16 Integer Minimum
- 17 Integer Remainder
- 18 Integer Random
- 19 Control
- 20 Sample
- 21 Pulse
- 22 Delay
- 23 Accumulator
- 24 Multiplexer
- 25 DeMultiplexer
- 26 Encoder
- 27 Decoder
- 28 Exclusive
- 29 Clock Divider
- 30 Time
- 31 High Performance Counter
- 32 Calibrate
- 33 Average Filter
- 34 Delay Sustain
- 35 State Object
- 36 Timers
Not
Logical Negate (bitwise).
Module I/O | |
Left Input(s): | integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
N bit(s) | sets bit depth of output(1-32). |
Integer Greater Than
Greater than for use with integers.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Sums all inputs and outputs the result.
Integer Multiply
Multiplication for use with integers.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Outputs the product of all the inputs.
Integer Subtract
Subtraction for use with integers.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Input 1 minus Input 2 equals output.
Integer Divide
Division for use with integers.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Input 1 divided by Input 2 equals output.
Integer Absolute Value
Calculates absolute value.
Module I/O | |
Left Input(s): | integer(1)) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Outputs the absolute value of the input.
Integer Power
Raises integer to a power.
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Input 1 raised to the power of Input 2.
Integer Maximum
Outputs the maximum integer value.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Returns the highest current value from all the inputs.
Integer Minimum
Outputs the minimum integer value.
Module I/O | |
Left Input(s): | integer(∞) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
Returns the lowest current value from all the inputs.
Integer Remainder
The Modulus operator. Calculates remainder (for use with integers).
Module I/O | |
Top Input(s): | Input 2, integer(1) |
Left Input(s): | Input 1, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets module color(RGB). |
The remainder of Input 1 divided by Input 2. (e.g. 5%2=1).
Integer Random
Generates a random integer value.
Module I/O | |
Top Input(s): | Control, integer(1) |
Right Output(s): | integer(∞) |
Module Properties | |
moduleColor | sets 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.
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 | |
moduleColor | sets module color(RGB). |
N | 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 input values on demand.
Pulse
Event production shaped pulse.
Delay
Delays sending current value until next event is received.
Accumulator
Counts events.
Multiplexer
Selects on input to be current output.
DeMultiplexer
Sends signal input to selected output.
Encoder
Converts bytes to integers.
Decoder
Converts the byte values of integers.
Exclusive
For radio button.
Clock Divider
Cycling clock.
Time
Provides current time (use with date module).
High Performance Counter
For fast timing.
Calibrate
Accommodates signal range (min to max).
Average Filter
Running average.
Delay Sustain
For use with musical modules.
State Object
State machine element (advanced).
Timers
Activates at regular specified time intervals.