is it possible to declare an array containing own entities?
I'm trying to get 16 registers (4 bit address) and wanted to access them using an array. I have a "register" entity and a register-manager entity, that is accessed by the ALU with the address:
Register:
entity register is
port(en : in STD_LOGIC;
d_in : in STD_LOGIC_VECTOR(7 downto 0);
d_out : out STD_LOGIC_VECTOR(7 downto 0));
end register;
Register-Manager:
entity register_manager is
port(en : in STD_LOGIC;
addr : in STD_LOGIC_VECTOR(3 downto 0);
data : in STD_LOGIC_VECTOR(7 downto 0));
end register_manager;
How would I instantiate an array containing these register?