Answer
Oct 18, 2023 - 09:34 AM
Just from the figure I can see that this is an implementation issue. Top signal in the sorter specifies number of elements to sort and that is mostly set at 0 and at 0.1s intervals it goes to 1. Sorter does not sort all the elements, once the specified number of elements are sorted it stops sorting further. Since Enab signal is set to 1, the component sorts at every time steps until the required number of elements ( 0 or 1 in your case) is sorted. One element is sorted at 0.1s intervals and all the other times it sorts only 0 elements.
You may want to connect sort_sig to "Enab" port in the sorter and connect an integer input between 1 and 6 to the top port.
You may want to connect sort_sig to "Enab" port in the sorter and connect an integer input between 1 and 6 to the top port.
Add New Comment