Skip to content
Snippets Groups Projects
Commit 899e9354 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski
Browse files

genrams: expose g_fail_if_init_file_not_found property

parent 470df8f3
No related merge requests found
......@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-CO-HT
-- Created : 2011-01-25
-- Last update: 2013-10-30
-- Last update: 2018-02-06
-- Platform :
-- Standard : VHDL'93
-------------------------------------------------------------------------------
......@@ -56,7 +56,9 @@ package genram_pkg is
g_size : natural;
g_with_byte_enable : boolean := false;
g_init_file : string := "none";
g_addr_conflict_resolution : string := "dont_care") ;
g_addr_conflict_resolution : string := "dont_care";
g_fail_if_file_not_found : boolean := true
) ;
port (
rst_n_i : in std_logic;
clk_i : in std_logic;
......@@ -74,7 +76,9 @@ package genram_pkg is
g_with_byte_enable : boolean := false;
g_addr_conflict_resolution : string := "dont_care";
g_init_file : string := "none";
g_dual_clock : boolean := true);
g_dual_clock : boolean := true;
g_fail_if_file_not_found : boolean := true
);
port (
rst_n_i : in std_logic := '1';
clka_i : in std_logic;
......@@ -94,7 +98,9 @@ package genram_pkg is
g_with_byte_enable : boolean := false;
g_addr_conflict_resolution : string := "dont_care";
g_init_file : string := "none";
g_dual_clock : boolean := true);
g_dual_clock : boolean := true;
g_fail_if_file_not_found : boolean := true
);
port (
rst_n_i : in std_logic := '1';
clka_i : in std_logic;
......
......@@ -37,7 +37,7 @@ package body memory_loader_pkg is
variable mem: t_meminit_array(0 to mem_size-1, mem_width-1 downto 0);
variable status : file_open_status;
begin
if(file_name = "" or file_name = "none") then
if(file_name = "" or file_name(1 to 4) = "none") then
mem:= (others => (others => '0'));
return mem;
end if;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment