Effacer les filtres
Effacer les filtres

Flip Flops and other logic circuits

6 vues (au cours des 30 derniers jours)
Nathan Ellis
Nathan Ellis le 31 Juil 2023
Modifié(e) : Daniel le 31 Juil 2023
I have tried to produce a Flip Flop with a standard pair of NOR gates but I get an algebraic error. What do I need to do to make the flip flop work? I feel that this effect is everywhere in logic circuits and if Simulink cannot do this natively then what else will its capability deviate from the reality.

Réponses (1)

Daniel
Daniel le 31 Juil 2023
Modifié(e) : Daniel le 31 Juil 2023
The crucial features of paired (transistor) NOR gates which make a flip-flop work are:
  1. Propagation delay. Simulink models things instantaneously by default. If you want to model propagation delay, you can either add a Transport Delay or Time Delay block, or you can use Simscape Electrical.
  2. NOR gates are built by pairing transistors that have a nonlinear behavior across a range of input voltages, to get a bistable output value of something-near-GND or something-near-VCC based on the inputs received. Simulink models a NOR gate as a simple logical operation, where either input being true produces an output of false and neither input is true produces an output of true. You miss the analog behavior, which is also relevant to transient behavior of the transistor-based real-life NOR gate. To model that behavior, you would need to feed the transistors' (or transistors' and resistors') nonlinearity models into Simulink (perhaps with a 1-D Lookup Table, and you could get away with something simpler for a resistor since it's really linear), or, again, you can use Simscape Electrical.
What are you trying to do that requires you to twist NOR gates together to make a flip-flop, or were you doing this for curiosity's sake?

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by