Forum Discussion
Altera_Forum
Honored Contributor
17 years agothank you for your help.
--- Quote Start --- this is the package(mult_package.vhd) LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_arith.all; PACKAGE pack IS FUNCTION mult(a,b:UNSIGNED) RETURN UNSIGNED; END pack; PACKAGE BODY pack IS FUNCTION mult(a,b:UNSIGNED) RETURN UNSIGNED IS CONSTANT max: INTEGER :=a'LENGTH + b'LENGTH - 1; VARIABLE aa: UNSIGNED (max DOWNTO 0):=... --- Quote End --- i just forgot one ";" near END pack and that will solve the 4 of the errors then i change my package name as my_pack also in the code PACKAG my_pack; the PACKAGE name must be the same name of the file. i found it:) cheers these are solve my problems :) thank you for your interest