[Bug Report] Does the min algorithm work correctly?
I am trying to use the min algorithm
"The Min algorithm compares 2 (or more) inputs and outputs the input with the lowest value."
But it seems to output the higher value, making it the same as the Max algorithm. Am I doing something wrong?
Audio Signal Processors
bug_report
basicdsp
adau1702
min
bugs
sigmastudio
SigmaDSP Audio Processors
max
Show More
I just tested this on the latest release version and I confirmed your results. It looks like a bug. Thanks for reporting this. I will forward it to the software team.
Just heard back from the software engineer. He accidentally made a change in the recent build that "broke" the Min cell. He's reverted the change and it should work in the next release. Thanks again for reporting this!
When will the next release be?
We typically don't have firm release dates set in advance, but I expect the next update will be in January or February.
Luckily, you can make a Min cell using a Max cell and some inverters:
This uses more instructions, but at least it implements the proper functionality.
Yep, that's what I did to replace it, on a hierarchy board.
Actually it looks like the AB in/out condition does the same thing, and uses fewer resources than the Max/Min block? Are there any cases in which the AB condition can't be used in place of a Max or Min block?
I use the AB condition block frequently, as you noted it can perform a min (or max) function, & it has always worked well for me.
J3627,
You're correct. You can implement this function with an AB condition as well. I don't suppose there is any real advantage or disadvantage to either method, except for the difference in instruction count.
Please log in to reply.



