Altera_Forum
Honored Contributor
13 years agoModelSim component : Instantiation of an instance failed
An instantiation in my code is failing with the error message
Error: (vsim-3039) ../design/mdct/DCT1D.vhd(155): Instantiation of 'FinitePrecRndNrst' failed. Following is the failing code block U_FinitePrecRndNrst : FinitePrecRndNrst generic map( C_IN_SZ => DA_W, C_OUT_SZ => DA_W-12, C_FRAC_SZ => 12 ) port map( CLK => clk, RST => rst, datain => dcto_4, dataval => ramwe_d4, dataout => fpr_out, clip_inc => open, dval_out => ramwe ); ============================================ The definition of FinitePrecRndNrst is like this: component FinitePrecRndNrst is generic ( C_IN_SZ : natural := 37; C_OUT_SZ : natural := 16; C_FRAC_SZ : natural := 15 ); port ( CLK : in std_logic; RST : in std_logic; datain : in STD_LOGIC_VECTOR(C_IN_SZ-1 downto 0); dataval : in std_logic; dataout : out STD_LOGIC_VECTOR(C_OUT_SZ-1 downto 0); clip_inc : out std_logic; dval_out : out std_logic ); ==================================================== This code is something which i am testing so would appreciate any help in why this is happening. Thank you !!