Eliminated some warnings - changes mostly cosmetic

Change-Id: Ic7a7a107f9343bac2b49512d92ee2ad8f13c8bb2
This commit is contained in:
David Banks 2015-11-29 12:22:13 +00:00
parent de16b3af1a
commit 5410c32db3

View File

@ -176,9 +176,7 @@ function LOG2(Number : positive) return natural is
variable Temp : positive;
begin
Temp := 1;
if Number=1 then
return 0;
else
if Number>1 then
for i in 1 to integer'high loop
Temp := 2*Temp;
if Temp>=Number then
@ -186,6 +184,7 @@ if Number=1 then
end if;
end loop;
end if;
return 0;
end LOG2;
-- End of functions