Kod: Zaznacz cały
function br_to_natural (br : in bit_vector) return natural is
variable result : natural :=0;
begin
for index in br'range loop
result :=result*2 + bit'pos (br(index)),
end loop;
return result;
end function br_to_natural;
Edit: brak w nim
Kod: Zaznacz cały
[/color]