![]() |
|
|
|||||||
![]() |
VHDL - Division with std_logic_vector |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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? danell |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Mar 2008
Posts: 4
|
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; danell |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2008
Posts: 4
|
Please comment in any way my post. Is there any way I can implement a division using std_logic_vector?
danell |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2008
Posts: 4
|
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... danell |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VHDL differential equations, multiplication division by powers of 10 | boer | Hardware | 0 | 04-24-2009 12:28 PM |
| Division by repeated multiplication VHDL | stevebarly | Software | 0 | 05-21-2008 11:11 AM |
| Gi Hold Retail Division | cafemingle@yahoo.se | DVD Video | 0 | 01-08-2008 01:21 AM |
| Fast Integer Division In Vhdl | Vitrion | Hardware | 0 | 11-01-2007 07:33 AM |