Реферат: Устройство преобразования цифровой информации с ее шифрованием
end BK;
function MYFUN (X : real ; N : integer
) return real is
variable result, pi: real;
variable k2, k1:integer;
variable RR, l1,l2,l3,g1,g2,g3: real;
begin pi:= 3.14;
result := 0.0;
if abs(x) > (3.14/2) then return result;
end if;
for i in 1 to N loop
K1 := integer(pwr(2.0,i)); K2:= k1 - 1;
L1 := pwr(2.0,k2);
L2 := pwr(2.0,k1); L3 := pwr(x,k1);
G1 := fakt(real(k1));
G2 := mut(REAL(n),g1); Rr := mut(l1,(l2-1.0));
G3 := BK(x,i);
Rr := mut(rr,G3); Rr := mut(rr,l3); result:=rr/g2;
end loop;
return result;
end MYFUN;
function tostd (X1 : real ) return
STD_LOGIC_VECTOR is variable
result:STD_LOGIC_VECTOR ( 31 downto
0)
:="00000000000000000000000000000000"
;
variable X,myn,a,b,c: real; variable pr,w: integer; begin
X :=X1;