SR_FlipFlop: Resetting/Setting of Flip Flop Input/Output

 

SR_FlipFlop Function Block

Pin Diagram

This figure shows the pin diagram of the SR_FlipFlop function block:

G-SG-0030378.3.gif-high.gif

 

 

Functional Description

The SR_FlipFlop function block implements the truth table for SR flip-flop with set priority.

The SR_FlipFlop refers to a flip-flop that obeys this truth table:

i_xClk

i_xSet

i_xRst

q_xQ(n+1)

0

X

X

Q(n)

1

0

0

Q(n)

1

0

1

0

1

1

0

1

1

1

1

1

n   ‘n’ is the present state and (n+1) is the next state.

It has two inputs, namely, a Set input, or i_xSet, and a Reset input, or i_xRst. It also has one output, q_xQ. When both set and reset inputs are high, priority is given to Set input (i_xSet=1 and i_xRst=1).

Truth table represented as a time diagram:

G-SE-0005703.1.gif-high.gif

 

 

Input Pin Description

This table describes the input pins of the SR_FlipFlop function block:

Input

Data Type

Description

i_xClk

BOOL

TRUE: Clock signal active.

FALSE: Disabled (factory setting)

i_xSet

BOOL

TRUE: Sets the flip-flop output.

FALSE: Disabled (factory setting)

i_xRst

BOOL

TRUE: Resets the flip-flop output.

FALSE: Disabled (factory setting)

Output Pin Description

This table describes the output pins of the SR_FlipFlop function block:

Output

Data Type

Description

q_xQ

BOOL

Flip-flop output