04-24-2012 12:48 AM
Hello everybody.
My problem is;
For Example;
TYPE number_type IS ARRAY (0 to 1) of integer range 0 to 15;
signal number: number_type := (2,8);
signal dx : integer;
----
----
dx <= abs(number(0)-number(1));
There is no problem... I can subtract these two numbers.
But, When I gererate these numbers as a random, It can not subtract numbers, but it can add. I am checking random numbers, they are correct random numbers, there is no problem about random. Subtraction doesnt work.
I dont know it is clear? If no, i can send VHDL codes. Thanks for your help.....
04-24-2012 01:17 AM
Hi,
what error messages do you get from XST?
Are you using the right types? (Casting or conversion needed somewhere?)
What about the simulation? Does it work there?
Have a nice synthesis
Eilert
04-24-2012 01:26 AM
04-24-2012 01:40 AM
I think I have found solution. Thank you very much....
04-24-2012 10:23 AM
@adtun wrote:
I think I have found solution. Thank you very much....
Please enlighten the rest of us.