-- -- Copyright 1992 -- Your Company Name -- All Rights Reserved -- -- File name : -- Title : -- Notes : -- Author(s) : -- -------------------------------------------------------------------- -- MODIFICATION HISTORY : -- -------------------------------------------------------------------- -- version no:| author:| mod. date:| changes made: -- V0.100 | | | Original Code -- -------------------------------------------------------------------- library library_name; use library_name.all; Package name_of_package is ------------------------------------------------------------------------ TYPE DECLARATIONS --------------------------------------------------------------------- -- TYPE type_name IS ( enumeration ); ------------------------------------------------------------------------ SUBTYPE DECLARATIONS ---------------------------------------------------------------------- -- SUBTYPE subtype_name IS type_name ( range ); ------------------------------------------------------------------------ MORE TYPE DECLARATIONS ---------------------------------------------------------------------- -- TYPE array_name IS ARRAY ( natural range <> ) of type_name ------------------------------------------------------------------------ FUNCTION DECLARATIONS ---------------------------------------------------------------------- -- FUNCTION function_name ( parameters : type ) RETURN type; -- What follows are several type-conversion functions that EDN -- wrote for our own use. You are free to use them as you wish. -- The elaborations of these declarations are located in the -- package_body. FUNCTION to_logic(int,length:integer) RETURN std_logic_vector; FUNCTION to_integer (bits:std_logic) RETURN integer; FUNCTION to_integer (bits:std_logic_vector) RETURN integer; FUNCTION to_int (bits:std_logic_vector) RETURN integer; FUNCTION sign_extend (bits:std_logic_vector) RETURN std_logic_vector; FUNCTION inc_reg (bits:std_logic_vector; stop:boolean) RETURN std_logic_vector; FUNCTION dec_reg (bits:std_logic_vector; stop:boolean) RETURN std_logic_vector; ------------------------------------------------------------------------ PROCEDURE DECLARATIONS ---------------------------------------------------------------------- -- PROCEDURE procedure_name ( parameter_list : mode type ); end Z80_inst1; end name_of_package;