This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

PFD

Phase/frequency detector that compares phase and frequency between two signals

  • Library:
  • Mixed-Signal Blockset / PLL / Building Blocks

Description

The PFD block produces two output pulses that differ in duty cycle. The difference in the duty cycle is proportional to the phase difference between input signals. In frequency synthesizer circuits, such as phase-locked loops (PLL), the PFD block compares the phase and frequency between the reference signal and signal generated by the VCO block and determines the phase error.

Ports

Input

expand all

Input port that transmits reference frequency to determine phase error.

Data Types: double

Output port that transmits the feedback frequency to determine the phase error. In a PLL system, the output of the VCO is fed back through feedback port to PFD after passing through a clock divider.

Data Types: double

Output

expand all

Output port that transmits reference frequency to Charge Pump to convert the phase error into current. The difference in the duty cycle of signals in up and down ports is proportional to the phase difference between the signals in reference and feedback ports.

Data Types: double

Output port that transmits feedback frequency to Charge Pump to convert the phase error into current. The difference in the duty cycle of signals in up and down ports is proportional to the phase difference between the signals in reference and feedback ports.

Data Types: double

Parameters

expand all

Configuration

Delay added for active output near zero phase offset, specified as a positive scalar in s. Deadband is the phase offset band near zero phase offset for which the PFD output is negligible.

Programmatic Use

  • Use get_param(gcb,'DeadbandCompensation') to view the current value of Deadband compensation.

  • Use set_param(gcb,'DeadbandCompensation',value) to set up Rise/fall time to a specific value.

Data Types: double

Select to enable increased buffer size during simulation. This increases the buffer size of the Variable Pulse Delay, Logic Decision, and Slew Rate blocks inside the PFD block. By default, this option is deselected.

Number of samples of the input buffering available during simulation, specified as a positive integer scalar. This sets the buffer size of the Variable Pulse Delay, Logic Decision, and Slew Rate blocks inside the PFD block.

Selecting different simulation solver or sampling strategies can change the number of input samples needed to produce an accurate output sample. Set the Buffer size to a large enough value so that the input buffer contains all the input samples required.

Dependencies

This parameter is only available when Enable increased buffer size option is selected in the Configuration tab.

Programmatic Use

  • Use get_param(gcb,'NBuffer') to view the current value of Buffer size.

  • Use set_param(gcb,'NBuffer',value) to set Buffer size to a specific value.

Impairments

Select to add circuit impairments to simulation. By default, this option is deselected.

Determine how output step size is calculated.

  • Select Default to calculate output step size from rise/fall time.

  • Select Advanced to calculate output step size from maximum frequency of interest.

Dependencies

To enable this parameter, select Enable Impairments in the Impairments tab.

20%-80% rise/fall time for the up output port.

Dependencies

To enable this parameter, select Enable Impairments in the Impairments tab.

Programmatic Use

  • Use get_param(gcb,'RiseFallTime') to view the current value of Rise/fall time.

  • Use set_param(gcb,'RiseFallTime',value) to set Rise/fall time to a specific value.

Minimum propagation delay, specified as a scalar in ps.

Dependencies

To enable this parameter, select Enable Impairments in the Impairments tab.

Programmatic Use

  • Use get_param(gcb,'EventConvDelay') to view the current value of Minimum propagation delay values.

Delay from the input port to output port, specified as a scalar in s.

Dependencies

To enable this parameter, select Enable Impairments in the Impairments tab.

Programmatic Use

  • Use get_param(gcb,'PropDelay') to view the current value of Propagation delay values.

  • Use set_param(gcb,'PropDelay',value) to set Propagation delay to a specific value.

More About

expand all

References

[1] Banerjee, Dean. PLL Performance, Simulation and Design. Indianapolis, IN: Dog Ear Publishing, 2006.

Introduced in R2019a