diff --git a/lib/CPUs/MIPS/src/core/mips_reg.vhd b/lib/CPUs/MIPS/src/core/mips_reg.vhd index da76225..e7b72da 100644 --- a/lib/CPUs/MIPS/src/core/mips_reg.vhd +++ b/lib/CPUs/MIPS/src/core/mips_reg.vhd @@ -51,16 +51,7 @@ architecture Behavioral of reg_dual is constant depth : integer := 2**addr_width; type mem_t is array (0 to depth-1) of unsigned (data_width-1 downto 0); - function mem_clear(depth : natural) return mem_t is - variable result : mem_t; - begin - for i in 0 to depth-1 loop - result(i) := (others => '0'); - end loop; - return result; - end mem_clear; - - signal reg_mem : mem_t := mem_clear(depth); + signal reg_mem : mem_t; begin