-
I have the following circuit: a clock (with two phase output ΦC and ΦT ) and two connected D-flip-flops using each as clock input the I also constructed a 16 bit shift register, with 16 consecutive D flip flops (again with inverted C input) showing similar effects. Further tests showed that when the inversion is removed at the C input, the random behaviour disappeared, and also the default output then appeared on the Q output. My question is how this effect with the inverted C input should be understood, and equally important, what can be done to assure that only one of the two options will be output at the start of the simulation when the inverted C input is in use? Shift registers of various lengths with consecutive D flip flops are used in the circuit I have at hand and determine the state of other ones. The seemingly random starting conditions (as seen in one of the photos with the traces) set the whole circuit in a random state at the beginning of the simulation. From what I have seen in Digital over the past months, it is a very powerful tool, so I am sure that there must be a way to tackle this.
Am I making an elephant out of a fly ... ? Perhaps... but as a novice in this field I am still learning every day ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You can use the reset component to ensure that the circuit always starts in the same way. |
Beta Was this translation helpful? Give feedback.
You can use the reset component to ensure that the circuit always starts in the same way.
In general, it is bad practice to generate the clock signal of a component by logic gates.
It is better to use a common clock signal for all flip-flops.