-- package containing hardware-oriented spec types library IEEE; library vfp; use IEEE.std_logic_1164.all; use vfp.integer_class.all; package reg_file_class is constant depth : integer := 32; constant data_width : integer := 8; type reg_file_data_bus is array (integer range <>) of std_ulogic_vector(data_width-1 downto 0); type reg_file_address_bus is array (integer range <>) of std_ulogic_vector(log_2(depth)-1 downto 0); end reg_file_class;