Count unique values in an array or a queue

In reply to dave_59:

Hi @dave_59,

Thank you very much for the information. I am using VCS 2023.03 version. I tested in EDA playground. Yes, the first method works well with Mentor Questa 2021.3. I will use the second method for the moment as VCS does’t support function chaining yet.

Thanks again!