This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "JK flip-flop"
From CANNY Wiki
[unchecked revision] | [unchecked revision] |
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
!colspan="2" style="background-color:#AFEEEE;"|Appearance | !colspan="2" style="background-color:#AFEEEE;"|Appearance | ||
|- | |- | ||
− | |colspan="2" align="center" style="padding:10px;"|[[ | + | |colspan="2" align="center" style="padding:10px;"|[[File:5_7_5_2.png]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Symbol | !colspan="2" style="background-color:#AFEEEE;"|Symbol | ||
Line 19: | Line 19: | ||
|- | |- | ||
|style="padding-left:1em;"|Input J: | |style="padding-left:1em;"|Input J: | ||
− | |style="padding-left:1em;"|[[CFD Language#Data| | + | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] |
|- | |- | ||
|style="padding-left:1em;"|Input C: | |style="padding-left:1em;"|Input C: | ||
Line 30: | Line 30: | ||
|- | |- | ||
|style="padding-left:1em;"|Outputs: | |style="padding-left:1em;"|Outputs: | ||
− | |style="padding-left:1em;"|[[CFD Language#Data| | + | |style="padding-left:1em;"|[[CFD Language#Data|Integer]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | !colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | ||
Line 57: | Line 57: | ||
**if the current output value is not zero, then it becomes zero | **if the current output value is not zero, then it becomes zero | ||
− | In the time interval between edges on the input «C» the internal state and the state of the flip-flop output | + | In the time interval between edges on the input «C» the internal state and the state of the flip-flop output remain unchanged regardless of the inputs «J» or «K» values. |
</div> | </div> | ||
</div> | </div> |
Latest revision as of 08:44, 8 April 2016
Appearance | |
---|---|
Symbol | |
TJK | |
Group | |
Flip-flops / Latches | |
Inputs | |
Input J: | Integer |
Input C: | Logical |
Input K: | Logical |
Outputs | |
Outputs: | Integer |
Version CANNY Lab | |
from 0.11b |
Simultaneous two-stage JK flip-flop, changes its internal state on the rising edge at the input "C", depending on the status of the inputs «J» and «K», then at the falling edge on the input «C» copies its internal state to the output.
Variants of the flip-flop, depending on its inputs states:
- If the input «J» = 0 and «K» = 0 - the internal state will not change;
- If the input «J» = 0 and «K» > 0 - the internal state becomes zero
- If the input «J» > 0 and «K» = 0 - the internal state becomes equal to the value of «J»
- If the input «J» > 0 and «K»> 0, then:
- if the current internal state is zero, it will become equal to the value of «J» input
- if the current output value is not zero, then it becomes zero
In the time interval between edges on the input «C» the internal state and the state of the flip-flop output remain unchanged regardless of the inputs «J» or «K» values.
Features
The chain of JK-flip-flops can be used for efficient queuing (FIFO buffers).
Examples
Example 1:
Example 2:
Example 3: