Difference between revisions of "Digital Logic Toolbox"
Line 13: | Line 13: | ||
}} | }} | ||
If input is true, output is false, and vice versa. | If input is true, output is false, and vice versa. | ||
+ | |||
==And== | ==And== | ||
Logical And. | Logical And. | ||
Line 28: | Line 29: | ||
If all the outputs are true, then output is true. | If all the outputs are true, then output is true. | ||
If any inputs are | If any inputs are | ||
+ | |||
==Or== | ==Or== | ||
Logical Or. | Logical Or. | ||
Line 42: | Line 44: | ||
}} | }} | ||
If at least one of the inputs are true, then output is true. | If at least one of the inputs are true, then output is true. | ||
+ | |||
==Exclusive Or== | ==Exclusive Or== | ||
Logical Xor. | Logical Xor. | ||
Line 55: | Line 58: | ||
|data2=sets bit depth of output(1-32). | |data2=sets bit depth of output(1-32). | ||
}} | }} | ||
+ | |||
==Integer Greater Than== | ==Integer Greater Than== | ||
Greater than for use with integers. | Greater than for use with integers. | ||
Line 69: | Line 73: | ||
}} | }} | ||
If Input 1 (left) is greater than Input 2 (top), output is true. | If Input 1 (left) is greater than Input 2 (top), output is true. | ||
+ | |||
==Integer Greater Than or Equal== | ==Integer Greater Than or Equal== | ||
Greater than or equal for use with integers. | Greater than or equal for use with integers. | ||
Line 83: | Line 88: | ||
}} | }} | ||
If Input 1 (left) is greater than or equal to Input 2 (top), output is true. | If Input 1 (left) is greater than or equal to Input 2 (top), output is true. | ||
+ | |||
==Integer Equal== | ==Integer Equal== | ||
Equal for use with integers. | Equal for use with integers. | ||
Line 97: | Line 103: | ||
}} | }} | ||
If Input 1 is equal to Input 2, the output is true. | If Input 1 is equal to Input 2, the output is true. | ||
+ | |||
==Integer Not Equal== | ==Integer Not Equal== | ||
Not Equal for use with integers. | Not Equal for use with integers. | ||
Line 111: | Line 118: | ||
}} | }} | ||
If Input 1 is not equal to Input 2, the output is true. | If Input 1 is not equal to Input 2, the output is true. | ||
+ | |||
==Integer Add== | ==Integer Add== | ||
Addition for use with integers. | Addition for use with integers. | ||
Line 121: | Line 129: | ||
|label1=moduleColor | |label1=moduleColor | ||
|data1=sets module color(RGB). | |data1=sets module color(RGB). | ||
− | |||
− | |||
}} | }} | ||
Sums all inputs and outputs the result. | Sums all inputs and outputs the result. | ||
+ | |||
==Integer Multiply== | ==Integer Multiply== | ||
Multiplication for use with integers. | Multiplication for use with integers. | ||
[[File:multiply.gif|left]] | [[File:multiply.gif|left]] | ||
+ | {{module properties | ||
+ | |topinput= | ||
+ | |leftinput=integer(∞) | ||
+ | |rightoutput=integer(∞) | ||
+ | |bottomoutput= | ||
+ | |label1=moduleColor | ||
+ | |data1=sets module color(RGB). | ||
+ | }} | ||
+ | Outputs the product of all the inputs. | ||
+ | |||
==Integer Subtract== | ==Integer Subtract== | ||
Subtraction for use with integers. | Subtraction for use with integers. | ||
[[File:subtract.gif|left]] | [[File:subtract.gif|left]] | ||
+ | {{module properties | ||
+ | |topinput= Input 2, integer(1) | ||
+ | |leftinput=Input 1, integer(1) | ||
+ | |rightoutput=integer(1) | ||
+ | |bottomoutput= | ||
+ | |label1=moduleColor | ||
+ | |data1=sets module color(RGB). | ||
+ | }} | ||
+ | Input 1 minus Input 2 equals output. | ||
+ | |||
==Integer Divide== | ==Integer Divide== | ||
− | [[File:divide.gif|left]] | + | Division for use with integers. |
+ | [[File:divide.gif|left]] | ||
+ | ==Integer Subtract== | ||
+ | Subtraction for use with integers. | ||
+ | [[File:subtract.gif|left]] | ||
+ | {{module properties | ||
+ | |topinput= Input 2, integer(1) | ||
+ | |leftinput=Input 1, integer(1) | ||
+ | |rightoutput=integer(1) | ||
+ | |bottomoutput= | ||
+ | |label1=moduleColor | ||
+ | |data1=sets module color(RGB). | ||
+ | }} | ||
+ | Input 1 divided by Input 2 equals output. | ||
+ | |||
==Integer Absolute Value== | ==Integer Absolute Value== | ||
− | [[File:absvalue.gif|left]] | + | Calculates absolute value. |
+ | [[File:absvalue.gif|left]] | ||
+ | |||
==Integer Power== | ==Integer Power== | ||
− | [[File:power.gif|left]] | + | Raises integer to a power. |
+ | [[File:power.gif|left]] | ||
+ | |||
==Integer Maximum== | ==Integer Maximum== | ||
− | [[File:max.gif|left]] | + | Outputs the maximum integer value. |
+ | [[File:max.gif|left]] | ||
+ | |||
==Integer Minimum== | ==Integer Minimum== | ||
− | [[File:min.gif|left]] | + | Outputs the minimum integer value. |
+ | [[File:min.gif|left]] | ||
+ | |||
==Integer Percent== | ==Integer Percent== | ||
− | [[File:percent.gif|left]] | + | Calculates remainder (for use with integers). |
+ | [[File:percent.gif|left]] | ||
+ | |||
==Integer Random== | ==Integer Random== | ||
− | [[File:random.gif|left]] | + | Generates a random integer value. |
+ | [[File:random.gif|left]] | ||
+ | |||
==Control== | ==Control== | ||
− | [[File:control.gif|left]] | + | Opens and closes a switch. |
+ | [[File:control.gif|left]] | ||
+ | |||
==Sample== | ==Sample== | ||
− | [[File:sample.gif|left]] | + | Sample input values on demand. |
+ | [[File:sample.gif|left]] | ||
+ | |||
==Pulse== | ==Pulse== | ||
− | [[File:pulse.gif|left]] | + | Event production shaped pulse. |
+ | [[File:pulse.gif|left]] | ||
+ | |||
==Delay== | ==Delay== | ||
− | [[File:delay.gif|left]] | + | Delays sending current value until next event is received. |
+ | [[File:delay.gif|left]] | ||
+ | |||
==Accumulator== | ==Accumulator== | ||
− | [[File:accumulate.gif|left]] | + | Counts events. |
+ | [[File:accumulate.gif|left]] | ||
+ | |||
==Multiplexer== | ==Multiplexer== | ||
− | [[File:mux.gif|left]] | + | Selects on input to be current output. |
+ | [[File:mux.gif|left]] | ||
+ | |||
==DeMultiplexer== | ==DeMultiplexer== | ||
− | [[File:demux.gif|left]] | + | Sends signal input to selected output. |
+ | [[File:demux.gif|left]] | ||
+ | |||
==Encoder== | ==Encoder== | ||
− | [[File:encode.gif|left]] | + | Converts bytes to integers. |
+ | [[File:encode.gif|left]] | ||
+ | |||
==Decoder== | ==Decoder== | ||
− | [[File:decode.gif|left]] | + | Converts the byte values of integers. |
+ | [[File:decode.gif|left]] | ||
+ | |||
==Exclusive== | ==Exclusive== | ||
− | [[File:exclusive.gif|left]] | + | For radio button. |
+ | [[File:exclusive.gif|left]] | ||
+ | |||
==Clock Divider== | ==Clock Divider== | ||
− | [[File:clockdivide.gif|left]] | + | Cycling clock. |
+ | [[File:clockdivide.gif|left]] | ||
+ | |||
==Time== | ==Time== | ||
− | [[File:time.gif|left]] | + | Provides current time (use with date module). |
+ | [[File:time.gif|left]] | ||
+ | |||
==High Performance Counter== | ==High Performance Counter== | ||
− | [[File:HPC.gif|left]] | + | For fast timing. |
+ | [[File:HPC.gif|left]] | ||
+ | |||
==Calibrate== | ==Calibrate== | ||
− | [[File:calibrate.gif|left]] | + | Accommodates signal range (min to max). |
+ | [[File:calibrate.gif|left]] | ||
+ | |||
==Average Filter== | ==Average Filter== | ||
− | [[File:average.gif|left]] | + | Running average. |
+ | [[File:average.gif|left]] | ||
+ | |||
==Delay Sustain== | ==Delay Sustain== | ||
− | [[File:delaysustain.gif|left]] | + | For use with musical modules. |
+ | [[File:delaysustain.gif|left]] | ||
+ | |||
==State Object== | ==State Object== | ||
− | [[File:state.gif|left]] | + | State machine element (advanced). |
+ | [[File:state.gif|left]] | ||
+ | |||
==Timers== | ==Timers== | ||
− | [[File:timer.gif|left]] | + | Activates at regular specified time intervals. |
+ | [[File:timer.gif|left]] |
Revision as of 08:47, 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 Subtract
- 14 Integer Absolute Value
- 15 Integer Power
- 16 Integer Maximum
- 17 Integer Minimum
- 18 Integer Percent
- 19 Integer Random
- 20 Control
- 21 Sample
- 22 Pulse
- 23 Delay
- 24 Accumulator
- 25 Multiplexer
- 26 DeMultiplexer
- 27 Encoder
- 28 Decoder
- 29 Exclusive
- 30 Clock Divider
- 31 Time
- 32 High Performance Counter
- 33 Calibrate
- 34 Average Filter
- 35 Delay Sustain
- 36 State Object
- 37 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(1) |
Module Properties | |
moduleColor | sets module color(RGB). |
Input 1 minus Input 2 equals output.
Integer Divide
Division for use with integers.
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(1) |
Module Properties | |
moduleColor | sets module color(RGB). |
Input 1 divided by Input 2 equals output.
Integer Absolute Value
Calculates absolute value.
Integer Power
Raises integer to a power.
Integer Maximum
Outputs the maximum integer value.
Integer Minimum
Outputs the minimum integer value.
Integer Percent
Calculates remainder (for use with integers).
Integer Random
Generates a random integer value.
Control
Opens and closes a switch.
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.