H
Hongtu
Guest
I 'd like to simulate my design with a memory simulation model.
The vhdl for memory model is like this:
-------------------------------------------------------------------------------
constant weight_L : integer := 16;
constant mean_L : integer := 28;
constant variance_L : integer := 24;
type Gauss_parameters is record
weight : std_logic_vector(weight_L-1 downto 0);
mean1 : std_logic_vector(mean_L-1 downto 0);
mean2 : std_logic_vector(mean_L-1 downto 0);
mean3 : std_logic_vector(mean_L-1 downto 0);
variance : std_logic_vector(variance_L-1 downto 0);
end record;
type ram_data_type is array (0 to 352*288*9) of Gauss_parameters;
signal ram_data : ram_data_type;
-------------------------------------------------------------------------------
whenever I use modelsim to start simulation, the memory uesed by modelsim
will exceed 4G memory, and modelsim crashs. I am using Sun server with 16G
RAM. Can anyone tell me whether it is the problem of my design or the bug with
modelsim. Is there another way to write memory simulation model that uses much
less memory during simulation?
/hongtu
The vhdl for memory model is like this:
-------------------------------------------------------------------------------
constant weight_L : integer := 16;
constant mean_L : integer := 28;
constant variance_L : integer := 24;
type Gauss_parameters is record
weight : std_logic_vector(weight_L-1 downto 0);
mean1 : std_logic_vector(mean_L-1 downto 0);
mean2 : std_logic_vector(mean_L-1 downto 0);
mean3 : std_logic_vector(mean_L-1 downto 0);
variance : std_logic_vector(variance_L-1 downto 0);
end record;
type ram_data_type is array (0 to 352*288*9) of Gauss_parameters;
signal ram_data : ram_data_type;
-------------------------------------------------------------------------------
whenever I use modelsim to start simulation, the memory uesed by modelsim
will exceed 4G memory, and modelsim crashs. I am using Sun server with 16G
RAM. Can anyone tell me whether it is the problem of my design or the bug with
modelsim. Is there another way to write memory simulation model that uses much
less memory during simulation?
/hongtu