N
Niv
Guest
I want to a number calculated in my test bench.
I have, for instance, two processes, which each increment a counter
when they are executed.
I would like to compare the amount the processes are run, so x(real)
<= cntr1/cntr2, where cntr are both unsigned 32 bit vectors (unlikely
to reach 2^32 iterations!).
[ or, x(real) <= cntr1/(cntr1 + cntr2) ]
But numeric_std has no real maths in it (that I can find)
Any ideas please?
TIA, Niv.
I have, for instance, two processes, which each increment a counter
when they are executed.
I would like to compare the amount the processes are run, so x(real)
<= cntr1/cntr2, where cntr are both unsigned 32 bit vectors (unlikely
to reach 2^32 iterations!).
[ or, x(real) <= cntr1/(cntr1 + cntr2) ]
But numeric_std has no real maths in it (that I can find)
Any ideas please?
TIA, Niv.