Nazar R. wrote:
> Can eny one help me?
1.) Read the manual of the edit box:
1 | Reply
|
2 | Rules — please read before posting
|
3 | :
|
4 | Formatting options
|
5 | :
|
6 | [vhdl]VHDL code[/vhdl]
|
2.) Use indention and advanced formatting to get a readable code.
1 | if sqrt(sqrt1) mod 1.0/= 0.0 then
|
2 | while sqrt(sqrt1+k1*p1) mod 1.0 /= 0.0 loop
|
3 | k1<=k1+1.0;
|
4 | exit when sqrt(sqrt1+k1*p1) mod 1.0 > 0.0;
|
5 | end loop;
|
6 | g1<=sqrt(sqrt1+k1*p1) mod p1;
|
7 | else
|
8 | g1<=sqrt(sqrt1)mod p1;
|
9 | end if;
|
3.) What data types have the used signals?
Integer? Real?
> p1=< 28623421
What is "p1"? Is it the input parameter for the incomplete function or
the unknown process?
> For example p1=< 28623421, sqrt1 >= p1.
What does that mean? What do you expect? What do you get instead? And
HOW do you get that?
Simply attach the complete *.vhd file...