Building a Peak/pulse-detector macro block for HDL coder (SIMULINK)

This feels a bit like re-inventing the wheel...
Is there a peak detection function for DSP, that works on streaming data that can either be generated to HDL with HDL coder or re-built using xilinx macros to target hardware?
Are there example projects where I can re-use some of this?
I am trying to create some hardware block that detects peaks from the output of a hardware FFT. This data is streaming data on a sample clock and not vectorized data.

Answers (2)

This was helpful, But using a matched FIR filter may be too complex for my needs.
I would like to compare it to the solution used in this matlab video here:
Using Simulink to Deploy a MATLAB Algorithm on an FPGA or ASIC
sim_pulse_detector_003/PeakDetector

1 Comment

I believe the video is made using this material on the github
MathWorks HDL Coder Team (2026). HDL Coder Self-Guided Tutorial (https://github.com/mathworks/HDL-Coder-Self-Guided-Tutorial/releases/tag/1.75.0), GitHub. Retrieved March 5, 2026.

Sign in to comment.

Categories

Find more on FPGA, ASIC, and SoC Development in Help Center and File Exchange

Products

Release

R2025a

Asked:

on 4 Mar 2026 at 18:55

Edited:

about 9 hours ago

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!