J-K Flip-Flop

Description
The truth table for the J-K Flip-Flop is:
| J | K | clock | Q | !Q |
|---|---|---|---|---|
| 0 | 0 | ↑ | Qprev | !Qprev |
| 0 | 1 | ↑ | 0 | 1 |
| 1 | 0 | ↑ | 1 | 0 |
| 1 | 1 | ↑ | !Qprev | Qprev |
Important
Non-zero inputs are treated as 1
Library
Control > Logic
Parameters
| Property | Display Name | Parameter Type | Description |
|---|---|---|---|
| SamplingTime | Sampling Time [s] | DoubleParameter | Sampling Time |
Pins
| Property | Pin Name | Type | Description |
|---|---|---|---|
| J | J | ControlIn | J (Set) |
| K | K | ControlIn | K (Reset) |
| Q | clock | ControlIn | Output |
| notQ | Q | ControlOut | Output Complement (!Q) |
| clock | notQ | ControlOut | clock |
Default Size
| Width | Height |
|---|---|
| 4 | 6 |