SRFlipFlop

This block sets its output when the S port is high and R is low, resets its output when the R port is high and S port is low, !Q is the complement of Q. While both S and R are low, the SR Flip Flop maintains the Q and the !Q outputs in a constant state. If both S and R are high, Q and !Q are both low.

    SRFlipFlop

Library

FlipFlops

Description

The SR flip flop block sets its output when the S port is high and R is low, resets its output when the R port is high and S port is low, !Q is the complement of Q.

While both S and R are low, the SR Flip Flop maintains the Q and the !Q outputs in a constant state. If both S and R are high, Q and !Q are both low.

Truth table for the inputs and outputs are listed as following:

S R Q !Q

0 0 Qn-1 !Qn-1

0 1 0 1

1 0 1 0

1 1 0 0

Parameters

SRFlipFlop_0

NameLabelDescriptionData TypeValid Values

init

Initial output

Ports

NameTypeDescriptionIO TypeNumber

S

explicit

input

1

R

explicit

input

2

Q

explicit

output

1

!Q

explicit

output

2

Advanced Properties

NameValueDescription

always active

no

direct-feedthrough

yes

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no

Diagram

SRFlipFlop