background image

Frequency Generator for the Spartan-3E Starter Kit 11

Final Output Waveforms

These waveforms were obtained from stake pin ‘J4-IO12’ and reflect the final output of the frequency generator. Once again the digital storage 

oscilloscope was set to infinite persistence in order capture any fluctuations over time and therefore observe the ‘envelope’ of operation.

In these cases the frequency shown on the LCD display directly corresponds to the frequency 

provided at the output. However it is useful to understand what the phase accumulator is 

generating to appreciate if the second DCM in ‘frequency aligned mode’ is helping.

For this 12.5MHz waveform N=08000000 hex and D=02 hex. So in fact the phase accumulator 

is synthesizing 6.25MHz. This is again a perfect division of the 200MHz clock and means that 

the synthesized waveform is always formed of 32 clock periods with 16 Low and 16 High. There 

is therefore no obvious cycle jitter introduced and therefore it is not surprising that the final 

output (6.25MHz × 16 / 2

(2+1) 

= 12.5MHz) is also nice and clean.

Hint – When using a DCM in frequency aligned mode, you must accept that it does NOT maintain phase lock as it does in all other ‘normal’ modes. More 

significantly the output frequency is the average of the input frequency which means there will often be a slight difference as it 

tracks

the input. 

You may have to look closely to notice that this second plot really is 12.4125MHz. It is immediately 

clear that there is no obvious cycle to cycle jitter present. To confirm that this isn’t just a 

coincidence, we must again consider what the phase accumulator is doing at the same time.

The final output (12.1425MHz × 16 / 2

(3+1) 

= 12.1245MHz) shows that the frequency aligned 

mode of the DCM is tracking the average frequency of the input waveform and totally ignoring 

the phase of the input waveform resulting in a very low cycle to cycle jitter. In fact the DCM is 

only using the frequency information from the input waveform and the output cycle jitter is totally 

independent of the input cycle jitter.

With 12.4125MHz set, N=0FE353F7 hex and D=03 hex. So in fact the

phase accumulator is actually synthesizing 12.4125MHz as well. More 

significantly, it means that the phase accumulator is generating

exactly the same waveform as we observed previously on page 9 in

which there was 5ns of cycle to cycle jitter present (see right).

Phase Accumulator

Summary of Contents for Pico Blaze Frequency Generator

Page 1: ...Frequency Generator for Spartan 3E Starter Kit Ken Chapman Xilinx Ltd 18th July 2006 Rev 1 With special thanks to Peter Alfke and Alireza Kaviani...

Page 2: ...iable for any loss of data lost profits cost or procurement of substitute goods or services or for any special incidental consequential or indirect damages arising from the use or operation of the des...

Page 3: ...to the hardware which means that you can use this design with your board to determine the exact values required to implement a fixed frequency synthesizer without requiring PicoBlaze the knob and LCD...

Page 4: ...ck line under the digit in the top line Edit digit value mode Press and release knob to toggle between frequency editing modes Edit cursor position mode In this mode rotating the knob to the left or r...

Page 5: ...frequency version Number of occupied Slices 172 out of 4 656 3 Number of Block RAMs 1 out of 20 5 DCMs 2 out of 4 50 Total equivalent gate count for design 91 537 PicoBlaze makes extensive use of the...

Page 6: ...included with the reference design as it is provided with PicoBlaze download Please visit the PicoBlaze Web site for your free copy of PicoBlaze assembler JTAG_loader and documentation www xilinx com...

Page 7: ...ecimal so the output from the phase accumulator is 9 5MHz a period of approximately 105ns That means that the accumulator synthesizes one output cycle for approximately 21 cycles of the 200MHz clock f...

Page 8: ...led 3 led 2 led 1 led 0 led 7 output_ports rotary_a rotary_press rotary_b lcd_rs lcd_e lcd_rw lcd 7 6 lcd 6 lcd 5 lcd 4 lcd 7 lcd 6 lcd 5 lcd 4 bidirectional LCD data rotary_press_in See reference de...

Page 9: ...cycles 200MHz 8 cycles 200MHz This waveform shows what happens when you try to synthesize a 12 4125MHz clock using the phase accumulator There is clearly 5ns of cycle to cycle jitter in this situatio...

Page 10: ...ynthesis process and this is reflected by a distinct 12 5MHz component which is 45dB above the noise floor The zoomed plot shows how the fundamental covers only a narrow bandwidth keeping in mind that...

Page 11: ...mode you must accept that it does NOT maintain phase lock as it does in all other normal modes More significantly the output frequency is the average of the input frequency which means there will oft...

Page 12: ...tay balanced because we are unable to freeze completely due to other influences on us and the need to breath etc 12 5MHz Fundamental 5MHz division 10dB division 1MHz division 10dB division 3rd Harmoni...

Page 13: ...mming File Then right click and select Properties to open the Process Properties box 2 The Process Properties box should open with the General Options being shown otherwise select General Options on t...

Page 14: ...frequencies you require then reduce the design to a phase accumulator driven by a constant N the DCMs and a fixed counter divider no multiplexer Hint If you still operate the phase accumulator at 200...

Reviews: