Pipelining
R2026bOptimize speed by using adaptive pipelining, clock-rate pipelining, and
distributed pipelining
Improve the timing and increase the clock speed of your design for a target FPGA or SoC device by reducing the critical path. You can reduce the critical path by using different pipelining methods, such as adaptive pipelining, clock-rate pipelining, and distributed pipelining.
Functions
hdlcoder.optimizeDesign | Automatic iterative HDL design optimization |
hdlcoder.supportedDevices | Show supported target hardware and device details |
coder.hdl.pipeline | Insert pipeline registers at output of MATLAB expression |
Classes
hdlcoder.OptimizationConfig | hdlcoder.optimizeDesign configuration object |
Model Settings
Blocks
Topics
Adaptive Pipelining
- Specify Adaptive Pipelining Settings
Automatic pipeline insertion based on the target device, target frequency, and multiplier word-lengths. - Design Patterns That Benefit from Adaptive Pipelining
For certain design patterns, you must enable the adaptive pipelining optimization to meet the timing requirements. - Optimize Clock Speed for MATLAB Code by Using Adaptive Pipelining
Use the adaptive pipelining optimization in HDL Coder™ to optimize clock speed for a MATLAB® design.
Distributed Pipelining
- Specify Distributed Pipelining Settings
Distributed pipelining settings, benefits and costs. - Distributed Pipelining Using Synthesis Timing Estimates
Use synthesis timing estimates for distributed pipelining to more accurately reflect how components function on hardware to better distribute pipelines and increase clock frequency for your target device. - Use Distributed Pipelining Optimization in Models with MATLAB Function Blocks
How to optimize HDL code for MATLAB Function blocks for speed by distributing design delays and generated pipeline stages.
Clock-Rate Pipelining
- Clock-Rate Pipelining
Pipeline registers insertion at the faster clock-rate instead of the slower data rate. - Increase Clock Frequency Using Clock-Rate Pipelining
This example shows how to apply clock-rate pipelining to optimize slow paths in your design and thereby reduce latency, increase clock frequency and decrease area usage.
General
- Pipelining MATLAB Code
Pipelining helps achieve a higher maximum clock rate by inserting registers at strategic points in the hardware to break the critical path. - Pipeline MATLAB Expressions
Insert registers at output of MATLAB expression. - Constrained Output Pipelining
Constrained output pipelining definition and use case. - Automatic Iterative Optimization
How automatic iterative optimization works, prerequisites and restrictions.
Related Information
Troubleshooting
Resolve Simulation Mismatch When Pipelining with a Feedback Loop Outside the DUT
Learn how to resolve simulation mismatch issues when using pipeline optimizations with feedback loops.




