[an error occurred while processing this directive]
|
PARAMETERS
(
F0=32768,
F=2048,
Vorota=10^4,
Tochnost=10^8
);
CONSTANT ns=log2(2*Tochnost);
CONSTANT nu=log2(Tochnost div Vorota);
CONSTANT ds=((2^ns) div (f0 div f))-(2^(nu-1));
CONSTANT nd=log2(ds);
CONSTANT NN=ns;
CONSTANT N=nu;
SUBDESIGN fdiv
(
clk : INPUT;
ax[nu-1..0] : INPUT;
fout : OUTPUT;
)
VARIABLE
s[ns-1..0] : DFF;
a[ns-1..0] : NODE;
b[ns-1..nu] : NODE;
BEGIN
ASSERT
REPORT "ns=% nu=% nd=%" ns,nu,nd
SEVERITY INFO;
a[ns-1..nd]=0;
a[nd-1..0]=ds;
b[]=0;
s[].clk=clk;
s[]=s[]+a[]+(b[],ax[]);
fout=s[ns-1];
END;
E-mail: info@telesys.ru