Troubleshooting Gated D Latch Waveforms

  • Thread starter Thread starter perplexabot
  • Start date Start date
  • Tags Tags
    Schematic
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting the waveforms of a gated D latch circuit simulated in the Analog Environment. Participants explore potential issues related to circuit connections and configurations that may be affecting the output behavior.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes that the output labels in the simulation do not match the schematic, questioning whether INP corresponds to D and OUT to Q.
  • Another participant suggests that there may be a missed or incorrect inherited connection, prompting a review of all connections in the circuit.
  • A participant clarifies that they created a symbol for the D latch and used it in a new schematic, indicating a potential source of confusion regarding connections.
  • Concerns are raised about a vdd supply net connected to a node labeled vdd! instead of vdd, with uncertainty about whether this is problematic.
  • One participant identifies that the QN node should be floating rather than grounded, proposing that it could be left open or connected to a small capacitor.
  • Another participant expresses appreciation for the help received, sharing their experience that many simulation issues stem from test bench setup or circuit biasing.

Areas of Agreement / Disagreement

Participants express varying opinions on the cause of the output issue, with some suggesting specific connection problems while others highlight the importance of circuit configuration. The discussion remains unresolved regarding the exact nature of the problem.

Contextual Notes

There are uncertainties regarding the implications of the vdd! labeling and the proper handling of the QN node, which may affect the circuit's behavior.

perplexabot
Gold Member
Messages
328
Reaction score
5
Hello all. So I finished making a gated D latch. I used the Analog Environment to plot the waveforms. I have provided the schematic and the waveforms below.

The output is kind of weird, as you will see.

Thank you for reading.
EDIT: Been trying to figure out what the problem is for a while now, still don't know what it could be. Could it have to do with transistor sizing? I did the same circuit on my phone (using an app called EasyCircuit) and I believe the correct waveforms were achieved. I have no idea what may be causing the output to change state (in the case of the image shown, the output changes at the rising edge, as it should, but then changes on the falling edge too! [which it should not, because the input didn't change!]). What may be causing this peculiar event? I hate going to sleep like this, but it looks like I have no choice. If anyone has any suggestions, anything at all! Please send them my way. Thanks again. I will reply after I wake up (assuming I get replies.)

latch_schem.gif

waveforms.gif
 
Last edited:
Engineering news on Phys.org
The labels on your simulation output do not correspond to your schematic. Does INP = D and OUT = Q.

This is indeed strange. I suspect you have a missed/screwed up inherited connection (power/ground/substrate) somewhere.

Can you check all your inherited connections then look at every single node until you find one that doesn't make sense?

Good luck!
 
  • Like
Likes   Reactions: 1 person
analogdesign said:
The labels on your simulation output do not correspond to your schematic. Does INP = D and OUT = Q.

This is indeed strange. I suspect you have a missed/screwed up inherited connection (power/ground/substrate) somewhere.

Can you check all your inherited connections then look at every single node until you find one that doesn't make sense?

Good luck!

The reason for that is because I created a symbol for the D-Latch and then used that in a new schematic. Sorry, I should have stated that. Here is a screenshot. Thank you for the reply and help.

EDIT1: I am not so sure what you mean by "inherited connections," but I double checked the vdd!'s and gnd!'s for the nand, not and nor gates. I was not able to find anything strange.
EDIT2: Triple checking nodes as you have suggested, I can see a vdd supply net connected to a node that is called vdd! and not vdd. Is this a problem? I am assuming this is as it should be.

PS: Anyone have a clue? Please this is really bugging me!

true_schem.gif
 
Last edited:
The problem is QN. It should be floating rather than grounded. You can either leave the QN node open or you can connect it to a very small capacitor.
 
  • Like
Likes   Reactions: 1 person
analogdesign said:
The problem is QN. It should be floating rather than grounded. You can either leave the QN node open or you can connect it to a very small capacitor.

I just want to say, "I love you!"
 
perplexabot said:
I just want to say, "I love you!"

Ha ha, no problem! In my experience 95% of all really weird simulation results are due to how we set up the test bench or have biased or connected the circuit.
 
analogdesign said:
Ha ha, no problem! In my experience 95% of all really weird simulation results are due to how we set up the test bench or have biased or connected the circuit.

Thank you for your (wonderful) help and interesting information.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 46 ·
2
Replies
46
Views
6K
Replies
12
Views
3K
Replies
24
Views
7K
Replies
54
Views
11K
  • · Replies 33 ·
2
Replies
33
Views
13K
  • · Replies 10 ·
Replies
10
Views
5K
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K