for i in 0 to 7 loop
if(InD(i)='1') then
Number:=Number+value;
end if;
value:=value*2;
end loop;
Number is integer and contains the value of the vector InD
InD is the input vector
value is an integer
How can I divide a bit vector in VHDL by another one? The divider is not a power of 2.( if it was a simple shift operation would do the job) For exaple divide 1010110 with 011.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.