matlab-model-ams-systems

Model PLL frequency synthesizers from datasheets using Simulink Mixed-Signal Blockset.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-model-ams-systems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-model-ams-systems
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/rf-and-mixed-signal/matlab-model-ams-systems
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-model-ams-systems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Building a working PLL model in Simulink from an IC datasheet is error-prone: unguided attempts pick the wrong solver, miswire blocks, and produce non-functional models. This Skill encodes the correct Mixed-Signal Blockset workflow so the agent extracts datasheet parameters, selects the right architecture, designs the loop filter, and validates lock time and phase noise against specs.

Core Features & Use Cases

  • Datasheet-to-Model Workflow: Extract PLL parameters (PFD, charge pump, dividers, VCO, noise) from a PDF datasheet and map them to msbPllArchitectures or msbPllFoundation blocks.
  • Architecture Selection & Assembly: Choose between Integer-N, Fractional-N (accumulator or DSM), and Dual Modulus topologies, then batch-assemble the Simulink model with correct solver and testbench configuration.
  • Loop Filter Design & Validation: Design 2nd/3rd/4th-order passive filters, verify phase margin with Bode analysis, and validate phase noise with estimatePLLPhaseNoise and post-simulation measurements.
  • Use Case: Given an ADF4351 datasheet and a 5 µs lock time target, the agent derives N, Fc, and Kvco, builds the model in one batched script, simulates, and reports measured lock time with pass/fail margin in an HTML report.

Quick Start

Ask the agent to model a PLL from your datasheet PDF or from basic specs like output frequency, reference frequency, and lock time target.

Frequently Asked Questions about matlab-model-ams-systems

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model a PLL from a datasheet in Simulink?

Extract parameters from the datasheet PDF using MATLAB's extractFileText, identify the architecture (Integer-N, Fractional-N, or Dual Modulus), then assemble the model from msbPllArchitectures blocks. Design the loop filter with thirdOrderPassiveFilterDesign and validate with the PLL Testbench.

What is the difference between msbPllArchitectures and msbPllFoundation blocks?

msbPllArchitectures provides pre-built PLL templates that simulate about 3.3x faster with fewer blocks and connections, making it the default choice. msbPllFoundation offers individual PFD, charge pump, loop filter, and VCO blocks for non-standard topologies like dual-loop or external VCO designs.

Which MATLAB toolboxes are required for PLL phase noise simulation?

You need Simulink and Mixed-Signal Blockset (R2021a or later) for the msbPllFoundation and msbPllMeasurements libraries. The estimatePLLPhaseNoise function additionally requires Control System Toolbox and is only available from R2026b onward.

Why does my PLL simulation report a lock time of zero?

Lock time of zero means Vctrl ripple exceeds the PLL Testbench FreqErrorTol parameter, common in Fractional-N PLLs due to DSM quantization noise. Measure the steady-state ripple, convert it to frequency via Kvco, then either relax the tolerance or narrow the loop bandwidth.

When should I not use Mixed-Signal Blockset for PLL design?

Avoid it for transistor-level circuit design such as custom VCO or charge pump schematics, and for pure analytical phase noise estimation without a Simulink model. It also does not cover clock distribution or jitter cleaning applications that are not frequency synthesis.