Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How the simulator decide the Q and QBar of the SR latch terminal

Status
Not open for further replies.

Awalluddin

Newbie level 5
Newbie level 5
Joined
Nov 13, 2021
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
118
Hi everyone, an SR latch that build using Nand gate, how do the simulator decide the Q and QBar terminal. The SR latch is symmetry, and either the terminal could be Q and vice versa.


download.png
 

If both inputs were low , the last one to go high asserts both output states to be complementary.
Otherwise if the inputs are exclusive, it is obvious. Using de Morgan’s it could also be +ve input logic using NOR gates and swapping output labels


… Negative input logic which ought to be labelled like Q-bar
 
Last edited:

If you are referring as to how the simulator comes up at the start, it's purely arbitrary if S and R are both high, unless you assign a state (and you should).
 

The simulator applies simple rules of logic of a NAND gate with analog voltages and assumed thresholds for the logic family and Vdd.

S R Q Q
1 1 x x ( no change, x previous state but complementary)
0 1 1 0
1 1 1 0 ( previous state latched)
1 0 0 1
1 1 0 1 ( previous state latched)
0 0 1 1 ( illegal states as SR state will become valid (complimentary outputs ) when 1st SR goes high)
--- Updated ---

1699828418047.png
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top