KingMoshe
Member level 2
Hello,
I have a design that include counter.
after I finish to count I want to normalize the counter as below:
NUM = 15/(counter*0.000000221)
I want that NUM to be integer.
Example:
counter = 15000
NUM = 15/(15000*0.000000221) = 4524.886878 = 4524(rounded)
at the end I want to save to register the number 4524.
How can I do it?
Thanks,
Moshe
I have a design that include counter.
after I finish to count I want to normalize the counter as below:
NUM = 15/(counter*0.000000221)
I want that NUM to be integer.
Example:
counter = 15000
NUM = 15/(15000*0.000000221) = 4524.886878 = 4524(rounded)
at the end I want to save to register the number 4524.
How can I do it?
Thanks,
Moshe