I am working on D flip-flip. Therefore, I tried to do simulation, it giving me output voltage when I am keeping the Input D floating or no voltage is applied to it. Could someone explain me what is the reason for it. Thanks in advance.
TTL and LSTTL series floating inputs are always read as '1'. Don't know what you mean with "no voltage applied"? To assure no input voltage, connect the signal to ground.
Both of the above comments are very true for physical ICs. However I note the OP mentions that this is on a simulator.
Depending on how the simulator was written and whether it simulates at the TTL/CMOS/whatever component level or just the simulates the functionality, it can basically do whatever the code writer wants in undefined situations (such as floating inputs).
Susan
Thanks a lot. The explanations helped me for Orcad Pspice simulation as well as for Physical IC's implementations. Now, I have another question: in Pspice orcad simulation why output voltage for D flip flip showing 3.73 volts, where I am expecting 5 volts. I am giving input 5 volts (digital 1). Is that simulator was written in that way for digital 1, analog output be around 3.75 volts?
Thanks a lot again.
I have attached the simulation and output for convenience. (Orcad Pspice CIS)
A CMOS device will switch very close to 5V, but not a LS.
2.0V is considered to be a logic HIGH, so 3.7V is well within specification.
And the simulation meets true real conditions.
It seems you need to read about logic families, logic voltages, and behaviour..
Does anybody use an old fashioned 74LS74A anymore? I stopped using them about 35 years ago.
It datasheet shows that its output is an emitter-follower in series with a diode so of course its output high cannot go as high as 5V.
Why not look at the datasheet?? The datasheet shows that its minimum logic high output voltage is only 2.4V and the typical logic high output voltage is 3.4V.
True..
* power consuming
* slow
* weak output levels
* high input current
I don't see a benefit either. Are they cheaper? (But one have to take into account that one needs a bigger power supply, increased heat will reduce reliability. Maybe planned obsolescence?)
Currently I am doing a circuit Orcad capture CIS simulation for D flip flip. I am giving pulse to the D and Clk at the same time, but I am playing with delay by changing the value of the RC. When clock is delayed, it is showing output 3.4 (digital 1) as expected. But when data is delayed it showing value 1.1 V. But, I am expecting 0 V or close to it (50 mV) or Digital 0 when data signal is delayed.
Figures are attached for convenience. First figure is for delayed clock which giving me digital 1, but in the second figure I am getting undefined value (1.1 V) instead of 0.
I want to know if there any explanation. Also, if there any suggestion how to get digital 0 (analog voltage around 100 mV or less as datasheet defines) in simulation.
I'm not sure where you see the 100 mV Vol specification in 74LS74A datasheet (which manufacturer?), but the D and CLK input voltage is above Vil specification. In so far the result is unpredictable.
From the first figure we can see that the output is staying unpredictable stage for few micro seconds, then it changed to digital 1. I was expecting for that kind of output for digital 0 as well. But, for the second circuit setup, it stays unpredictable stage for whole simulation.
Maybe you are driving the gate into metastability.
This usually is when you violate setup time or hold time.
From your timing it seems you are within the specification of -20/+5ns.
But there is an additional problem with your simulation.
You are using RC, this causes the inputs to stay relatively long between true_low and true_high.
If you have stable (and valid) levels at the output with stable data_input, then this is an indicator that your simulation shows the metastability problem.
A metastable state would end latest after a few ns for slow logic like LS TTL. Seeing a stable intermediate output voltage is hardly metastable behavior.
First point is that we are discussing simulation results, not real hardware. The simulation model must not necessarily represent the component behavior completely.
Secondly, you are applying "illegal" input voltages slightly above Vol. This may be well sufficient to get the unexpected output voltage. Instead of guessing about you simulation results, why don't you correct the input voltage first?