Computer-science_A-level_Cie
-
computers-and-components6 主题
-
logic-gates-and-logic-circuits2 主题
-
central-processing-unit-cpu-architecture6 主题
-
assembly-language-4 主题
-
bit-manipulation1 主题
-
operating-systems3 主题
-
language-translators2 主题
-
data-security3 主题
-
data-integrity1 主题
-
ethics-and-ownership3 主题
-
database-concepts3 主题
-
database-management-systems-dbms-1 主题
-
data-definition-language-ddl-and-data-manipulation-language-dml1 主题
-
computational-thinking-skills1 主题
-
algorithms14 主题
-
data-types-and-records2 主题
-
arrays2 主题
-
files1 主题
-
introduction-to-abstract-data-types-adt1 主题
-
programming-basics1 主题
-
constructs2 主题
-
structured-programming1 主题
-
program-development-life-cycle2 主题
-
program-design-2 主题
-
program-testing-and-maintenance3 主题
-
user-defined-data-types1 主题
-
file-organisation-and-access-3 主题
-
floating-point-numbers-representation-and-manipulation3 主题
-
protocols2 主题
-
circuit-switching-packet-switching1 主题
-
processors-parallel-processing-and-virtual-machines5 主题
-
boolean-algebra-and-logic-circuits4 主题
-
purposes-of-an-operating-system-os3 主题
-
translation-software3 主题
-
encryption-encryption-protocols-and-digital-certificates3 主题
-
artificial-intelligence-ai4 主题
-
recursion1 主题
-
programming-paradigms4 主题
-
object-oriented-programming7 主题
-
file-processing-and-exception-handling2 主题
-
data-representation5 主题
-
multimedia3 主题
-
compression2 主题
-
networks-and-the-internet11 主题
flip-flops
SR & JK flip flops
What are SR and JK flip flops?
-
In A Level Computer Science, SR (Set-Reset) and JK flip flops are digital memory components used in sequential circuits
-
They store 1 bit of data and are commonly used in counters, control systems, and synchronous logic
-
They are both types of bistable circuits, meaning:
-
They have two stable states
-
They respond to clock signals
-
They are often edge-triggered (typically on the rising edge)
-
SR flip flop
-
SR stands for Set and Reset
-
An SR flip-flop can be constructed using NOR gates (common in exams)
Inputs:
-
S = Set
-
R = Reset
-
CLK = Clock (when edge-triggered)
Outputs:
-
Q = Current stored value
-
NOT(Q) = Inverse of Q
SR flip flop truth table (NOR logic)
|
S |
R |
Q (next state) |
Description |
|---|---|---|---|
|
|
|
|
Memory/Hold |
|
|
|
|
Reset |
|
|
|
|
Set |
|
|
|
|
Forces Q = 0 (NOR only) |
Examiner Tips and Tricks
-
In NOR-based SR flip-flops,
S = 1, R = 1is not invalid, it forces Q = 0 -
(In NAND-based designs, this state is undefined)
SR flip flop example
|
Action |
S |
R |
Q |
NOT(Q) |
Reasoning |
|---|---|---|---|---|---|
|
Initially |
|
|
|
|
Set: S = 1 forces Q = 1 |
|
S changed to 0 |
|
|
|
|
Memory mode: No change |
|
R changed to 1 |
|
|
|
|
Reset: R = 1 forces Q = 0 |
|
R changed to 0 |
|
|
|
|
Memory mode: Q holds |
|
S and R changed to 1 |
|
|
|
|
NOR logic forces both Q and NOT(Q) to 0 (Q = 0) |
JK flip flop
-
The JK flip-flop is a more versatile version of the SR flip-flop
-
It solves the problem of the SR’s illegal state
|
Problem with SR |
Why JK solves it |
|---|---|
|
1. S = 1 and R = 1 is invalid |
JK uses this condition to toggle the output instead |
|
2. Glitches from feedback loops |
JK uses a clock to control exact timing of changes |
Inputs:
-
J = Set
-
K = Reset
-
CLK = Clock (required)
Outputs:
-
Q = Current state
-
NOT(Q) = Inverse
JK flip flop truth table
|
J |
K |
Q (next) |
Description |
|---|---|---|---|
|
|
|
|
Memory/Hold |
|
|
|
|
Reset |
|
|
|
|
Set |
|
|
|
|
Q becomes NOT(Q) |
Use cases
|
Flip Flop |
Typical uses |
|---|---|
|
SR |
Simple memory, control circuits |
|
JK |
Toggles, counters, frequency dividers |
Worked Example
Draw a logic circuit for an SR flip-flop and label the inputs.[3]

Answer
Or

Responses