Altera_Forum
Honored Contributor
14 years agohelp in for loop
sir,here is my small code
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; -- Uncomment the following library declaration if using -- arithmetic functions with Signed or Unsigned values --use IEEE.NUMERIC_STD.ALL; -- Uncomment the following library declaration if instantiating -- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; entity nu is Port ( ---a : in STD_LOGIC_VECTOR (6 downto 0); b : out STD_LOGIC_VECTOR (6 downto 0)); end nu; architecture Behavioral of nu is constant f : std_logic_vector(7 downto 0) :="01011001"; signal result : integer; begin k1 : for i in 0 to 4 generate result <= conv_integer(signed(f))*i; b <= conv_std_logic_vector(result,7);<--- error in this line. end generate; end Behavioral; Analyzing Entity <nu> in library <work> (Architecture <Behavioral>). ERROR:Xst:800 - "C:/.Xilinx/gateor/float.vhd" line 44: Multi-source on Integers in Concurrent Assignment. plz fix my problem.