主要内容

速度与面积优化

通过资源复用、流式传输、流水线、RAM 映射进行改进

针对目标硬件,通过使用速度和面积优化从 MATLAB® 函数生成满足时序和面积要求的 HDL 代码。面积优化可减少设计的资源使用量。速度优化通过优化关键路径改进目标 FPGA 上的时序,使设计以更高频率运行。要了解 HDL Coder™ 中每种类型的优化的更多信息,请参阅Speed and Area Optimizations in HDL Coder

函数

coder.hdl.loopspecUnroll or stream loops in generated HDL and High-Level Synthesis (HLS) code
coder.hdl.pipelineInsert pipeline registers at output of MATLAB expression
coder.hdl.ramconfigSpecify RAM mapping configuration for persistent array variables (自 R2023b 起)
hdl.npufunApply neighborhood processing and element-wise operations to incoming image or matrix for frame-to-sample conversion (自 R2022b 起)
hdl.iteratorfunApply iterative operation to an incoming image or matrix for frame-to-sample conversion (自 R2022b 起)

主题

优化基础知识

面积优化

速度优化

I/O 优化

精选示例