Fix infinite loop in std_cache_pkg::one_hot_to_bin (resolves #1301)
requested to merge github/fork/planvtech/bug/1301/infinite_loop_in_std_cache_pkg_one_hot_to_bin into master
Created by: maxbjurling
Use int unsigned
for loop variable i
to avoid wrapping before loop exit condition is met.
Resolves bug https://github.com/openhwgroup/cva6/issues/1301