sort() in HDL Coder
Show older comments
Hi, there is no sort() block in HDL Coder, right? I see there is a Simulink sort block in DSP toolbox under Simulink but it falls away in HDL coder library and is not HDL code generation compatible. Has anyone come across having to sort() for HDL coder as I don't want to write it all from scratch? Thanks
Answers (2)
Bharath Venkataraman
on 22 Sep 2016
1 vote
If you have the Vision HDL Toolbox, it has a Histogram block that is optimized for HDL.
4 Comments
DN
on 23 Sep 2016
Walter Roberson
on 23 Sep 2016
Frame to Pixel Block can be fed with any 2D array, no actual video format required. The pixelcontrol bus signal will be created from the array.
DN
on 26 Sep 2016
DN
on 26 Sep 2016
Bharath Venkataraman
on 31 Jul 2016
0 votes
There is no support for sort, but it may be useful to know why you would like to implement sort. Is it for a median filter, which is supported?
3 Comments
DN
on 31 Jul 2016
Ok thanks Bharath. No I wanted to write a histogram block in Simulink (I don't have the image processing toolbox), basically a histc() function is what I wanted to replicate within Simulink but also in the future be HDL compatible (although histc is being replaced I see by hiscount I saw), but anyway the main point being that in the way I wanted to write a HDL histogram block in my user defined fu block I need to order it in ascending order before I can select the binning process - hence I need sort(). How does the median filter block look like and how can I use this for sorting in my case?
Walter Roberson
on 31 Jul 2016
You do not need sorted order to select the binning process. You need to know the range of values which you can get with max and min
DN
on 2 Aug 2016
Categories
Show more
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!