Jitter, Clock Distribution and Glue Logic

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
Hi all,


I'm thinking about clock distribution schemes; for a cd player mod. I know there are many possibilities, but I often read things here about using mutiple gates in one package/using both outputs of a gate/loading a gate with more than one input... relative to jitter.

I need a clock, feeding the decoder chip, the digital filter, and the dac (maybe divided by 4 if I go for non os). So 3 outputs, plus some if I want to try reclocking, or DEM reclocking on the 1541.

What bould be the right way to do this? Using the clock's output (certainly a Kwak Clock) to feed directly 4 chips? Connecting a buffer, then the 4 chips, 4 buffers... something else?


And I'd like to understand what causes the jitter in these chip outputs, if we use Q and Qbar simultanously, if we put too much glue logic on a gate's output. Since I need more than one output, at least one output will have 4 things on its output, even if it is "only" buffers. And if I need an inverted output, use the Qbar on the Kwak Clock's comparator, or add an inverter (why?)?


So many unansweared questions... ;)

Thanks
Alex
 
Bricolo,

don't mix up the Q / Qbar rants of Jocko with the clock distribution problem.
Jocko seems to be against the use of D flipflop Q / Qbar outputs when generating a balanced drive for SPDIF. For example, if you want to drive a transformer like T4-6T, take the CT side, put CT on ground, and drive the coils from Q and Qbar [accross a cap].
In this way the power supply glithces, which appear at the bit switching time at the '74 PS, would be presented like common mode to the transformer, and be supressed. And this is good.
Moreover, in this way the Dflop's output current is constant, and this helps to decrease the PS changing, which would cause time shifts.

But Jocko's point here, as far as I understood, is that the prop. delay time from CKin to Q, and from CKin to Qbar, are different.
Given the fact that the data sheets are mute about it [they declear the same value for both, and even emphasize that they [the prop delays] are "balanced", I got curious, and settled down to measure it.
Again, this is not a very easy measurement, because at first glance it seems to be like the datasheet says - the prop delay is the same.
For example, in case of a clock signal of 10 MHz, and Qbar fed back to D, [so you have 100 nSec between changing edges], in case of an HC74, the delay is ~18 nsec, and the edge rise/fall times are 5-6 nsec.
Now, if you go to 500 psec /div, this 6nsec rise time becomes a slooow slope.. and there you should look for very small differences.
But it seems to be that Jocko is right. In case of the HC, I saw ~160pSec time shift between the Q and Qbar outputs.
In case of an F74, prop. delay time is less, ~ 6-7 nsec, the rise/fall times are more neat, but still, or again, there is a difference of ~ 140pSec. [interestingly, it changes polarity, though]

Though ~150 pSec time difference is really very small in absolut terms, when someone wants to arrive at several picosecs jitter values, it suddenly becomes huge..

I think this is what Jocko intended to say. [Would be nice to have a confirmation..]

But, when you want to distribute the clock, you anyway will have delay times introduced by the line lenght [~ 500 pSec /10cm ], so these 150 pSecs become meaningless. Anyway, no matter how many clocks are distributed, there will always be only one really important, which will do the effective, final reclocking before entering the dac. I would take the original clock output directly there. [and very close] Then, maybe take the Qbar output, and buffer it as you want, invert it again if needed, the jitter introduced does not [should not ] matter anyway! What you should care about is the setup/ hold time requirements only.
The DEM reclocking is a good question, it would be nice to know a bit more about it, how much perfectly should you be synchronized..
It will be a tough task, to do it right, anyway..

Ciao, George
 
On flip flops... In one case, I drove a 49.152MHz clock into a 74HC74 chip, which was configured to divide the output by four. I didn't have VHC parts available at the time, so I ran the HC part out of spec and hoped that it'd work... well, it didn't.

Q on the first divider put out 49.152 divided by two.
/Q on the first divider out 49.152 divided by THREE.

Looking at /Q on the scope, it was high for two input clock cycles, and low for one. Obviously there's more than just a single inverter inside these chips to provide /Q...

If memory serves me right, the 74HC74 was a ST part.
 
Bricolo said:
Hi all,


I'm thinking about clock distribution schemes; for a cd player mod. I know there are many possibilities, but I often read things here about using mutiple gates in one package/using both outputs of a gate/loading a gate with more than one input... relative to jitter.

I need a clock, feeding the decoder chip, the digital filter, and the dac (maybe divided by 4 if I go for non os). So 3 outputs, plus some if I want to try reclocking, or DEM reclocking on the 1541.

What bould be the right way to do this? Using the clock's output (certainly a Kwak Clock) to feed directly 4 chips? Connecting a buffer, then the 4 chips, 4 buffers... something else?


And I'd like to understand what causes the jitter in these chip outputs, if we use Q and Qbar simultanously, if we put too much glue logic on a gate's output. Since I need more than one output, at least one output will have 4 things on its output, even if it is "only" buffers. And if I need an inverted output, use the Qbar on the Kwak Clock's comparator, or add an inverter (why?)?


So many unansweared questions... ;)

Thanks
Alex

Hi

Good and interesting thread. The balancing act requires analogue solutions, ore clever use of ff's. You could imagine using 2 Q outputs and drive the inputs differentially, but then again, the problem is shifted backwards

On the clocking scheme:

I'd suggest to put the oscillator as close as possible to the DAC chips (close means close).

Drive the DAC chips directly from the clock output, and then use a single (picogate) inverter/buffer to drive the other chips.

Needless to say one should pay attention to layout and decoupling issues.

Ciao
 
Bricolo said:
Hi all,


I'm thinking about clock distribution schemes; for a cd player mod. I know there are many possibilities, but I often read things here about using mutiple gates in one package/using both outputs of a gate/loading a gate with more than one input... relative to jitter.

I need a clock, feeding the decoder chip, the digital filter, and the dac (maybe divided by 4 if I go for non os). So 3 outputs, plus some if I want to try reclocking, or DEM reclocking on the 1541.

What bould be the right way to do this? Using the clock's output (certainly a Kwak Clock) to feed directly 4 chips? Connecting a buffer, then the 4 chips, 4 buffers... something else?


And I'd like to understand what causes the jitter in these chip outputs, if we use Q and Qbar simultanously, if we put too much glue logic on a gate's output. Since I need more than one output, at least one output will have 4 things on its output, even if it is "only" buffers. And if I need an inverted output, use the Qbar on the Kwak Clock's comparator, or add an inverter (why?)?


So many unansweared questions... ;)

Thanks
Alex


Hi Bricolo, The AD8561 used in my clock can drive 20 TTL logic gates so I won't worry too much and connect the ouput directly to the chips needing a clock with a short connection as possible. If you need an inverted ouput you can use the second inverted output of the AD8561. Rbroer has used that to advantage.:cool:
 
Hi


-George
So, the problem isn't "loading Q abd Q/ at the same time" but comes from the different propagation delays? Is the delay between Q and Q/ different on all gates? (All brands, all types)


-gmarsh
Interesting. What's the max frequency for HC logic? 40MHz? Maybe the FF was loaded just a little too fast, this combined with different rise time and fall time, could lead to such beaviour.


-Guido
Thanks ;)
Using an inverter and 2 FF still had this timing problem, but the inverter may add less delay than the delay difference between Q and Q/
A possibility would to use 2 FF, and 2 XOR gates. One XOR having the clock and 0, the other would have the clock and 1. So the 2 lines have the same number of gates, and exactly the same gates. The delay should be null.
But all of this mean more glue logic, and I don't remember who told this on this forum, but "more logic gates means more jitter" :(

About the clock distribution: by using the "clean clock" as BCK for the DAC (instead of the BCK output from the decoder/filter) the new clock's edges aren't certainly synchronized to the other I2S lines's edges (normally, all I2S lines including BCK are coming from the same decoder/filter chip, so the edges occurs at the same time). Isn't this jitter too?


-Elso
I agree with you, the comparator is able to drive many gates (you're certainly referring to the fan out/fan in). But I've read many times that loading an output with many gate inputs leads to jitter, that's one of the reasons for this thread.


And if I need a 2.8MHz clock (for a NON OS DAC), how should I make it? Dividing by 4 most obviously, but how? An IC counter (what kind of?) 2 DFF?



Thanks
Alex
 
Bricolo,

Using an inverter and 2 FF still had this timing problem, but the inverter may add less delay than the delay difference between Q and Q/
A possibility would to use 2 FF, and 2 XOR gates. One XOR having the clock and 0, the other would have the clock and 1. So the 2 lines have the same number of gates, and exactly the same gates. The delay should be null.

The answer is in my post above. If you take the D flop's Q output, and buffer it with a couple of XOR [HC86] inverting & non, and then take this through the due resistor divider network + cap decoupling to the balanced transformer coils, then a nice little zobel on output, and all this directly onto the pins of a 75 ohm BNC, then you have done a good job.. [jocko?]
This way all the benefits of the balanced operation remain valid, with no time shift between inverted & non, and the D flop, although now works single - ended, now only drives the XOR gate inputs, which are a light load, will not cause power supply ripple [too much]. Maybe a damping resistor between Dflop & XOR input.
A problem remains - will be the balanced transformer leakage inductance much worse, than that of a good [Schott?] 1 : 1 transformer? [Probably yes] Can it be corrected for by the Zobel?
The advantage gained in the balanced operation will be lost in the not appropriate transformer usage?
You see, also I have some questions.. [maybe I will play with it]

So, the problem isn't "loading Q abd Q/ at the same time" but comes from the different propagation delays? Is the delay between Q and Q/ different on all gates? (All brands, all types)

a./ Yes. b./ types different yes, brands I don't know

Ciao, George
 
Joseph K said:
Bricolo,



The answer is in my post above. If you take the D flop's Q output, and buffer it with a couple of XOR [HC86] inverting & non,

Yes, it's basicly the same.
I was thinking about placing the XOR before the DFF, this could give better jitter performance.

Anyway, I wasn't asking about SPDIF reclocking here, let's keep this as an exemple, and go back to the topic ;)
 
Bricolo,

Yes, it's off topic, true. It served only to clarify the origin of the Q / Qbar problem. Because, apart of this specific case [SPDIF reclocking], this problem does not exist, it was only a misinterpretation.

Bernhard, what you bring up here, might be a real problem. Jitter free synchronous reclocking of separate dacs.. hm. Maybe an another reason to stick to a single dac?

Ciao, George
 
The Q Q/ isn't off topic, but the spdif is ;)

A delay between Q and Q/ may lead to glitches (imagine that the DFF switches from a state to another, for a short period Q and Q/ will be equal and this could lead to a 1 instead of a 0, somewhere later in the logic path)
 
Bricolo,

There are two things:
1.) that special feature of a Dflip-flop.
2.) a situation, whre it counts, precisely as you described.
What I wanted to say, is that in SPDIF balanced drive it counts, otherways it does not. But maybe I am just short minded. If you can show me an another example, where it counts, do it. In distributing a clock, because of the reasons just explained by me, it does not count.

Ciao, george
 
Bricolo said:
Hi all,


I'm thinking about clock distribution schemes; for a cd player mod. I know there are many possibilities, but I often read things here

....

Bricolo




Hi Bricolo

It all depends on how far you want to go. How much extra jitter can you tolerate.

If you have decided to stick to KC7 then there will be not many choices. KC7's output comparator will add in a 20-50ps jitter to the clock output so definitely you should avoid adding any more gates to its output. The comparator is powerful enough to drive 20 TTL gates but this does not mean the jitter performance will be the same between driving 1 gate and drivng 20 gates. Try to limit the gate count to be under 4 or 5.

For 5V circuit, avoid any 74HC or 74AC/54AC chips, go for 74VHC or 74AHC. One 74VHCU04 inverter will add in about 20ps of jitter. If you want to boost the output driving capability, have the clock output drive 3 or 4 buffers in parallel then have the parallel buffer output drive other chips. In this case, the jitter added will be the worst one's among the buffers. Smiple 74VHC buffers will be OK. Do not use two unbuffered 74VHCU04 linked together though. Sure, you can also build a fancy clock tree with buffers placed at the right nodes, yet this is only necessary when you have to deal with tens of chips to drive.

If 3.3V is allowed in your circuit, switch to 74LVC series. This gives you a better jitter spec. Yep, avoid any flops, dividers, etc, big logic gates. Timing wise, those multiple output pins are always not the same.

Now, if you want absolutely clean clock distribution, you can go for those clock distribution chips such as AD9511, or other offerings from ON Semi. AD9511's output jitter is only 225fs! Then you will have to deal with those balanced line design, LVDS, etc, probably too much for a DAC. For very high speed digital circuits, people are struggling with this clock tree design thing all the time.

-finney
 
Bricolo said:


About the clock distribution: by using the "clean clock" as BCK for the DAC (instead of the BCK output from the decoder/filter) the new clock's edges aren't certainly synchronized to the other I2S lines's edges (normally, all I2S lines including BCK are coming from the same decoder/filter chip, so the edges occurs at the same time). Isn't this jitter too?


I'd like to have some info about that.
 
Re: Re: Jitter, Clock Distribution and Glue Logic

finneybear said:




Hi Bricolo

It all depends on how far you want to go. How much extra jitter can you tolerate.

If you have decided to stick to KC7 then there will be not many choices. KC7's output comparator will add in a 20-50ps jitter to the clock output so definitely you should avoid adding any more gates to its output. The comparator is powerful enough to drive 20 TTL gates but this does not mean the jitter performance will be the same between driving 1 gate and drivng 20 gates. Try to limit the gate count to be under 4 or 5.

For 5V circuit, avoid any 74HC or 74AC/54AC chips, go for 74VHC or 74AHC. One 74VHCU04 inverter will add in about 20ps of jitter. If you want to boost the output driving capability, have the clock output drive 3 or 4 buffers in parallel then have the parallel buffer output drive other chips. In this case, the jitter added will be the worst one's among the buffers. Smiple 74VHC buffers will be OK. Do not use two unbuffered 74VHCU04 linked together though. Sure, you can also build a fancy clock tree with buffers placed at the right nodes, yet this is only necessary when you have to deal with tens of chips to drive.

If 3.3V is allowed in your circuit, switch to 74LVC series. This gives you a better jitter spec. Yep, avoid any flops, dividers, etc, big logic gates. Timing wise, those multiple output pins are always not the same.

Now, if you want absolutely clean clock distribution, you can go for those clock distribution chips such as AD9511, or other offerings from ON Semi. AD9511's output jitter is only 225fs! Then you will have to deal with those balanced line design, LVDS, etc, probably too much for a DAC. For very high speed digital circuits, people are struggling with this clock tree design thing all the time.

-finney

Hi Finney,

Thank you for your input!
Could you explain us where the jitter numbers you mention are coming from?
 
Re: Re: Jitter, Clock Distribution and Glue Logic

finneybear said:




Hi Bricolo

It all depends on how far you want to go. How much extra jitter can you tolerate.

If you have decided to stick to KC7 then there will be not many choices. KC7's output comparator will add in a 20-50ps jitter to the clock output so definitely you should avoid adding any more gates to its output. The comparator is powerful enough to drive 20 TTL gates but this does not mean the jitter performance will be the same between driving 1 gate and drivng 20 gates. Try to limit the gate count to be under 4 or 5.

For 5V circuit, avoid any 74HC or 74AC/54AC chips, go for 74VHC or 74AHC. One 74VHCU04 inverter will add in about 20ps of jitter. If you want to boost the output driving capability, have the clock output drive 3 or 4 buffers in parallel then have the parallel buffer output drive other chips. In this case, the jitter added will be the worst one's among the buffers. Smiple 74VHC buffers will be OK. Do not use two unbuffered 74VHCU04 linked together though. Sure, you can also build a fancy clock tree with buffers placed at the right nodes, yet this is only necessary when you have to deal with tens of chips to drive.

If 3.3V is allowed in your circuit, switch to 74LVC series. This gives you a better jitter spec. Yep, avoid any flops, dividers, etc, big logic gates. Timing wise, those multiple output pins are always not the same.

Now, if you want absolutely clean clock distribution, you can go for those clock distribution chips such as AD9511, or other offerings from ON Semi. AD9511's output jitter is only 225fs! Then you will have to deal with those balanced line design, LVDS, etc, probably too much for a DAC. For very high speed digital circuits, people are struggling with this clock tree design thing all the time.

-finney

Hi Finney

I generally agree with the remarks given above, but my jitter measurements on gates show lower values than you describe.

For a single inverter I can virtually see no additional jitter (I run into measurement limits) so these are around 2ps (I can hear them though :)

I measure jitter content between 10Hz and several kHz

Could you eleborate a little on your meaurement (method) ?

By the way, I looked at the AD9511: Their jitter spec is not stating BW.....

cheers
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.