nishantspanwar
Newbie level 3
- Joined
- May 26, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,308
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
use IEEE.NUMERIC_STD.ALL;
use ieee.std_logic_unsigned.all;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity div is
Port ( ad : in STD_LOGIC_VECTOR (16 downto 0);
bd : in STD_LOGIC_VECTOR (7 downto 0);
q : out STD_LOGIC_VECTOR (16 downto 0);
r : out STD_LOGIC_VECTOR (7 downto 0));
end div;
architecture Behavioral of div is
begin
q <= ad / bd;
r <= ad rem bd;
end Behavioral;
ERRORS:
ERROR:HDLCompiler:9 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 41: Found 0 definitions for operator "/".
ERROR:HDLCompiler:9 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 42: Found 0 definitions for operator "rem".
ERROR:HDLCompiler:854 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 39: Unit <behavioral> ignored due to previous errors.
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
use IEEE.NUMERIC_STD.ALL;
use ieee.std_logic_unsigned.all;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity div is
Port ( ad : in STD_LOGIC_VECTOR (16 downto 0);
bd : in STD_LOGIC_VECTOR (7 downto 0);
q : out STD_LOGIC_VECTOR (16 downto 0);
r : out STD_LOGIC_VECTOR (7 downto 0));
end div;
architecture Behavioral of div is
begin
q <= ad / bd;
r <= ad rem bd;
end Behavioral;
ERRORS:
ERROR:HDLCompiler:9 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 41: Found 0 definitions for operator "/".
ERROR:HDLCompiler:9 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 42: Found 0 definitions for operator "rem".
ERROR:HDLCompiler:854 - "C:/Users/ankit/Desktop/Final Major project code/simple_mul/div.vhd" Line 39: Unit <behavioral> ignored due to previous errors.