sort() in HDL Coder
显示 更早的评论
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
回答(2 个)
Bharath Venkataraman
2016-9-22
1 个投票
If you have the Vision HDL Toolbox, it has a Histogram block that is optimized for HDL.
4 个评论
DN
2016-9-23
Walter Roberson
2016-9-23
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
2016-9-26
DN
2016-9-26
Bharath Venkataraman
2016-7-31
0 个投票
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 个评论
DN
2016-7-31
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
2016-7-31
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
2016-8-2
类别
显示更多
在 帮助中心 和 File Exchange 中查找有关 Video Formats and Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!