If your formula for bmi (in the text before your code) is BMI = W / (L*L), then what is the /10000 in line 19 for? Also, if L is in meters you aren't going to have much resolution in your results. The integer results are also going to make things worse.
yes L is in meter and i use 10000 to convert it to cm this program doesn't work with me when i ask they say that this program can't deal with it like software programming i have tto define divided operation as hardware implementation.
I suggest you post the full code but my first suggestion is that you better use real in stead of std_logic_vector. And I assume you're not going to implement this in real logic?
this part of my project i have to calculate the value of fat in human body. i use before that integer instead of std_logic_vector it has the same problem is at end i delete that from my project to make it work
^_^
at end i did that i suppose that this is must be software task so i just did that i revive the value of bmi from external source and i did my whole program on that suppose.
yes i do. i fix all error that i was getting ^_^
we can't help you further if you don't post some code, but as tricky suggested, body mass index is a task that is better to implement in software. The same is true for fat percentage calculation.