Can the Negative edge triggered JK Flip Flop in Simulink be converted to positive edge triggered?

5 vues (au cours des 30 derniers jours)
Simulink library has the Negative edge triggered JK flip flop by default and if we go inside the block it has a trigger block using which the triggering can be changed to positive edge triggered. But unfortunately Matlab designers have disabled (greyed out) any modifications to this block. This doesn't make any sense, why would matlab not include a positive edge triggered JK flip flop if it doesn't even give us the option of modifying the existing negative edge triggered flip flop. I desperately need the positive edge triggered JK flip flop for my use in simulink. Can anyone provide an answer as to how to obtain the positive edge triggered JK flip flop.

Réponses (1)

Samatha Aleti
Samatha Aleti le 24 Juil 2019
Modifié(e) : Samatha Aleti le 25 Juil 2019
Hi,
Yes, Simulink by default has Negative edge triggered JK Flip flop. To have the functionality of a Positive edge triggered JK Flip flop, you can invert the clock input(using NOT block in Simulink) and pass this inverted clock signal to the JK Flip flop block.

Produits


Version

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by