Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- let say now i set the threshold as 1000000, and above this value, the peak values and their locations will be outputted in a single waveform as shown in the attached picture, and how to save each peak value and location in different registers for me to do further calculations? --- Quote End --- run a counter enabled only when a peak occurs. so you then save peak0 at count0 into reg[0] then save peak1 at count1 into reg[1] and so on.