M
Mostafa
Guest
Hi,
I am a newcomer to VHDL and the Xilinx ISE. I have no previous
experience and my knowledge of the ISE and VHDL are rather low . I
needed to use the 16pt. IFFT core and so I used the CORE Generator to
generate it. Now the problem is that the core expects 2's complemented
inputs and outputs in the form of STD_LOGIC_VECTOR. I had a look at
the VHDL datatypes and saw that the SIGNED type is suitable for 2s
complement representations .. now I am really confused about all these
and have no clue what to do .. I tried changing the
std_logic_vector(a:b) lines to SIGNED(a:b) but the compiler gives me a
warning that only std_logic and std_logic_vector types are available.
I have included the library line "use IEEE.STD_LOGIC_ARITH.ALL".
Can someone please tell me how to get around this??
Actually the main problem I have is with the 2s complement
representation of signed real numbers .. as long as my output values
are integers it's OK .. but when I have fractional outputs I get a '1'
if the number is positive, and a '0' if the number is a negative
fraction. so far I only got it to work for values like 1,-1,and,0.
I am a newcomer to VHDL and the Xilinx ISE. I have no previous
experience and my knowledge of the ISE and VHDL are rather low . I
needed to use the 16pt. IFFT core and so I used the CORE Generator to
generate it. Now the problem is that the core expects 2's complemented
inputs and outputs in the form of STD_LOGIC_VECTOR. I had a look at
the VHDL datatypes and saw that the SIGNED type is suitable for 2s
complement representations .. now I am really confused about all these
and have no clue what to do .. I tried changing the
std_logic_vector(a:b) lines to SIGNED(a:b) but the compiler gives me a
warning that only std_logic and std_logic_vector types are available.
I have included the library line "use IEEE.STD_LOGIC_ARITH.ALL".
Can someone please tell me how to get around this??
Actually the main problem I have is with the 2s complement
representation of signed real numbers .. as long as my output values
are integers it's OK .. but when I have fractional outputs I get a '1'
if the number is positive, and a '0' if the number is a negative
fraction. so far I only got it to work for values like 1,-1,and,0.