how to generate hdl code for edge detection block in simulink
11 views (last 30 days)
Show older comments
Accepted Answer
Walter Roberson
on 7 Feb 2016
Serialize and Deserialize. See http://www.mathworks.com/help/hdlcoder/examples/using-ip-core-generation-workflow-sobel-edge-detection.html
2 Comments
Walter Roberson
on 7 Feb 2016
If I understand correctly, there is one Edge Detection Block that can be configured for different detectors including Sobel and Canny. The link above shows an example of using a Serialize block to pass an array in to an Edge Detector block, and a Deserialize block to decode.
Unfortunately I do not have that product so I cannot open the models to find out exactly which blocks they used.
More Answers (1)
Bharath Venkataraman
on 8 Feb 2016
The Vision HDL Toolbox has an Edge Detection block that is suitable for HDL code generation. That block takes in serial input, much like you would expect the FPGA or ASIC to do. I suggest using that block instead of the one from Computer Vision System Toolbox.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!