Division with std_logic_vector

Joined
Mar 2, 2008
Messages
4
Reaction score
0
I need to implement a chaotic function in a design with VHDL. I use std_logic_vector signals and I need to implement 4 divisions. However, i recieve an error message saying: "Line 40. / can not have such operands in this context."

I use:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;



Can you please help me?
 
Joined
Mar 2, 2008
Messages
4
Reaction score
0
The code

This is the code i used:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity imp is
Port ( in1 : in STD_LOGIC_VECTOR (7 downto 0);
in2 : in STD_LOGIC_VECTOR (7 downto 0);
ies : in STD_LOGIC_VECTOR (7 downto 0));
end imp;

architecture Behavioral of imp is

begin

ies <= in1/in2;

end Behavioral;
 
Joined
Mar 2, 2008
Messages
4
Reaction score
0
Please comment in any way my post. Is there any way I can implement a division using std_logic_vector?
 
Joined
Mar 2, 2008
Messages
4
Reaction score
0
Thank you jeppe!

I thought it was something like a spelling error, or a library I should have added. If I need to make a design, I think it is better to use the core generator from my Xilinx ISE...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,919
Members
47,459
Latest member
Vida00R129

Latest Threads

Top